Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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"]}}]}}
3 changes: 2 additions & 1 deletion tests/service/zones_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down