From 48ebd6732e43ff54e5aedbef161a4f273aac3904 Mon Sep 17 00:00:00 2001 From: Jason Johnson Date: Tue, 27 Nov 2012 10:39:12 -0600 Subject: [PATCH] Replace hard-coded test accounts with user-configured values Change-Id: I824ba5f231e252b923abc895f757137855a93d3a --- test/functionalnosetests/test_container.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functionalnosetests/test_container.py b/test/functionalnosetests/test_container.py index f621f58dc0..12a92c9f56 100755 --- a/test/functionalnosetests/test_container.py +++ b/test/functionalnosetests/test_container.py @@ -382,8 +382,8 @@ class TestContainer(unittest.TestCase): # Make the container accessible by the second account def post(url, token, parsed, conn): conn.request('POST', parsed.path + '/' + self.name, '', - {'X-Auth-Token': token, 'X-Container-Read': 'test2', - 'X-Container-Write': 'test2'}) + {'X-Auth-Token': token, 'X-Container-Read': swift_test_user[1], + 'X-Container-Write': swift_test_user[1]}) return check_response(conn) resp = retry(post) resp.read() @@ -450,7 +450,7 @@ class TestContainer(unittest.TestCase): # Now make the container also writeable by the second account def post(url, token, parsed, conn): 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) resp = retry(post) resp.read()