You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Collection of tests to detect overall correctness of Minio server.
9
9
10
10
## Roadmap
11
11
12
-
-Minio-SDK functional tests are pulled from respective SDKs and tested.
12
+
-`minio-js`, `minio-go`, `minio-dotnet`functional tests are pulled from respective SDKs instead of local test copy in Mint repo. `minio-py` & `minio-java` tests are already pulled from respective SDKs.
13
13
- Add test cases under categories like correctness, stress/load, etc.
14
14
- Add specific tests for distributed mode, shared-backend mode, gateway mode
15
15
- Add other SDK/Client side tools to increase the test case variety
After the tests are run, output is stored in `/mint/log` directory inside the container. You can access these logs via `docker cp` command. For example to store logs to `/tmp/logs` directory on your host, run
42
42
43
43
```sh
44
-
docker cp minio/mint:/mint/log /tmp/logs
44
+
docker cp <container-id>:/mint/log /tmp/logs
45
45
```
46
46
47
47
Then navigate to `/tmp/logs` directory to access the test logs.
@@ -63,15 +63,13 @@ Following SDKs/CLI tools are available:
63
63
64
64
To add tests to an existing SDK folder:
65
65
66
-
- Navigate to specific SDK test file in the path `apps/<sdk_name>/`.
67
-
- Add test cases and update `main` method if applicable.
68
-
- Refer test data section for using existing test data.
66
+
- Add tests to respective SDK repository functional test.
69
67
70
-
To add new SDK/CLI to Mint:
68
+
To add new SDK/CLI tool to Mint:
71
69
72
-
- Create new directory in `apps/` directory with corresponding tool name
70
+
- Check if the environment for the programming language is already set in `build` directory, if not, add a new directory for the language and add set up steps (including SDK/CLI tool) in `install.sh` directory.
71
+
- Create new directory in `run/core/<sdk_name>` directory with corresponding tool name.
73
72
- Add a `run.sh` script. This script should set up the SDK/CLI tool and then execute the tests
74
-
- Add an entry in `config.yaml` with name of folder, e.g test_folder
75
73
76
74
## Building Mint Docker image
77
75
@@ -80,7 +78,7 @@ To add new SDK/CLI to Mint:
80
78
```sh
81
79
$ git clone https://github.com/minio/mint.git
82
80
$ cd mint
83
-
$ docker build -t minio/mint .
81
+
$ docker build -t minio/mint . -f Dockerfile.dev
84
82
```
85
83
86
84
Developers can also customize `Dockerfile.dev` to generate smaller build images. For example, removing the following lines from `Dockerfile.dev` will avoid shipping Golang SDK tests in the image hence a faster build and tests execution time.
@@ -92,7 +90,7 @@ RUN /mint/build/go/install.sh
92
90
93
91
### Build using Travis
94
92
95
-
Each pull request when submitted to Github `travis-ci` runs build on mint to create new docker image on `play.minio.io`, our private docker registry. You can get the `mint` image associated with your pull request by just running `docker pull play.minio.io/mint:$PULL_REQUEST_SHA`
93
+
Each pull request when submitted to Github `travis-ci` runs build on mint to create new docker image on `play.minio.io`, our private docker registry. You can get the `mint` image associated with your pull request by just running `docker pull play.minio.io/mint:$PULL_REQUEST_SHA`. For example
0 commit comments