libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [2/3] libcloud git commit: Fix failing tests.
Date Sat, 10 Oct 2015 20:48:31 GMT
Fix failing tests.


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

Branch: refs/heads/trunk
Commit: 3c6b379d46b10994fbd037ea238e3f703c0f62e9
Parents: fe079c9
Author: Tomaz Muraus <tomaz@apache.org>
Authored: Sat Oct 10 22:15:37 2015 +0200
Committer: Tomaz Muraus <tomaz@apache.org>
Committed: Sat Oct 10 22:15:37 2015 +0200

----------------------------------------------------------------------
 libcloud/dns/drivers/vultr.py   | 2 +-
 libcloud/test/dns/test_vultr.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/3c6b379d/libcloud/dns/drivers/vultr.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/vultr.py b/libcloud/dns/drivers/vultr.py
index 6fa8e9d..41db457 100644
--- a/libcloud/dns/drivers/vultr.py
+++ b/libcloud/dns/drivers/vultr.py
@@ -184,7 +184,7 @@ class VultrDNSDriver(DNSDriver):
         zones = self.list_zones()
         if self.ex_zone_exists(domain, zones):
             raise ZoneAlreadyExistsError(value='', driver=self,
-                                         domain=domain)
+                                         zone_id=domain)
 
         self.connection.request(params=params, action=action, data=data,
                                 method='POST')

http://git-wip-us.apache.org/repos/asf/libcloud/blob/3c6b379d/libcloud/test/dns/test_vultr.py
----------------------------------------------------------------------
diff --git a/libcloud/test/dns/test_vultr.py b/libcloud/test/dns/test_vultr.py
index 2347a78..abbc570 100644
--- a/libcloud/test/dns/test_vultr.py
+++ b/libcloud/test/dns/test_vultr.py
@@ -111,7 +111,7 @@ class VultrTests(unittest.TestCase):
         self.assertTrue(status)
 
     def test_create_zone_success(self):
-        zone = self.driver.create_zone(zone_id='test.com',
+        zone = self.driver.create_zone(domain='test.com',
                                        extra={'serverip': '127.0.0.1'})
 
         self.assertEqual(zone.id, 'test.com')
@@ -123,7 +123,7 @@ class VultrTests(unittest.TestCase):
         VultrMockHttp.type = 'CREATE_ZONE_ZONE_ALREADY_EXISTS'
 
         try:
-            self.driver.create_zone(zone_id='example.com',
+            self.driver.create_zone(domain='example.com',
                                     extra={'serverip': '127.0.0.1'})
         except ZoneAlreadyExistsError:
             e = sys.exc_info()[1]


Mime
View raw message