2019-07-09 21:32:39 -04:00
|
|
|
## `minio-go` tests
|
|
|
|
This directory serves as the location for Mint tests using `minio-go`. Top level `mint.sh` calls `run.sh` to execute tests.
|
|
|
|
|
|
|
|
## Adding new tests
|
|
|
|
New tests are added in functional tests of minio-go. Please check https://github.com/minio/minio-go
|
|
|
|
|
|
|
|
## Running tests manually
|
2021-04-20 19:23:11 -04:00
|
|
|
- Set environment variables `MINT_DATA_DIR`, `MINT_MODE`, `SERVER_ENDPOINT`, `ACCESS_KEY`, `SECRET_KEY`, `SERVER_REGION`, `ENABLE_HTTPS` and `RUN_ON_FAIL`
|
2019-07-09 21:32:39 -04:00
|
|
|
- Call `run.sh` with output log file and error log file. for example
|
|
|
|
```bash
|
|
|
|
export MINT_DATA_DIR=~/my-mint-dir
|
|
|
|
export MINT_MODE=core
|
|
|
|
export SERVER_ENDPOINT="play.minio.io:9000"
|
|
|
|
export ACCESS_KEY="Q3AM3UQ867SPQQA43P2F"
|
|
|
|
export SECRET_KEY="zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
|
|
|
|
export ENABLE_HTTPS=1
|
|
|
|
export SERVER_REGION=us-east-1
|
2021-04-20 19:23:11 -04:00
|
|
|
export RUN_ON_FAIL=1
|
2019-07-09 21:32:39 -04:00
|
|
|
./run.sh /tmp/output.log /tmp/error.log
|
|
|
|
```
|