Skip to content

Commit

Permalink
Adding distributed functional test. (#3)
Browse files Browse the repository at this point in the history
* Adding distributed functional test.

- Since Minio distributed doesn't have a suite, this called can be run
  to test most of functionalities.

* Adding Dockerfile instructions.

- Adding Minio distributed functional test.
- Adding instructions to run from Docker.
- S3_ADDRESS env variable is used for server ENDPOINT.
- Readme.md changed accordingly.
  • Loading branch information
Karthic Rao authored and harshavardhana committed Jan 5, 2017
1 parent 6e066fa commit 5af32f3
Show file tree
Hide file tree
Showing 4 changed files with 4,718 additions and 150 deletions.
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

0 comments on commit 5af32f3

Please sign in to comment.