Fix tests; fix copy/auth problem

This commit is contained in:
gholt
2010年11月03日 14:06:30 -07:00
parent 819bdc3066
commit ce48a3c709

View File

@@ -120,7 +120,7 @@ class TestObject(unittest.TestCase):
'X-Copy-From': '%s/%s' % (self.container,
self.obj)})
return check_response(conn)
resp = retry(put, use_account=3)
resp = retry(copy, use_account=3)
resp.read()
self.assertEquals(resp.status, 403)
# verify third account can write "obj1" to shared container
@@ -141,7 +141,7 @@ class TestObject(unittest.TestCase):
'X-Copy-From': '%s/%s' % (self.container,
self.obj)})
return check_response(conn)
resp = retry(put, use_account=3)
resp = retry(copy, use_account=3)
resp.read()
self.assertEquals(resp.status, 403)
# clean up "obj1"
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.