Skip to content
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

Add test framework for mint #27

Merged
merged 21 commits into from
Jun 16, 2017
Merged

Add test framework for mint #27

merged 21 commits into from
Jun 16, 2017

Conversation

poornas
Copy link
Contributor

@poornas poornas commented Jun 14, 2017

Rewrite mint to create a framework for running SDK tests on Docker.

mc, minio-py, minio-go, minio-java, minio-js sdk tests have currently been added to the framework.

This is w.r.t issue #26

@@ -24,9 +24,6 @@ import (
)

func main() {
// obtain endpoint from env.
// it is set using `-e` when starting the container
// check README.md for instructions.
endpoint := os.Getenv("S3_ADDRESS")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove S3_ADDRESS

run.sh Outdated
# S3_ADDRESS is passed on as env variables while starting the docker container.
# see README.md for info on options.
# Note: https://play.minio.io hosts publicly available Minio server.
if [ -z "$S3_ADDRESS" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove S3_ADDRESS

@@ -0,0 +1,69 @@
#!/usr/bin/env bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid binary files..

}

# invoke the script
main "$@"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a newline.

README.md Outdated
The project will be published in Docker hub after further more testing. Till then the docker image has to be built locally and run.

### Build

```sh
$ git clone https://github.com/minio/mint.git
$ cd mint
$ docker build -t minio/mint:alpha .
$ docker build -t minio/mint:mint .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the image as latest minio/mint:latest

Dockerfile Outdated
go get -u github.com/minio/minio-go && \
chmod +x run.sh

COPY . /mint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep two dockerfiles one more Dockerfile and another for release. Dockerfile.release

Dockerfile Outdated
default-jre \
default-jdk \
git \
golang-go \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go-1.6 version should be moved to go1.7

@poornas poornas force-pushed the mint2 branch 2 times, most recently from 324d647 to 10566c4 Compare June 15, 2017 22:41
Copy link
Member

@harshavardhana harshavardhana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything else looks good.. one final comment.

Dockerfile Outdated
mv go /usr/local && \
rm -rf go && \
rm go1.7.4.linux-amd64.tar.gz
COPY . /mint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we going to add a new Dockerfile.release which only does git clone version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we will send an update shortly

Fix mc scripts to return back to main script on failure
@harshavardhana harshavardhana merged commit fca81b6 into minio:master Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants