From 429cb8b7453662e325d6120457638827527483cd Mon Sep 17 00:00:00 2001 From: anc Date: Tue, 5 Nov 2013 12:15:24 +0000 Subject: [PATCH] Fix swift_test_client duplicating request params Remove extra lines of code that result in swift_test_client adding params twice to PUT request urls. Bug was revealed while developing functional tests for SLO - SLO manifest PUTs behave incorrectly because the url constructed by swift_test_client ends with ?multipart-manifest=put?multipart-manifest=put Fixes bug 1248121 Change-Id: Ie5a8651a55049bb52ef641edfd6eb29b0ff3c245 --- test/functional/swift_test_client.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/functional/swift_test_client.py b/test/functional/swift_test_client.py index 2a161ac6a0..f5e35c7a25 100644 --- a/test/functional/swift_test_client.py +++ b/test/functional/swift_test_client.py @@ -267,10 +267,6 @@ class Connection(object): for (x, y) in parms.items()] path = '%s?%s' % (path, '&'.join(query_args)) - query_args = ['%s=%s' % (urllib.quote(x), - urllib.quote(str(y))) for (x, y) in parms.items()] - path = '%s?%s' % (path, '&'.join(query_args)) - self.connection = self.conn_class(self.storage_host, port=self.storage_port) #self.connection.set_debuglevel(3)