Skip to content
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

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

nitisht
Copy link
Contributor

@nitisht nitisht commented Oct 2, 2017

As discussed removed the test case

Fixes #170

@@ -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
Copy link
Collaborator

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?

Copy link
Contributor Author

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

Copy link
Collaborator

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.

Copy link
Contributor Author

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
Copy link
Collaborator

@kannappanr kannappanr left a 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.

@nitisht nitisht changed the title Update return code in test so it returns in case of failure Remove negative test for invalid object name /2123123\123 Oct 4, 2017
@nitisht nitisht merged commit 4939da6 into minio:master Oct 4, 2017
@nitisht nitisht deleted the mc-exit branch October 4, 2017 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants