@@ -14,12 +14,14 @@ public class ContainerTest {
1414 private static final String MY_PROPERTY = "MY_PROPERTY" ;
1515 private static final String MY_VALUE = "MyValue" ;
1616
17+ private boolean pullNewImage = false ;
18+
1719 @ Test
1820 public void createLocalstackContainer () throws Exception {
1921
2022 HashMap <String , String > environmentVariables = new HashMap <>();
2123 environmentVariables .put (MY_PROPERTY , MY_VALUE );
22- Container localStackContainer = Container .createLocalstackContainer (EXTERNAL_HOST_NAME , true , true , environmentVariables );
24+ Container localStackContainer = Container .createLocalstackContainer (EXTERNAL_HOST_NAME , pullNewImage , true , environmentVariables );
2325
2426 try {
2527 localStackContainer .waitForAllPorts (EXTERNAL_HOST_NAME );
@@ -47,7 +49,7 @@ private ArrayList<String> buildEchoStatement(String valueToEcho) {
4749
4850 @ Test
4951 public void createLocalstackContainerWithRandomPorts () throws Exception {
50- Container container = Container .createLocalstackContainer (EXTERNAL_HOST_NAME , true , true , new HashMap <>());
52+ Container container = Container .createLocalstackContainer (EXTERNAL_HOST_NAME , pullNewImage , true , new HashMap <>());
5153
5254 try {
5355 container .waitForAllPorts (EXTERNAL_HOST_NAME );
@@ -64,7 +66,7 @@ public void createLocalstackContainerWithRandomPorts() throws Exception {
6466
6567 @ Test
6668 public void createLocalstackContainerWithStaticPorts () throws Exception {
67- Container container = Container .createLocalstackContainer (EXTERNAL_HOST_NAME , true , false , new HashMap <>());
69+ Container container = Container .createLocalstackContainer (EXTERNAL_HOST_NAME , pullNewImage , false , new HashMap <>());
6870
6971 try {
7072 container .waitForAllPorts (EXTERNAL_HOST_NAME );
@@ -78,4 +80,4 @@ public void createLocalstackContainerWithStaticPorts() throws Exception {
7880 }
7981 }
8082
81- }
83+ }
0 commit comments