@@ -144,7 +144,7 @@ class RcodeZeroDNSMockHttp(MockHttp):
144144 fixtures = DNSFileFixtures ("rcodezero" )
145145 base_headers = {"content-type" : "application/json" }
146146
147- def _api_v1_zones (self , method , url , body , headers ):
147+ def _api_v2_zones (self , method , url , body , headers ):
148148 if method == "GET" :
149149 # list_zones()
150150 body = self .fixtures .load ("list_zones.json" )
@@ -157,7 +157,7 @@ def _api_v1_zones(self, method, url, body, headers):
157157 raise NotImplementedError ("Unexpected method: %s" % method )
158158 return (httplib .OK , body , self .base_headers , httplib .responses [httplib .OK ])
159159
160- def _api_v1_zones_example_at (self , method , * args , ** kwargs ):
160+ def _api_v2_zones_example_at (self , method , * args , ** kwargs ):
161161 if method == "GET" :
162162 # list_records()
163163 body = self .fixtures .load ("get_zone_details.json" )
@@ -173,10 +173,10 @@ def _api_v1_zones_example_at(self, method, *args, **kwargs):
173173 raise NotImplementedError ("Unexpected method: %s" % method )
174174 return (httplib .OK , body , self .base_headers , httplib .responses [httplib .OK ])
175175
176- def _api_v1_zones_example_at__rrsets (self , method , * args , ** kwargs ):
177- return self ._api_v1_zones_example_at_rrsets (method , * args , ** kwargs )
176+ def _api_v2_zones_example_at__rrsets (self , method , * args , ** kwargs ):
177+ return self ._api_v2_zones_example_at_rrsets (method , * args , ** kwargs )
178178
179- def _api_v1_zones_example_at_rrsets (self , method , * args , ** kwargs ):
179+ def _api_v2_zones_example_at_rrsets (self , method , * args , ** kwargs ):
180180 if method == "GET" :
181181 # list_records()
182182 body = self .fixtures .load ("list_records.json" )
@@ -189,7 +189,7 @@ def _api_v1_zones_example_at_rrsets(self, method, *args, **kwargs):
189189 raise NotImplementedError ("Unexpected method: %s" % method )
190190 return (httplib .OK , body , self .base_headers , httplib .responses [httplib .OK ])
191191
192- def _api_v1_zones_EXISTS (self , method , url , body , headers ):
192+ def _api_v2_zones_EXISTS (self , method , url , body , headers ):
193193 # create_zone() is a POST. Raise on all other operations to be safe.
194194 if method != "POST" :
195195 raise NotImplementedError ("Unexpected method: %s" % method )
@@ -203,15 +203,15 @@ def _api_v1_zones_EXISTS(self, method, url, body, headers):
203203 "Unprocessable Entity" ,
204204 )
205205
206- def _api_v1_zones_example_com_MISSING (self , * args , ** kwargs ):
206+ def _api_v2_zones_example_com_MISSING (self , * args , ** kwargs ):
207207 return (
208208 httplib .NOT_FOUND ,
209209 '{"status": "failed","message": "Zone not found"}' ,
210210 self .base_headers ,
211211 "Unprocessable Entity" ,
212212 )
213213
214- def _api_v1_zones_example_at_MISSING (self , * args , ** kwargs ):
214+ def _api_v2_zones_example_at_MISSING (self , * args , ** kwargs ):
215215 return (
216216 httplib .NOT_FOUND ,
217217 '{"status": "failed","message": "Zone not found"}' ,
0 commit comments