-
Notifications
You must be signed in to change notification settings - Fork 475
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
Mint - Avoid invalid JSON output #1201
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run functional test like below instead of changing current behavior
FunctionalTest <ENDPOINT> <ACCESSKEY> <SECRETKEY> <REGION>
Oh downloadMinio() is not executed during functional tests ? |
It is called if not those four arguments are passed. |
@balamurugana: So this call has to be changed somewhere else? I don‘t quite understand. |
@iternity-dotcom The functional test can be run in two ways
If you are using functional tests on |
Thanks @balamurugana for your explanation. @andrebruch Can you also share your thoughts on this? |
@andrebruch Maybe we are missing the REGION param? |
@balamurugana Another question: Why does it make sense to write the removed console outputs to log.json in case the functional tests are called without params (thus downloading the Minio automatically)? Wouldn't this also result in an invalid log.json? |
@balamurugana For us the 2nd way is relevant. @iternity-dotcom The 1st way was called by a change on my part in I corrected the RUN_ON_FAIL-PR: #1180. |
Result as JSON is outputted only if |
@balamurugana OK. Thanks for concluding the conversation here. |
Description
The console outputs have been removed.
Motivation and Context
Testing with Mint Suite generates a log.json file. We want to process the file, but MinIO Java generates invalid JSON.
How to test this PR?
Running the tests against a
minio server data{1...4}
should now return a valid JSON.Types of changes
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Optimization (provides speedup with no functional changes)
Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
Fixes a regression (If yes, please add
commit-id
orPR #
here)Documentation updated
Unit tests added/updated