-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
Showing
4 changed files
with
1,982 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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 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. | ||
|
This file contains 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,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*"] |
Oops, something went wrong.