You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by vd...@apache.org on 2018/09/19 08:09:41 UTC

[05/18] libcloud git commit: Fix test

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 <mi...@upv.es>
Authored: Thu Nov 30 10:59:31 2017 +0100
Committer: micafer <mi...@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')