Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding distributed functional test. #3

Merged
merged 2 commits into from
Jan 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM golang:1.7-alpine

ADD . /home
COPY . /home

WORKDIR /home/minio-go-functional-test/
WORKDIR /home

RUN \
apk add --no-cache bash git openssh && \
go get -u github.com/minio/minio-go && \
go test -c api_functional_v4_test.go
go test -c /home/minio-functional-test/server_test.go && \
go test -c /home/minio-go-functional-test/api_functional_v4_test.go

CMD ["./minio.test", "-test.timeout", "3600s","-test.v","-test.run","Test*"]
CMD /home/cmd.test -test.v && \
/home/minio.test -test.timeout 3600s -test.v

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ docker build -t minio/mint:alpha .

Options are provided as environment variables to the docker container. Supported envs:

- `ENDPOINT` - <IP/URL>:<PORT> of the Minio server on which the tests has to be run.
- `S3_ADDRESS` - <IP/URL>:<PORT> of the Minio server on which the tests has to be run.
- `ACCESS_KEY` - Access Key of the server.
- `SECRET_KEY` - Secret Key of the server.
- `ENABLE_HTTPS` - Optional value when set to 1 sends HTTPS requests on SSL enabled deployment.
Expand All @@ -29,5 +29,5 @@ Options are provided as environment variables to the docker container. Supported
### Run

```sh
$ docker run -e ENDPOINT=play.minio.io:9000 -e ACCESS_KEY=Q3AM3UQ867SPQQA43P2F -e SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG -e ENABLE_HTTPS=1 minio/mint:alpha
$ docker run -e S3_ADDRESS=play.minio.io:9000 -e ACCESS_KEY=Q3AM3UQ867SPQQA43P2F -e SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG -e ENABLE_HTTPS=1 minio/mint:alpha
```
Loading