-
Notifications
You must be signed in to change notification settings - Fork 50
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
Remove negative test for invalid object name /2123123\123 #173
Conversation
run/core/mc/test.sh
Outdated
@@ -517,12 +517,20 @@ function test_put_object_error() { | |||
out="${bucket_name}" | |||
fi | |||
|
|||
# mc cp with object name //2123123\123 passes for S3 gateway as S3 allows names with \ | |||
if [ $rv -eq 0 ]; then |
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.
Since this is a negative test case, what if the actual object creation succeeds in Minio or other backend gateway? Will we be ignoring those errors also?
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.
I am afraid, currently there is no way to identify server and gateway in mint and there is no plan to do this as well AFAIK..so I think we need to ignore such possibilities for now
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.
We had a discussion here and we feel that this a test case that we can do away with. We cannot conclusively figure out whether the client is connecting to Minio or S3-Gateway (Connecting to AWS/Minio/Azure/GCS/another Gateway) in the case awscli and mc. Since the test behavior is different in the case of Minio and AWS, it is better to remove this test case.
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.
@kannappanr test cases is removed
As the object name is supported on S3 and there is no way to identify server endpoint as gateway or server in Mint, we remove this specific test case Fixes minio#170
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.
Should the title be changed? Otherwise LGTM.
As discussed removed the test case
Fixes #170