1
1
package org .testcontainers .containers ;
2
2
3
+ import java .time .Duration ;
4
+
3
5
import org .junit .jupiter .api .Test ;
4
6
import org .rnorth .ducttape .RetryCountExceededException ;
5
7
import org .slf4j .LoggerFactory ;
6
8
import org .testcontainers .containers .exceptions .CartridgeTopologyException ;
7
9
import org .testcontainers .containers .output .Slf4jLogConsumer ;
8
10
import org .testcontainers .junit .jupiter .Container ;
9
11
import org .testcontainers .junit .jupiter .Testcontainers ;
10
-
11
- import java .time .Duration ;
12
-
13
12
import static org .junit .Assert .assertThrows ;
14
13
import static org .junit .jupiter .api .Assertions .assertEquals ;
15
14
@@ -21,17 +20,18 @@ public class TarantoolCartridgeBootstrapFromLuaWithFixedPortsTest {
21
20
22
21
@ Container
23
22
private static final TarantoolCartridgeContainer container =
24
- new TarantoolCartridgeContainer (
25
- "Dockerfile" ,
26
- "cartridge/instances_fixedport.yml" ,
27
- "cartridge/topology_fixedport.lua" )
28
- .withEnv ("TARANTOOL_INSTANCES_FILE" , "instances_fixedport.yml" )
29
- .withStartupTimeout (Duration .ofSeconds (300 ))
30
- .withUseFixedPorts (true )
31
- .withAPIPort (18081 )
32
- .withRouterPort (13301 )
33
- .withLogConsumer (new Slf4jLogConsumer (
34
- LoggerFactory .getLogger (TarantoolCartridgeBootstrapFromLuaWithFixedPortsTest .class )));
23
+ new TarantoolCartridgeContainer (
24
+ "Dockerfile" ,
25
+ "cartridge" ,
26
+ "cartridge/instances_fixedport.yml" ,
27
+ "cartridge/topology_fixedport.lua" )
28
+ .withEnv ("TARANTOOL_INSTANCES_FILE" , "instances_fixedport.yml" )
29
+ .withStartupTimeout (Duration .ofSeconds (300 ))
30
+ .withUseFixedPorts (true )
31
+ .withAPIPort (18081 )
32
+ .withRouterPort (13301 )
33
+ .withLogConsumer (new Slf4jLogConsumer (
34
+ LoggerFactory .getLogger (TarantoolCartridgeBootstrapFromLuaWithFixedPortsTest .class )));
35
35
36
36
@ Test
37
37
public void test_StaticClusterContainer_StartsSuccessfully_ifFilesAreCopied () throws Exception {
@@ -43,6 +43,7 @@ public void test_retryingSetupTopology_shouldWork() {
43
43
try (TarantoolCartridgeContainer testContainer =
44
44
new TarantoolCartridgeContainer (
45
45
"Dockerfile" ,
46
+ "cartridge" ,
46
47
"cartridge/instances.yml" ,
47
48
"cartridge/incorrect_topology.lua" )
48
49
.withLogConsumer (new Slf4jLogConsumer (
0 commit comments