Skip to content

Commit 527c46b

Browse files
committed
ref(tests): move test containers under tests/fixtures
1 parent f5e0de4 commit 527c46b

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

tests/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ GO_PACKAGES = dockercli etcdutils mock utils
1010
GO_PACKAGES_REPO_PATH = $(addprefix $(repo_path)/,$(GO_PACKAGES))
1111

1212
MOCK_STORE_IMAGE = $(IMAGE_PREFIX)mock-store:latest
13+
TEST_ETCD_IMAGE = $(IMAGE_PREFIX)test-etcd:latest
14+
TEST_POSTGRESQL_IMAGE = $(IMAGE_PREFIX)test-postgresql:latest
1315

1416
test: test-smoke
1517

@@ -38,6 +40,12 @@ setup-gotools:
3840
mock-store:
3941
docker build -t $(MOCK_STORE_IMAGE) fixtures/mock-store/
4042

43+
test-etcd:
44+
docker build -t $(TEST_ETCD_IMAGE) fixtures/test-etcd/
45+
46+
test-postgresql:
47+
docker build -t $(TEST_POSTGRESQL_IMAGE) fixtures/test-postgresql/
48+
4149
test-style:
4250
# display output, then check
4351
$(GOFMT) $(GO_PACKAGES) $(GO_FILES)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM postgres:9.3
2+
3+
COPY rootfs/docker-entrypoint-initdb.d /docker-entrypoint-initdb.d
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
echo "Initialization complete."

0 commit comments

Comments
 (0)