Skip to content

Commit 098a504

Browse files
author
Aaron Sierra
committed
dns: nsone: Fix test_get_record_success()
Previously, test_get_record_success() succeeded when receiving a record completely unrelated to the originating .get_record() request. Update the request to align with the expected response.
1 parent 7e461ae commit 098a504

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libcloud/test/dns/test_nsone.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_get_record_record_does_not_exist(self):
134134

135135
def test_get_record_success(self):
136136
NsOneMockHttp.type = "GET_RECORD_SUCCESS"
137-
record = self.driver.get_record(zone_id="getrecord.com", record_id="A")
137+
record = self.driver.get_record(zone_id="example.com", record_id="520519509f782d58bb4df419")
138138

139139
self.assertEqual(record.id, "520519509f782d58bb4df419")
140140
self.assertEqual(record.name, "www.example.com")
@@ -301,14 +301,14 @@ def _v1_zones_test_com_example_com_A_DELETE_RECORD_SUCCESS(self, method, url, bo
301301

302302
return httplib.OK, body, {}, httplib.responses[httplib.OK]
303303

304-
def _v1_zones_getrecord_com_getrecord_com_A_GET_RECORD_SUCCESS(
304+
def _v1_zones_example_com_example_com_520519509f782d58bb4df419_GET_RECORD_SUCCESS(
305305
self, method, url, body, headers
306306
):
307307
body = self.fixtures.load("get_record_success.json")
308308

309309
return httplib.OK, body, {}, httplib.responses[httplib.OK]
310310

311-
def _v1_zones_getrecord_com_GET_RECORD_SUCCESS(self, method, url, body, headers):
311+
def _v1_zones_example_com_GET_RECORD_SUCCESS(self, method, url, body, headers):
312312
body = self.fixtures.load("get_zone_success.json")
313313

314314
return httplib.OK, body, {}, httplib.responses[httplib.OK]

0 commit comments

Comments
 (0)