minio / mint

Collection of tests to detect overall correctness of MinIO server.
Apache License 2.0
81 stars 50 forks source link

Gateway: awscli tests doesn't exit on failure, displays success #230

Closed kannappanr closed 6 years ago

kannappanr commented 6 years ago

Here is the result of running awscli against all gateways (s3, azure, gcs)

{"name": "awscli", "duration": 2987, "function": "make_bucket\n", "status": "PASS"}
{"name": "awscli", "duration": 7692, "function": "aws --endpoint-url http://192.168.86.102:9000 s3api get-object --bucket awscli-mint-test-bucket-17793 --key datafile-1-MB /tmp/datafile-1-MB\n", "status": "PASS"}
{"name": "awscli", "duration": 7574, "function": "aws --endpoint-url http://192.168.86.102:9000 s3api head-object --bucket awscli-mint-test-bucket-11375 --key prefix/directory/\n", "status": "FAIL", "error": "An error occurred (404) when calling the HeadObject operation: Not Found"}
{"name": "awscli", "duration": 6325, "function": "aws --endpoint-url http://192.168.86.102:9000 s3api list-objects --bucket awscli-mint-test-bucket-12552 --prefix datafile-1-MB\n", "status": "PASS"}
{"name": "awscli", "duration": 15134, "function": "aws --endpoint-url http://192.168.86.102:9000 s3api create-multipart-upload --bucket awscli-mint-test-bucket-30395 --key awscli-mint-test-bucket-30395-object\n", "status": "PASS"}
{"name": "awscli", "duration": 5704, "function": "aws --endpoint-url http://192.168.86.102:9000 s3api copy-object --bucket awscli-mint-test-bucket-3661 --key datafile-1-MB-copy --copy-source awscli-mint-test-bucket-3661/datafile-1-MB\n", "status": "PASS"}
{"name": "awscli", "duration": 7764, "function": "aws --endpoint-url http://192.168.86.102:9000 s3 presign s3://awscli-mint-test-bucket-13003/datafile-1-MB\n", "status": "PASS"}
{"name": "awscli", "duration": 97586, "function": "aws --endpoint-url http://192.168.86.102:9000 s3 cp /mint/data/datafile-65-MB s3://awscli-mint-test-bucket-11619/datafile-65-MB\n", "status": "PASS"}
{"name": "awscli", "duration": 133764, "function": "aws --endpoint-url http://192.168.86.102:9000 s3 sync /mint/data s3://awscli-mint-test-bucket-9132/\n", "status": "PASS"}
{"name": "awscli", "duration": 5230, "function": "aws --endpoint-url http://192.168.86.102:9000 s3api list-objects-v2 --bucket awscli-mint-test-bucket-7984 --prefix datafile-1-MB --max-keys=-1\n", "status": "PASS"}
{"name": "awscli", "duration": 16442, "function": "aws --endpoint-url http://192.168.86.102:9000 s3api put-object --body /mint/data/datafile-1-MB --bucket awscli-mint-test-bucket-14214 --key datafile-1-MB --content-length -1\n", "status": "PASS"} 

The third test that does a head fails for all the gtways, but the test keeps running and displays success. This needs to be fixed.

harshavardhana commented 6 years ago

looks like return value is missing from the test, sending a PR.