-
Notifications
You must be signed in to change notification settings - Fork 49
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 mc test cases #71
Conversation
nitisht
commented
Jul 3, 2017
- Add mc tests
- Fix top level script to not remove curl as it is used during test execution.
- Fix top level script to not remove curl as it is used during test execution.
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.
There is a lot of code repetition in each test -
run/core/mc/test.sh
Outdated
|
||
# create a bucket | ||
echo "Creating a bucket" | ||
./mc mb "target/${bucketName}" |
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.
these make bucket/remove bucket calls are repeated for each test. Consider a helper function to setup the bucket and tear it down. Also function names do not need the numeral suffix - doesn't help in any way. Instead testMirrorObject / testMirrorCommand conveys the functionality being tested.
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.
Actually @abperiasamy wanted self contained tests.. We shouldn't inherit the problems of other tests. Its harder to debug.
Updated the tests, please take a look. @harshavardhana @poornas |