Skip to content

Commit 02981cf

Browse files
committed
ref(mock-store): move to tests/ and rename "mock-store"
1 parent 8477f3e commit 02981cf

6 files changed

Lines changed: 16 additions & 15 deletions

File tree

store/Makefile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ GATEWAY_IMAGE = $(IMAGE_PREFIX)store-gateway:$(BUILD_TAG)
99
GATEWAY_DEV_IMAGE = $(DEV_REGISTRY)/$(GATEWAY_IMAGE)
1010
METADATA_IMAGE = $(IMAGE_PREFIX)store-metadata:$(BUILD_TAG)
1111
METADATA_DEV_IMAGE = $(DEV_REGISTRY)/$(METADATA_IMAGE)
12-
MOCK_IMAGE = $(IMAGE_PREFIX)store-mock:$(BUILD_TAG)
13-
MOCK_DEV_IMAGE = $(DEV_REGISTRY)/$(MOCK_IMAGE)
1412
MONITOR_IMAGE = $(IMAGE_PREFIX)store-monitor:$(BUILD_TAG)
1513
MONITOR_DEV_IMAGE = $(DEV_REGISTRY)/$(MONITOR_IMAGE)
1614

@@ -22,7 +20,6 @@ build: check-docker
2220
docker build -t deis/store-$(I):$(BUILD_TAG) $(I)/ ; \
2321
rm $(I)/Dockerfile ; \
2422
)
25-
docker build -t $(MOCK_IMAGE) mock/
2623

2724
clean: check-docker check-registry
2825
$(foreach I, $(BUILT_IMAGES), \
@@ -77,8 +74,6 @@ push: check-registry
7774
docker push $(GATEWAY_DEV_IMAGE)
7875
docker tag $(METADATA_IMAGE) $(METADATA_DEV_IMAGE)
7976
docker push $(METADATA_DEV_IMAGE)
80-
docker tag $(MOCK_IMAGE) $(MOCK_DEV_IMAGE)
81-
docker push $(MOCK_DEV_IMAGE)
8277
docker tag $(MONITOR_IMAGE) $(MONITOR_DEV_IMAGE)
8378
docker push $(MONITOR_DEV_IMAGE)
8479

@@ -92,7 +87,6 @@ release:
9287
docker push $(DAEMON_IMAGE)
9388
docker push $(GATEWAY_IMAGE)
9489
docker push $(METADATA_IMAGE)
95-
docker push $(MOCK_IMAGE)
9690
docker push $(MONITOR_IMAGE)
9791

9892
deploy: build dev-release restart

tests/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
include ../includes.mk
2+
3+
MOCK_STORE_IMAGE = $(IMAGE_PREFIX)mock-store:latest
4+
15
test: test-smoke
26

37
test-smoke: test-style
@@ -22,6 +26,9 @@ setup-root-gotools:
2226
setup-gotools:
2327
go get -v github.com/golang/lint/golint
2428

29+
mock-store:
30+
docker build -t $(MOCK_STORE_IMAGE) fixtures/mock-store/
31+
2532
test-style:
2633
go vet -x ./...
2734
-golint ./...
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
# Mock S3 storage
22

3-
The objective is to not require a Ceph cluster in the test to provide a S3 compatible service.
4-
This component uses [mock-s3](https://github.com/jserver/mock-s3).
3+
The objective is to provide an S3-compatible service for tests, so a Ceph cluster
4+
is not required. This component uses [mock-s3](https://github.com/jserver/mock-s3).
55

66
## Usage:
77

88
```
9-
docker run -p 8888:8888 -e HOST=$COREOS_PRIVATE_IPV4 -v <local directory>:/app/storage deis/store-mock
9+
docker run -p 8888:8888 -e HOST=$COREOS_PRIVATE_IPV4 -v <local directory>:/app/storage deis/mock-store
1010
```
1111

1212
*The use of a local directory `(-v <local directory>)` is optional*
1313

1414

15-
`mock-s3` does not requires an ACCESS_KEY and SECRET_KEY (there is no concept of permissions) but this
16-
component will generate both keep compatibility with `deis-store-gateway`
15+
`mock-s3` does not requires an `ACCESS_KEY` and `SECRET_KEY` (there is no concept of permissions), but this
16+
component will generate both to keep compatibility with `deis-store-gateway`.
1717

1818
## Containers
1919

20-
The mock store component is composed by one container:
20+
The mock store component is composed of one container:
2121

22-
* [store-mock](https://index.docker.io/u/deis/store-mock/) - the blob store gateway,
22+
* [mock-store](https://index.docker.io/u/deis/mock-store/) - the blob store gateway,
2323
offering a S3-compatible bucket APIs using the local filesystem as storage.
2424

2525
## Usage
2626

2727
Please consult the [Makefile](Makefile) for current instructions on how to build, test, push,
28-
install, and start **deis/store-mock**.
28+
install, and start **deis/mock-store**.
2929

3030
## License
3131

32-
© 2014 OpDemand LLC
32+
© 2015 OpDemand LLC
3333

3434
Licensed under the Apache License, Version 2.0 (the "License"); you may
3535
not use this file except in compliance with the License. You may obtain

0 commit comments

Comments
 (0)