Author: tomaz
Date: Sat Jun  9 03:32:35 2012
New Revision: 1348305

URL: http://svn.apache.org/viewvc?rev=1348305&view=rev
Log:
Add support for URL RecordType to Zerigo driver. Contributed by Bojan Mihelac,
part of LIBCLOUD-209.

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=1348305&r1=1348304&r2=1348305&view=diff
==============================================================================
--- libcloud/trunk/CHANGES (original)
+++ libcloud/trunk/CHANGES Sat Jun  9 03:32:35 2012
@@ -51,6 +51,9 @@ Changes with Apache Libcloud in developm
       - Zerigo
       [Tomaz Muraus]
 
+    - Add support for URL RecordType to Zerigo driver. ; LIBCLOUD-209
+      [Bojan Mihelac]
+
   *) Storage
 
     - Fix a bug with Python 3 support in the following drivers ; LIBCLOUD-204

Modified: libcloud/trunk/libcloud/dns/drivers/zerigo.py
URL: 
http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/drivers/zerigo.py?rev=1348305&r1=1348304&r2=1348305&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/drivers/zerigo.py (original)
+++ libcloud/trunk/libcloud/dns/drivers/zerigo.py Sat Jun  9 03:32:35 2012
@@ -140,6 +140,7 @@ class ZerigoDNSDriver(DNSDriver):
         RecordType.PTR: 'PTR',
         RecordType.SPF: 'SPF',
         RecordType.GEO: 'GEO',
+        RecordType.URL: 'URL',
     }
 
     def list_zones(self):

Modified: libcloud/trunk/libcloud/dns/types.py
URL: 
http://svn.apache.org/viewvc/libcloud/trunk/libcloud/dns/types.py?rev=1348305&r1=1348304&r2=1348305&view=diff
==============================================================================
--- libcloud/trunk/libcloud/dns/types.py (original)
+++ libcloud/trunk/libcloud/dns/types.py Sat Jun  9 03:32:35 2012
@@ -55,6 +55,7 @@ class RecordType(object):
     NAPTR = 12
     REDIRECT = 13
     GEO = 14
+    URL = 15
 
     @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=1348305&r1=1348304&r2=1348305&view=diff
==============================================================================
--- libcloud/trunk/test/dns/test_zerigo.py (original)
+++ libcloud/trunk/test/dns/test_zerigo.py Sat Jun  9 03:32:35 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), 12)
+        self.assertEqual(len(record_types), 13)
         self.assertTrue(RecordType.A in record_types)
 
     def test_list_zones_success(self):


Reply via email to