-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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*"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 minio/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. | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 .