Replace hard-coded test accounts with user-configured values
Change-Id: I824ba5f231e252b923abc895f757137855a93d3a
This commit is contained in:
parent
2ad23a25e8
commit
48ebd6732e
@ -382,8 +382,8 @@ class TestContainer(unittest.TestCase):
|
|||||||
# Make the container accessible by the second account
|
# Make the container accessible by the second account
|
||||||
def post(url, token, parsed, conn):
|
def post(url, token, parsed, conn):
|
||||||
conn.request('POST', parsed.path + '/' + self.name, '',
|
conn.request('POST', parsed.path + '/' + self.name, '',
|
||||||
{'X-Auth-Token': token, 'X-Container-Read': 'test2',
|
{'X-Auth-Token': token, 'X-Container-Read': swift_test_user[1],
|
||||||
'X-Container-Write': 'test2'})
|
'X-Container-Write': swift_test_user[1]})
|
||||||
return check_response(conn)
|
return check_response(conn)
|
||||||
resp = retry(post)
|
resp = retry(post)
|
||||||
resp.read()
|
resp.read()
|
||||||
@ -450,7 +450,7 @@ class TestContainer(unittest.TestCase):
|
|||||||
# Now make the container also writeable by the second account
|
# Now make the container also writeable by the second account
|
||||||
def post(url, token, parsed, conn):
|
def post(url, token, parsed, conn):
|
||||||
conn.request('POST', parsed.path + '/' + self.name, '',
|
conn.request('POST', parsed.path + '/' + self.name, '',
|
||||||
{'X-Auth-Token': token, 'X-Container-Write': 'test2'})
|
{'X-Auth-Token': token, 'X-Container-Write': swift_test_user[1]})
|
||||||
return check_response(conn)
|
return check_response(conn)
|
||||||
resp = retry(post)
|
resp = retry(post)
|
||||||
resp.read()
|
resp.read()
|
||||||
|
Loading…
Reference in New Issue
Block a user