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/22 02:35:17 UTC

[4/9] libcloud git commit: allow the tests to be called in another sequence

allow the tests to be called in another sequence


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

Branch: refs/heads/trunk
Commit: daaac0d61a5f9ce2afe2cc9b805c25fe774d57f9
Parents: eaaf699
Author: Anthony Shaw <an...@apache.org>
Authored: Sat Apr 22 08:09:58 2017 +1000
Committer: Anthony Shaw <an...@apache.org>
Committed: Sat Apr 22 08:09:58 2017 +1000

----------------------------------------------------------------------
 libcloud/test/compute/test_openstack.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/daaac0d6/libcloud/test/compute/test_openstack.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_openstack.py b/libcloud/test/compute/test_openstack.py
index d00a467..3351db9 100644
--- a/libcloud/test/compute/test_openstack.py
+++ b/libcloud/test/compute/test_openstack.py
@@ -42,7 +42,8 @@ from libcloud.compute.drivers.openstack import (
     OpenStack_1_0_NodeDriver,
     OpenStack_1_1_NodeDriver, OpenStackSecurityGroup,
     OpenStackSecurityGroupRule, OpenStack_1_1_FloatingIpPool,
-    OpenStack_1_1_FloatingIpAddress, OpenStackKeyPair
+    OpenStack_1_1_FloatingIpAddress, OpenStackKeyPair,
+    OpenStack_1_0_Connection
 )
 from libcloud.compute.base import Node, NodeImage, NodeSize
 from libcloud.pricing import set_pricing, clear_pricing_data
@@ -58,7 +59,7 @@ BASE_DIR = os.path.abspath(os.path.split(__file__)[0])
 
 class OpenStackAuthTests(unittest.TestCase):
     def setUp(self):
-        pass
+        OpenStack_1_0_NodeDriver.connectionCls = OpenStack_1_0_Connection
 
     def test_auth_host_passed(self):
         forced_auth = 'http://x.y.z.y:5000'