Skip to content

Commit

Permalink
Adding the first test.
Browse files Browse the repository at this point in the history
- Readme with design and usage added.
- First test added.
- Minio-go functional test is used.
  • Loading branch information
Karthic Rao committed Dec 23, 2016
1 parent 50c44eb commit d5f9f3e
Show file tree
Hide file tree
Showing 4 changed files with 1,982 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:1.7-alpine

ADD . /home

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

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

CMD ["./minio.test", "-test.timeout", "3600s","-test.v","-test.run","Test*"]
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
# mint
# Mint
Collection of tests to detect resource leaks, gauge performance problems and overall quality of Minio server.

# Design.
- Mint is designed to enable easy running of series of tests built using a wide variety of tools.
- To make the task easier Mint is built as a single docker container with all the necessary dependencies and tools installed.


# How to run.
The project will be published in Docker hub after further more testing. Till then the docker image has to be build locally and run.

- Clone the repo

```sh
$ git clone https://github.com/minio/mint.git
```

```sh
- Build and Run.
$ docker build -t mint:alpha
$ docker run -e ENDPOINT=play.minio.io:9000 -e ACCESS_KEY=Q3AM3UQ867SPQQA43P2F -e SECRET_KEY=zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG -e ENABLE_HTTPS=1 mint:alpha
```

# Options.
Options are passed in as environment variables to the docker containers as seen above.

- `ENDPOINT` - <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.

# Test Run.

- Minio-go functional test.

13 changes: 13 additions & 0 deletions minio-go-functional-test/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.7-alpine

ADD . /home

WORKDIR /home

RUN \
apk add --no-cache bash git openssh && \
go get -u github.com/minio/minio-go && \
go build exec-concurrent.go && \
go test -c api_functional_v4_test.go

CMD ["./minio.test", "-test.timeout", "3600s","-test.v","-test.run","Test*"]
Loading

0 comments on commit d5f9f3e

Please sign in to comment.