Skip to content

Commit fb263c0

Browse files
authored
bump version; avoid pulling image if not necessary (localstack#1146)
1 parent a314650 commit fb263c0

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

localstack/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import localstack_client.config
33

44
# LocalStack version
5-
VERSION = '0.8.10'
5+
VERSION = '0.9.0'
66

77
# default AWS region
88
if 'DEFAULT_REGION' not in os.environ:

localstack/ext/java/src/test/java/cloud/localstack/docker/ContainerTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)