You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/13 09:33:41 UTC

[35/46] libcloud git commit: skip azure 307 test, convert encoded describe images fixture for azure SM driver

skip azure 307 test, convert encoded describe images fixture for azure SM driver


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5732852a
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5732852a
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5732852a

Branch: refs/heads/trunk
Commit: 5732852ad92d582c136ab6f7c836b262f12051bc
Parents: 25e2d16
Author: Anthony Shaw <an...@apache.org>
Authored: Thu Apr 13 12:10:52 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Thu Apr 13 12:10:52 2017 +1000

----------------------------------------------------------------------
 libcloud/test/__init__.py                                         | 3 ++-
 .../_3761b98b_673d_526c_8d55_fee918758e6e_services_images.xml     | 2 +-
 libcloud/test/compute/test_azure.py                               | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/5732852a/libcloud/test/__init__.py
----------------------------------------------------------------------
diff --git a/libcloud/test/__init__.py b/libcloud/test/__init__.py
index 6ee0da1..578b064 100644
--- a/libcloud/test/__init__.py
+++ b/libcloud/test/__init__.py
@@ -32,6 +32,7 @@ from libcloud.utils.py3 import (httplib, u)
 from libcloud.utils.py3 import urlparse
 from libcloud.utils.py3 import parse_qs
 from libcloud.utils.py3 import parse_qsl
+from libcloud.utils.py3 import urlquote
 from libcloud.utils.py3 import unittest2_required
 
 if unittest2_required:
@@ -138,7 +139,7 @@ class MockHttp(LibcloudConnection):
         if r_body is None:
             r_body = ''
         # this is to catch any special chars e.g. ~ in the request. URL
-        url = urlparse.quote(url)
+        url = urlquote(url)
 
         with requests_mock.mock() as m:
             m.register_uri(method, url, text=r_body, reason=r_reason,