-
Notifications
You must be signed in to change notification settings - Fork 58
Adding the first test. #1
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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*"] | ||
| 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. | ||
|
|
||
| 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*"] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might have to
cdinto minio-go directory. Then you don't need to includeapi_functional_v4_test.gointo this project itself.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have slight modifications to the test file in terms of using environment variables. Also will be bringing in exec-concurrent .