You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2013/10/17 14:01:58 UTC
[2/2] git commit: Fix EC2 test so it doesn't depend on query param
ordering in the URL.
Fix EC2 test so it doesn't depend on query param ordering in the URL.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/57310071
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/57310071
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/57310071
Branch: refs/heads/trunk
Commit: 573100712e580f326658bcda1307c892087dc0af
Parents: 1ea043d
Author: Tomaz Muraus <to...@apache.org>
Authored: Thu Oct 17 12:36:46 2013 +0200
Committer: Tomaz Muraus <to...@apache.org>
Committed: Thu Oct 17 12:37:19 2013 +0200
----------------------------------------------------------------------
libcloud/test/compute/test_ec2.py | 2 ++
1 file changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/57310071/libcloud/test/compute/test_ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_ec2.py b/libcloud/test/compute/test_ec2.py
index 3380db7..260268b 100644
--- a/libcloud/test/compute/test_ec2.py
+++ b/libcloud/test/compute/test_ec2.py
@@ -707,6 +707,8 @@ class EC2MockHttp(MockHttpTestCase):
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
def _ex_security_groups_RunInstances(self, method, url, body, headers):
+ # Need to remove '/?'
+ url = url[2:]
params = dict(parse_qsl(url))
self.assertEqual(params['SecurityGroup.1'], 'group1')