libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [01/51] [abbrv] libcloud git commit: added nttcis modules to libcloud/common and libcloud/drivers and passed connection test
Date Wed, 31 Oct 2018 03:11:12 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 370ecf7cd -> 888be0599


http://git-wip-us.apache.org/repos/asf/libcloud/blob/b80bf325/libcloud/compute/providers.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/providers.py b/libcloud/compute/providers.py
index 72a5a85..df55ce3 100644
--- a/libcloud/compute/providers.py
+++ b/libcloud/compute/providers.py
@@ -147,6 +147,8 @@ DRIVERS = {
     ('libcloud.compute.drivers.oneandone', 'OneAndOneNodeDriver'),
     Provider.UPCLOUD:
     ('libcloud.compute.drivers.upcloud', 'UpcloudDriver'),
+    Provider.NTTCIS:
+    ('libcloud.compute.drivers.nttcis', 'NttCisNodeDriver'),
 }
 
 

http://git-wip-us.apache.org/repos/asf/libcloud/blob/b80bf325/libcloud/compute/types.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/types.py b/libcloud/compute/types.py
index 44e8687..3308487 100644
--- a/libcloud/compute/types.py
+++ b/libcloud/compute/types.py
@@ -145,6 +145,7 @@ class Provider(Type):
     NIMBUS = 'nimbus'
     NINEFOLD = 'ninefold'
     NTTA = 'ntta'
+    NTTCIS = 'nttcis'
     ONEANDONE = 'oneandone'
     OPENNEBULA = 'opennebula'
     OPENSTACK = 'openstack'

http://git-wip-us.apache.org/repos/asf/libcloud/blob/b80bf325/tests/libtest.py
----------------------------------------------------------------------
diff --git a/tests/libtest.py b/tests/libtest.py
index 6e33a99..f235c46 100644
--- a/tests/libtest.py
+++ b/tests/libtest.py
@@ -3,7 +3,7 @@ import libcloud
 
 
 def test_connection():
-    cls = libcloud.get_driver(libcloud.DriverType.COMPUTE, libcloud.DriverType.COMPUTE.DIMENSIONDATA)
+    cls = libcloud.get_driver(libcloud.DriverType.COMPUTE, libcloud.DriverType.COMPUTE.NTTCIS)
     driver = cls('mitchgeo-test', 'Snmpv2c!', region='dd-eu')
     nodes = driver.list_nodes()
     assert isinstance(nodes, list)


Mime
View raw message