libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1345335 - in /libcloud/trunk: CHANGES libcloud/dns/drivers/zerigo.py libcloud/dns/types.py test/dns/test_zerigo.py
Date Fri, 01 Jun 2012 20:20:26 GMT
Author: tomaz
Date: Fri Jun  1 20:20:25 2012
New Revision: 1345335

URL: http://svn.apache.org/viewvc?rev=1345335&view=rev
Log:
Add support for GEO RecordType to Zerigo DNS driver. This patch has been
submitted by Gary Wilson and is part of LIBCLOUD-203.

Modified:
    libcloud/trunk/CHANGES
    libcloud/trunk/libcloud/dns/drivers/zerigo.py
    libcloud/trunk/libcloud/dns/types.py
    libcloud/trunk/test/dns/test_zerigo.py

Modified: libcloud/trunk/CHANGES
URL: http://svn.apache.org/viewvc/libcloud/trunk/CHANGES?rev=1345335&r1=1345334&r2=1345335&view=diff
==============================================================================
--- libcloud/trunk/CHANGES (original)
+++ libcloud/trunk/CHANGES Fri Jun  1 20:20:25 2012
@@ -11,6 +11,10 @@ Changes with Apache Libcloud in developm
       when we immediately can't connect to a server. ; LIBCLOUD-197
       [Jay Doane]
 
+  *) DNS:
+    - Add support for GEO RecordType to Zerigo driver. ; LIBCLOUD-203
+      [Gary Wilson]
+
 Changes with Apache Libcloud 0.10.1:
 
   *) General:

Modified: libcloud/trunk/libcloud/dns/drivers/zerigo.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/drivers/zerigo.py?rev=1345335&r1=1345334&r2=1345335&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/drivers/zerigo.py (original)
+++ libcloud/trunk/libcloud/dns/drivers/zerigo.py Fri Jun  1 20:20:25 2012
@@ -139,6 +139,7 @@ class ZerigoDNSDriver(DNSDriver):
         RecordType.NS: 'NS',
         RecordType.PTR: 'PTR',
         RecordType.SPF: 'SPF',
+        RecordType.GEO: 'GEO',
     }
 
     def list_zones(self):

Modified: libcloud/trunk/libcloud/dns/types.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/types.py?rev=1345335&r1=1345334&r2=1345335&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/types.py (original)
+++ libcloud/trunk/libcloud/dns/types.py Fri Jun  1 20:20:25 2012
@@ -54,6 +54,7 @@ class RecordType(object):
     PTR = 11
     NAPTR = 12
     REDIRECT = 13
+    GEO = 14
 
     @classmethod
     def __repr__(self, value):

Modified: libcloud/trunk/test/dns/test_zerigo.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/test/dns/test_zerigo.py?rev=1345335&r1=1345334&r2=1345335&view=diff
==============================================================================
--- libcloud/trunk/test/dns/test_zerigo.py (original)
+++ libcloud/trunk/test/dns/test_zerigo.py Fri Jun  1 20:20:25 2012
@@ -46,7 +46,7 @@ class ZerigoTests(unittest.TestCase):
 
     def test_list_record_types(self):
         record_types = self.driver.list_record_types()
-        self.assertEqual(len(record_types), 11)
+        self.assertEqual(len(record_types), 12)
         self.assertTrue(RecordType.A in record_types)
 
     def test_list_zones_success(self):



Mime
View raw message