You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/10/08 22:52:35 UTC

svn commit: r1180487 - /libcloud/trunk/test/dns/test_linode.py

Author: tomaz
Date: Sat Oct  8 20:52:34 2011
New Revision: 1180487

URL: http://svn.apache.org/viewvc?rev=1180487&view=rev
Log:
Fix test_get_record_record_does_not_exist linode DNS driver test.

Modified:
    libcloud/trunk/test/dns/test_linode.py

Modified: libcloud/trunk/test/dns/test_linode.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/test/dns/test_linode.py?rev=1180487&r1=1180486&r2=1180487&view=diff
==============================================================================
--- libcloud/trunk/test/dns/test_linode.py (original)
+++ libcloud/trunk/test/dns/test_linode.py Sat Oct  8 20:52:34 2011
@@ -118,8 +118,8 @@ class LinodeTests(unittest.TestCase):
         LinodeMockHttp.type = 'GET_RECORD_RECORD_DOES_NOT_EXIST'
 
         try:
-            record = self.driver.get_record(zone_id='444', record_id='28536')
-        except ZoneDoesNotExistError:
+            record = self.driver.get_record(zone_id='4441', record_id='28536')
+        except RecordDoesNotExistError:
             pass
         else:
             self.fail('Exception was not thrown')
@@ -261,11 +261,24 @@ class LinodeMockHttp(MockHttp):
         body = self.fixtures.load('get_zone_does_not_exist.json')
         return (httplib.OK, body, {}, httplib.responses[httplib.OK])
 
+    def _GET_RECORD_ZONE_DOES_NOT_EXIST_domain_resource_list(self, method, url, body,
+                                                    headers):
+        body = self.fixtures.load('get_record_does_not_exist.json')
+        return (httplib.OK, body, {}, httplib.responses[httplib.OK])
+
+
     def _GET_RECORD_RECORD_DOES_NOT_EXIST_domain_list(self, method, url, body,
                                                       headers):
+        body = self.fixtures.load('get_zone.json')
+        return (httplib.OK, body, {}, httplib.responses[httplib.OK])
+
+    def _GET_RECORD_RECORD_DOES_NOT_EXIST_domain_resource_list(self, method,
+                                                               url, body,
+                                                               headers):
         body = self.fixtures.load('get_record_does_not_exist.json')
         return (httplib.OK, body, {}, httplib.responses[httplib.OK])
 
+
     def _domain_create(self, method, url, body, headers):
         body = self.fixtures.load('create_domain.json')
         return (httplib.OK, body, {}, httplib.responses[httplib.OK])