-
-
Save bloodeagle40234/b7f700300b4cab1d664abd5ed1de1e88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@saio:~/swift$ git diff | |
diff --git a/test/functional/s3api/test_acl.py b/test/functional/s3api/test_acl.py | |
index 33b01c6..545b9f3 100644 | |
--- a/test/functional/s3api/test_acl.py | |
+++ b/test/functional/s3api/test_acl.py | |
@@ -107,6 +107,11 @@ class TestS3Acl(S3ApiBase): | |
headers=req_headers, query='acl') | |
self.assertEqual(get_error_code(body), 'AccessDenied') | |
+ def test_put_bucket_exist_user_but_nowowner(self): | |
+ status, headers, body = \ | |
+ self.conn2.make_request('PUT', self.bucket) | |
+ self.assertEqual(get_error_code(body), 'Conflict') | |
+ | |
def test_get_bucket_acl_error(self): | |
aws_error_conn = Connection(aws_secret_key='invalid') | |
status, headers, body = \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
FAIL: test_put_bucket_exist_user_but_nowowner (test.functional.s3api.test_acl.TestS3AclSigV4) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/vagrant/swift/test/functional/s3api/test_acl.py", line 113, in test_put_bucket_exist_user_but_nowowner | |
self.assertEqual(get_error_code(body), 'Conflict') | |
AssertionError: 'AccessDenied' != 'Conflict' | |
- AccessDenied | |
+ Conflict | |
"""Fail immediately, with the given message.""" | |
>> raise self.failureException("'AccessDenied' != 'Conflict'\n- AccessDenied\n+ Conflict\n") | |
-------------------- >> begin captured logging << -------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment