Skip to content

Commit 3cd2d76

Browse files
github-actions[bot]github-actionsjacegu
authored
chore: Sync fixtures as of 2025-09-24 06:24:35 (#480)
* chore: sync test fixtures as of 2025-09-24 06:24:35 * change: Adjust spec to fixture I added an expectation for the specifics of the validation error. --------- Co-authored-by: github-actions <[email protected]> Co-authored-by: Javier Acero <[email protected]>
1 parent c820e04 commit 3cd2d76

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed
Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
HTTP/1.1 400 Bad Request
2-
server: nginx
3-
date: Fri, 05 Sep 2025 06:58:03 GMT
4-
content-type: application/json; charset=utf-8
5-
content-length: 120
6-
X-RateLimit-Limit: 2400
7-
X-RateLimit-Remaining: 2385
8-
X-RateLimit-Reset: 1757058040
9-
x-work-with-us: Love automation? So do we! https://dnsimple.com/jobs
10-
cache-control: no-cache
11-
x-request-id: 44ce10e5-04cc-4428-8473-55739ff6e37a
12-
x-runtime: 0.109317
13-
strict-transport-security: max-age=63072000
14-
15-
{"message":"Validation failed","errors":{"creates":[{"index":1,"message":"The SPF record type has been discontinued"}]}}
1+
HTTP/1.1 400 Bad Request
2+
Server: nginx
3+
Date: Tue, 23 Sep 2025 10:21:06 GMT
4+
Content-Type: application/json; charset=utf-8
5+
Content-Length: 137
6+
Connection: keep-alive
7+
X-RateLimit-Limit: 2400
8+
X-RateLimit-Remaining: 2397
9+
X-RateLimit-Reset: 1758626142
10+
X-WORK-WITH-US: Love automation? So do we! https://dnsimple.com/jobs
11+
Cache-Control: no-cache
12+
X-Request-Id: 22761da9-ad02-4970-add5-e26602b09bb5
13+
X-Runtime: 0.115194
14+
Strict-Transport-Security: max-age=63072000
15+
16+
{"message":"Validation failed","errors":{"creates":[{"index":0,"message":"Validation failed","errors":{"record_type":["unsupported"]}}]}}

tests/service/zones_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ def test_batch_change_records_create_validation_failed(self):
193193
except DNSimpleException as dnse:
194194
self.assertEqual('Validation failed', dnse.message)
195195
self.assertIsInstance(dnse, DNSimpleException)
196-
self.assertEqual('The SPF record type has been discontinued', dnse.attribute_errors['creates'][0]['message'])
196+
self.assertEqual('Validation failed', dnse.attribute_errors['creates'][0]['message'])
197+
self.assertEqual({'record_type': ['unsupported']}, dnse.attribute_errors['creates'][0]['errors'])
197198

198199
@responses.activate
199200
def test_batch_change_records_update_validation_failed(self):

0 commit comments

Comments
 (0)