Skip to content

Instantly share code, notes, and snippets.

@bloodeagle40234
Last active September 13, 2018 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bloodeagle40234/b7f700300b4cab1d664abd5ed1de1e88 to your computer and use it in GitHub Desktop.
Save bloodeagle40234/b7f700300b4cab1d664abd5ed1de1e88 to your computer and use it in GitHub Desktop.
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 = \
======================================================================
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