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
4 changes: 4 additions & 0 deletions tests/fixtures/v2/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Preserve line endings in HTTP fixture files
# These files contain raw HTTP requests/responses. Treat them as binary
# to prevent Git from converting line endings.
**/*.http binary
30 changes: 15 additions & 15 deletions tests/fixtures/v2/api/acceptPush/success.http
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
HTTP/1.1 204 No Content
Server: nginx
Date: Thu, 11 Aug 2016 10:23:46 GMT
Connection: keep-alive
X-RateLimit-Limit: 2400
X-RateLimit-Remaining: 2392
X-RateLimit-Reset: 1470913058
Cache-Control: no-cache
X-Request-Id: 5867ab50-6237-4cf8-b220-51f5ef57debd
X-Runtime: 0.582482
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: DENY
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000
server: nginx
date: Thu, 11 Aug 2016 10:23:46 GMT
connection: keep-alive
x-ratelimit-limit: 2400
x-ratelimit-remaining: 2392
x-ratelimit-reset: 1470913058
cache-control: no-cache
x-request-id: 5867ab50-6237-4cf8-b220-51f5ef57debd
x-runtime: 0.582482
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: DENY
x-permitted-cross-domain-policies: none
x-xss-protection: 1; mode=block
strict-transport-security: max-age=31536000

40 changes: 20 additions & 20 deletions tests/fixtures/v2/api/accounts/success-account.http
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 14 Jun 2016 12:02:58 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
X-RateLimit-Limit: 2400
X-RateLimit-Remaining: 2391
X-RateLimit-Reset: 1465908577
ETag: W/"9ef3b4bf1f441a9b1cd6d7041bc181aa"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: f705b65b-3589-43ad-97ca-3b2821d49d81
X-Runtime: 0.012661
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: DENY
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000
{"data":[{"id":123,"email":"john@example.com","plan_identifier":"dnsimple-personal","created_at":"2011-09-11T17:15:58Z","updated_at":"2016-06-03T15:02:26Z"}]}
HTTP/1.1 200 OK
server: nginx
date: Tue, 14 Jun 2016 12:02:58 GMT
content-type: application/json; charset=utf-8
connection: keep-alive
x-ratelimit-limit: 2400
x-ratelimit-remaining: 2391
x-ratelimit-reset: 1465908577
etag: W/"9ef3b4bf1f441a9b1cd6d7041bc181aa"
cache-control: max-age=0, private, must-revalidate
x-request-id: f705b65b-3589-43ad-97ca-3b2821d49d81
x-runtime: 0.012661
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: DENY
x-permitted-cross-domain-policies: none
x-xss-protection: 1; mode=block
strict-transport-security: max-age=31536000

{"data":[{"id":123,"email":"john@example.com","plan_identifier":"dnsimple-personal","created_at":"2011-09-11T17:15:58Z","updated_at":"2016-06-03T15:02:26Z"}]}
42 changes: 21 additions & 21 deletions tests/fixtures/v2/api/accounts/success-user.http
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 14 Jun 2016 12:05:38 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
X-RateLimit-Limit: 2400
X-RateLimit-Remaining: 2390
X-RateLimit-Reset: 1465908577
ETag: W/"b8dc5b6e94652da599d15d4668b723b5"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 745455ba-3871-440d-b703-1448b9708c14
X-Runtime: 0.014727
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: DENY
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000
{"data":[{"id":123,"email":"john@example.com","plan_identifier":"dnsimple-personal","created_at":"2011-09-11T17:15:58Z","updated_at":"2016-06-03T15:02:26Z"},{"id":456,"email":"ops@company.com","plan_identifier":"teams-v1-monthly","created_at":"2012-03-16T16:02:54Z","updated_at":"2016-06-14T11:23:16Z"}]}
HTTP/1.1 200 OK
server: nginx
date: Tue, 14 Jun 2016 12:05:38 GMT
content-type: application/json; charset=utf-8
connection: keep-alive
x-ratelimit-limit: 2400
x-ratelimit-remaining: 2390
x-ratelimit-reset: 1465908577
etag: W/"b8dc5b6e94652da599d15d4668b723b5"
cache-control: max-age=0, private, must-revalidate
x-request-id: 745455ba-3871-440d-b703-1448b9708c14
x-runtime: 0.014727
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: DENY
x-permitted-cross-domain-policies: none
x-xss-protection: 1; mode=block
strict-transport-security: max-age=31536000

{"data":[{"id":123,"email":"john@example.com","plan_identifier":"dnsimple-personal","created_at":"2011-09-11T17:15:58Z","updated_at":"2016-06-03T15:02:26Z"},{"id":456,"email":"ops@company.com","plan_identifier":"teams-v1-monthly","created_at":"2012-03-16T16:02:54Z","updated_at":"2016-06-14T11:23:16Z"}]}

32 changes: 16 additions & 16 deletions tests/fixtures/v2/api/activateZoneService/success.http
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 08 Aug 2023 04:19:23 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
X-RateLimit-Limit: 2400
X-RateLimit-Remaining: 2399
X-RateLimit-Reset: 1691471963
X-WORK-WITH-US: Love automation? So do we! https://dnsimple.com/jobs
ETag: W/"fe6afd982459be33146933235343d51d"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 8e8ac535-9f46-4304-8440-8c68c30427c3
X-Runtime: 0.176579
Strict-Transport-Security: max-age=63072000
{"data":{"id":1,"account_id":1010,"name":"example.com","reverse":false,"secondary":false,"last_transferred_at":null,"active":true,"created_at":"2022-09-28T04:45:24Z","updated_at":"2023-07-06T11:19:48Z"}}
HTTP/1.1 200 OK
server: nginx
date: Tue, 08 Aug 2023 04:19:23 GMT
content-type: application/json; charset=utf-8
connection: keep-alive
x-ratelimit-limit: 2400
x-ratelimit-remaining: 2399
x-ratelimit-reset: 1691471963
x-work-with-us: Love automation? So do we! https://dnsimple.com/jobs
etag: W/"fe6afd982459be33146933235343d51d"
cache-control: max-age=0, private, must-revalidate
x-request-id: 8e8ac535-9f46-4304-8440-8c68c30427c3
x-runtime: 0.176579
strict-transport-security: max-age=63072000

{"data":{"id":1,"account_id":1010,"name":"example.com","reverse":false,"secondary":false,"last_transferred_at":null,"active":true,"created_at":"2022-09-28T04:45:24Z","updated_at":"2023-07-06T11:19:48Z"}}
38 changes: 19 additions & 19 deletions tests/fixtures/v2/api/appliedServices/success.http
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 15 Jun 2016 11:09:44 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
X-RateLimit-Limit: 2400
X-RateLimit-Remaining: 2398
X-RateLimit-Reset: 1465992405
ETag: W/"f3fb525524e0a0eab452025850afb062"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 03bcc2ff-d1f1-4fc2-bb3f-9218a21c04b7
X-Runtime: 0.065526
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: DENY
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000
HTTP/1.1 200 OK
server: nginx
date: Wed, 15 Jun 2016 11:09:44 GMT
content-type: application/json; charset=utf-8
connection: keep-alive
x-ratelimit-limit: 2400
x-ratelimit-remaining: 2398
x-ratelimit-reset: 1465992405
etag: W/"f3fb525524e0a0eab452025850afb062"
cache-control: max-age=0, private, must-revalidate
x-request-id: 03bcc2ff-d1f1-4fc2-bb3f-9218a21c04b7
x-runtime: 0.065526
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: DENY
x-permitted-cross-domain-policies: none
x-xss-protection: 1; mode=block
strict-transport-security: max-age=31536000

{"data":[{"id":1,"name":"WordPress","sid":"wordpress","description":"Share with the world, your community, or your closest friends.","setup_description":null,"requires_setup":true,"default_subdomain":"blog","created_at":"2013-11-05T18:06:50Z","updated_at":"2016-03-04T09:23:27Z","settings":[{"name":"site","label":"Site","append":null,"description":"Your Wordpress.com subdomain","example":null,"password":false}]}],"pagination":{"current_page":1,"per_page":30,"total_entries":1,"total_pages":1}}
30 changes: 15 additions & 15 deletions tests/fixtures/v2/api/applyService/success.http
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
HTTP/1.1 204 No Content
Server: nginx
Date: Sat, 09 Jul 2016 11:12:42 GMT
Connection: keep-alive
X-RateLimit-Limit: 2400
X-RateLimit-Remaining: 2398
X-RateLimit-Reset: 1468066326
Cache-Control: no-cache
X-Request-Id: 30a3a44b-5792-4114-a355-a866603311ce
X-Runtime: 0.087254
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: DENY
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=31536000
server: nginx
date: Sat, 09 Jul 2016 11:12:42 GMT
connection: keep-alive
x-ratelimit-limit: 2400
x-ratelimit-remaining: 2398
x-ratelimit-reset: 1468066326
cache-control: no-cache
x-request-id: 30a3a44b-5792-4114-a355-a866603311ce
x-runtime: 0.087254
x-content-type-options: nosniff
x-download-options: noopen
x-frame-options: DENY
x-permitted-cross-domain-policies: none
x-xss-protection: 1; mode=block
strict-transport-security: max-age=31536000

26 changes: 13 additions & 13 deletions tests/fixtures/v2/api/applyTemplate/success.http
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
HTTP/1.1 204 No Content
Server: nginx
Date: Thu, 24 Mar 2016 11:05:38 GMT
Connection: keep-alive
Status: 204 No Content
X-RateLimit-Limit: 2400
X-RateLimit-Remaining: 2397
X-RateLimit-Reset: 1458821049
Cache-Control: no-cache
X-Request-Id: 967713d5-a203-40ee-875c-1df07868b7eb
X-Runtime: 0.147576
Strict-Transport-Security: max-age=31536000
HTTP/1.1 204 No Content
server: nginx
date: Thu, 24 Mar 2016 11:05:38 GMT
connection: keep-alive
status: 204 No Content
x-ratelimit-limit: 2400
x-ratelimit-remaining: 2397
x-ratelimit-reset: 1458821049
cache-control: no-cache
x-request-id: 967713d5-a203-40ee-875c-1df07868b7eb
x-runtime: 0.147576
strict-transport-security: max-age=31536000

26 changes: 13 additions & 13 deletions tests/fixtures/v2/api/authorizeDomainTransferOut/success.http
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
HTTP/1.1 204 No Content
Server: nginx
Date: Sun, 21 Feb 2016 13:40:35 GMT
Connection: keep-alive
Status: 204 No Content
X-RateLimit-Limit: 4000
X-RateLimit-Remaining: 3990
X-RateLimit-Reset: 1456063540
Cache-Control: no-cache
X-Request-Id: 9af6ab78-7ea8-4675-89f0-14d124fc7ca2
X-Runtime: 3.038699
Strict-Transport-Security: max-age=31536000
HTTP/1.1 204 No Content
server: nginx
date: Sun, 21 Feb 2016 13:40:35 GMT
connection: keep-alive
status: 204 No Content
x-ratelimit-limit: 4000
x-ratelimit-remaining: 3990
x-ratelimit-reset: 1456063540
cache-control: no-cache
x-request-id: 9af6ab78-7ea8-4675-89f0-14d124fc7ca2
x-runtime: 3.038699
strict-transport-security: max-age=31536000

10 changes: 5 additions & 5 deletions tests/fixtures/v2/api/badgateway.http
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
HTTP/1.1 502 Bad Gateway
Server: nginx
Date: Mon, 22 Dec 2014 14:16:12 GMT
Content-Type: text/html
Content-Length: 166
Connection: close
server: nginx
date: Mon, 22 Dec 2014 14:16:12 GMT
content-type: text/html
content-length: 166
connection: close

<html>
<head><title>502 Bad Gateway</title></head>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
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"]}}]}}
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"]}}]}}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ server: nginx
date: Fri, 05 Sep 2025 06:50:48 GMT
content-type: application/json; charset=utf-8
content-length: 107
X-RateLimit-Limit: 2400
X-RateLimit-Remaining: 2390
X-RateLimit-Reset: 1757058040
x-ratelimit-limit: 2400
x-ratelimit-remaining: 2390
x-ratelimit-reset: 1757058040
x-work-with-us: Love automation? So do we! https://dnsimple.com/jobs
cache-control: no-cache
x-request-id: 254988cd-401b-4a32-b5d8-c25502573c9a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ server: nginx
date: Fri, 05 Sep 2025 06:52:30 GMT
content-type: application/json; charset=utf-8
content-length: 107
X-RateLimit-Limit: 2400
X-RateLimit-Remaining: 2388
X-RateLimit-Reset: 1757058040
x-ratelimit-limit: 2400
x-ratelimit-remaining: 2388
x-ratelimit-reset: 1757058040
x-work-with-us: Love automation? So do we! https://dnsimple.com/jobs
cache-control: no-cache
x-request-id: e042a192-69de-46b5-9ea0-add647a9b20a
Expand Down
32 changes: 16 additions & 16 deletions tests/fixtures/v2/api/batchChangeZoneRecords/success.http
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
HTTP/1.1 200 OK
server: nginx
date: Fri, 05 Sep 2025 05:25:01 GMT
content-type: application/json; charset=utf-8
content-length: 1080
X-RateLimit-Limit: 2400
X-RateLimit-Remaining: 2399
X-RateLimit-Reset: 1757053501
x-work-with-us: Love automation? So do we! https://dnsimple.com/jobs
etag: W/"0d9f98e87eccabb6c8045c7fd0b61e5e"
cache-control: max-age=0, private, must-revalidate
x-request-id: f331c43b-7f06-4b1f-90a1-e88efee10c1c
x-runtime: 0.334890
strict-transport-security: max-age=63072000
{"data":{"creates":[{"id":67623409,"zone_id":"example.com","parent_id":null,"name":"ab","content":"3.2.3.4","ttl":3600,"priority":null,"type":"A","regions":["global"],"system_record":false,"created_at":"2025-09-05T05:25:00Z","updated_at":"2025-09-05T05:25:00Z"},{"id":67623410,"zone_id":"example.com","parent_id":null,"name":"ab","content":"4.2.3.4","ttl":3600,"priority":null,"type":"A","regions":["global"],"system_record":false,"created_at":"2025-09-05T05:25:00Z","updated_at":"2025-09-05T05:25:00Z"}],"updates":[{"id":67622534,"zone_id":"example.com","parent_id":null,"name":"update1-1757049890","content":"3.2.3.40","ttl":3600,"priority":null,"type":"A","regions":["global"],"system_record":false,"created_at":"2025-09-05T04:40:15Z","updated_at":"2025-09-05T05:25:00Z"},{"id":67622537,"zone_id":"example.com","parent_id":null,"name":"update2-1757049890","content":"5.2.3.40","ttl":3600,"priority":null,"type":"A","regions":["global"],"system_record":false,"created_at":"2025-09-05T04:40:22Z","updated_at":"2025-09-05T05:25:00Z"}],"deletes":[{"id":67622509},{"id":67622527}]}}
HTTP/1.1 200 OK
server: nginx
date: Fri, 05 Sep 2025 05:25:01 GMT
content-type: application/json; charset=utf-8
content-length: 1080
x-ratelimit-limit: 2400
x-ratelimit-remaining: 2399
x-ratelimit-reset: 1757053501
x-work-with-us: Love automation? So do we! https://dnsimple.com/jobs
etag: W/"0d9f98e87eccabb6c8045c7fd0b61e5e"
cache-control: max-age=0, private, must-revalidate
x-request-id: f331c43b-7f06-4b1f-90a1-e88efee10c1c
x-runtime: 0.334890
strict-transport-security: max-age=63072000

{"data":{"creates":[{"id":67623409,"zone_id":"example.com","parent_id":null,"name":"ab","content":"3.2.3.4","ttl":3600,"priority":null,"type":"A","regions":["global"],"system_record":false,"created_at":"2025-09-05T05:25:00Z","updated_at":"2025-09-05T05:25:00Z"},{"id":67623410,"zone_id":"example.com","parent_id":null,"name":"ab","content":"4.2.3.4","ttl":3600,"priority":null,"type":"A","regions":["global"],"system_record":false,"created_at":"2025-09-05T05:25:00Z","updated_at":"2025-09-05T05:25:00Z"}],"updates":[{"id":67622534,"zone_id":"example.com","parent_id":null,"name":"update1-1757049890","content":"3.2.3.40","ttl":3600,"priority":null,"type":"A","regions":["global"],"system_record":false,"created_at":"2025-09-05T04:40:15Z","updated_at":"2025-09-05T05:25:00Z"},{"id":67622537,"zone_id":"example.com","parent_id":null,"name":"update2-1757049890","content":"5.2.3.40","ttl":3600,"priority":null,"type":"A","regions":["global"],"system_record":false,"created_at":"2025-09-05T04:40:22Z","updated_at":"2025-09-05T05:25:00Z"}],"deletes":[{"id":67622509},{"id":67622527}]}}
Loading