libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vd...@apache.org
Subject [05/18] libcloud git commit: Fix test
Date Wed, 19 Sep 2018 08:09:41 GMT
Fix test


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

Branch: refs/heads/trunk
Commit: 3dd6f4d5aec21f8d11e415fe4d95d2e316bb3dac
Parents: e23be01
Author: micafer <micafer1@upv.es>
Authored: Thu Nov 30 10:59:31 2017 +0100
Committer: micafer <micafer1@upv.es>
Committed: Thu Nov 30 10:59:31 2017 +0100

----------------------------------------------------------------------
 libcloud/test/common/test_openstack_identity.py | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/3dd6f4d5/libcloud/test/common/test_openstack_identity.py
----------------------------------------------------------------------
diff --git a/libcloud/test/common/test_openstack_identity.py b/libcloud/test/common/test_openstack_identity.py
index 3812f12..bf0eb2b 100644
--- a/libcloud/test/common/test_openstack_identity.py
+++ b/libcloud/test/common/test_openstack_identity.py
@@ -729,6 +729,13 @@ class OpenStackIdentity_3_0_MockHttp(MockHttp):
             return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK])
         raise NotImplementedError()
 
+    def _v3_auth_projects(self, method, url, body, headers):
+        if method == 'GET':
+            # get user projects
+            body = json.dumps({"projects": [{"id": "project_id"}]})
+            return (httplib.OK, body, self.json_content_headers, httplib.responses[httplib.OK])
+        raise NotImplementedError()
+
 
 class OpenStackIdentity_2_0_Connection_VOMSMockHttp(MockHttp):
     fixtures = ComputeFileFixtures('openstack_identity/v2')


Mime
View raw message