Skip to content

Commit cd9eff0

Browse files
committed
Merge pull request #4145 from carmstrong/etcd-v2.1.1
Bump to etcd 2.1.1; properly test it with Jenkins
2 parents 3a94fec + 14e00ef commit cd9eff0

15 files changed

Lines changed: 25 additions & 28 deletions

File tree

builder/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ test-unit:
6767
$(GOTEST) .
6868

6969
test-functional:
70-
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
70+
@$(MAKE) -C ../tests/ test-etcd
7171
godep go test -v ./tests/...
7272

7373
test-style:

cache/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ test-style:
6767
$(GOLINT) ./...
6868

6969
test-functional:
70-
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
70+
@$(MAKE) -C ../tests/ test-etcd
7171
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...

contrib/coreos/user-data.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ coreos:
2424
RestartSec=10s
2525
LimitNOFILE=40000
2626
EnvironmentFile=/etc/environment
27-
Environment="ETCD_IMAGE=quay.io/coreos/etcd:v2.0.13"
27+
Environment="ETCD_IMAGE=quay.io/coreos/etcd:v2.1.1"
2828
Environment="ETCD_ELECTION_TIMEOUT=2000"
2929
Environment="ETCD_HEARTBEAT_INTERVAL=400"
3030
Environment="ETCD_DATA_DIR=/var/lib/etcd2"

controller/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ test-unit: setup-venv test-style
8282
venv/bin/coverage report -m
8383

8484
test-functional:
85-
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
86-
@docker history deis/test-postgresql >/dev/null 2>&1 || docker pull deis/test-postgresql:latest
85+
@$(MAKE) -C ../tests/ test-etcd
86+
@$(MAKE) -C ../tests/ test-postgresql
8787
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...

database/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ test-style:
5454
shellcheck $(SHELL_SCRIPTS)
5555

5656
test-functional:
57-
@docker history deis/mock-store >/dev/null 2>&1 || $(MAKE) -C ../tests/ mock-store
58-
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
57+
@$(MAKE) -C ../tests/ mock-store
58+
@$(MAKE) -C ../tests/ test-etcd
5959
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...

docs/contributing/testing.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ continuous deployment, start one locally:
6060

6161
The functional tests also use several mock or example containers:
6262
**deis/test-etcd**, **deis/test-postgresql**, and **deis/mock-store**.
63-
These are referenced by the ``:latest`` tag, so in the rare case that one
64-
of these test containers needs to change, ``docker rmi`` its image and
65-
the tests will pull it from Docker Hub or rebuild it.
66-
63+
These are built locally during a test run.
6764

6865
Run the Tests
6966
-------------

logger/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ deploy: build dev-release restart
5858
test: test-style test-unit test-functional
5959

6060
test-functional:
61-
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
61+
@$(MAKE) -C ../tests/ test-etcd
6262
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
6363

6464
test-style:

registry/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ deploy: build dev-release restart
4848
test: test-style test-unit test-functional
4949

5050
test-functional:
51-
@docker history deis/mock-store >/dev/null 2>&1 || $(MAKE) -C ../tests/ mock-store
52-
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
51+
@$(MAKE) -C ../tests/ mock-store
52+
@$(MAKE) -C ../tests/ test-etcd
5353
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
5454

5555
test-style:

router/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ deploy: build dev-release restart
6363
test: test-style test-unit test-functional
6464

6565
test-functional:
66-
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
66+
@$(MAKE) -C ../tests/ test-etcd
6767
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
6868

6969
test-style:

store/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ deploy: build dev-release restart
100100
test: test-style test-unit test-functional
101101

102102
test-functional:
103-
@docker history deis/test-etcd >/dev/null 2>&1 || docker pull deis/test-etcd:latest
103+
@$(MAKE) -C ../tests/ test-etcd
104104
GOPATH=`cd ../tests/ && godep path`:$(GOPATH) go test -v ./tests/...
105105

106106
test-style:

0 commit comments

Comments
 (0)