diff --git a/tests/fixtures/v2/api/batchChangeZoneRecords/error_400_create_validation_failed.http b/tests/fixtures/v2/api/batchChangeZoneRecords/error_400_create_validation_failed.http index 56875d4..94736fd 100644 --- a/tests/fixtures/v2/api/batchChangeZoneRecords/error_400_create_validation_failed.http +++ b/tests/fixtures/v2/api/batchChangeZoneRecords/error_400_create_validation_failed.http @@ -1,15 +1,16 @@ -HTTP/1.1 400 Bad Request -server: nginx -date: Fri, 05 Sep 2025 06:58:03 GMT -content-type: application/json; charset=utf-8 -content-length: 120 -X-RateLimit-Limit: 2400 -X-RateLimit-Remaining: 2385 -X-RateLimit-Reset: 1757058040 -x-work-with-us: Love automation? So do we! https://dnsimple.com/jobs -cache-control: no-cache -x-request-id: 44ce10e5-04cc-4428-8473-55739ff6e37a -x-runtime: 0.109317 -strict-transport-security: max-age=63072000 - -{"message":"Validation failed","errors":{"creates":[{"index":1,"message":"The SPF record type has been discontinued"}]}} +HTTP/1.1 400 Bad Request +Server: nginx +Date: Tue, 23 Sep 2025 10:21:06 GMT +Content-Type: application/json; charset=utf-8 +Content-Length: 137 +Connection: keep-alive +X-RateLimit-Limit: 2400 +X-RateLimit-Remaining: 2397 +X-RateLimit-Reset: 1758626142 +X-WORK-WITH-US: Love automation? So do we! https://dnsimple.com/jobs +Cache-Control: no-cache +X-Request-Id: 22761da9-ad02-4970-add5-e26602b09bb5 +X-Runtime: 0.115194 +Strict-Transport-Security: max-age=63072000 + +{"message":"Validation failed","errors":{"creates":[{"index":0,"message":"Validation failed","errors":{"record_type":["unsupported"]}}]}} diff --git a/tests/service/zones_test.py b/tests/service/zones_test.py index 313c7ad..672c99e 100644 --- a/tests/service/zones_test.py +++ b/tests/service/zones_test.py @@ -193,7 +193,8 @@ def test_batch_change_records_create_validation_failed(self): except DNSimpleException as dnse: self.assertEqual('Validation failed', dnse.message) self.assertIsInstance(dnse, DNSimpleException) - self.assertEqual('The SPF record type has been discontinued', dnse.attribute_errors['creates'][0]['message']) + self.assertEqual('Validation failed', dnse.attribute_errors['creates'][0]['message']) + self.assertEqual({'record_type': ['unsupported']}, dnse.attribute_errors['creates'][0]['errors']) @responses.activate def test_batch_change_records_update_validation_failed(self):