-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a dedicated folder for HTTP fixtures
The folder should be unique across all clients, and it should not conflict with `fixtures`, `cassettes`, etc.
- Loading branch information
Showing
25 changed files
with
149 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 14 additions & 14 deletions
28
spec/files/badgateway.http → spec/fixtures.http/badgateway.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
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 | ||
|
||
<html> | ||
<head><title>502 Bad Gateway</title></head> | ||
<body bgcolor="white"> | ||
<center><h1>502 Bad Gateway</h1></center> | ||
<hr><center>nginx</center> | ||
</body> | ||
</html> | ||
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 | ||
|
||
<html> | ||
<head><title>502 Bad Gateway</title></head> | ||
<body bgcolor="white"> | ||
<center><h1>502 Bad Gateway</h1></center> | ||
<hr><center>nginx</center> | ||
</body> | ||
</html> |
30 changes: 15 additions & 15 deletions
30
.../files/domains/create_domain/created.http → ...s.http/domains/create_domain/created.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
HTTP/1.1 201 Created | ||
Server: nginx | ||
Date: Fri, 18 Dec 2015 16:38:07 GMT | ||
Content-Type: application/json; charset=utf-8 | ||
Transfer-Encoding: chunked | ||
Connection: keep-alive | ||
X-RateLimit-Limit: 4000 | ||
X-RateLimit-Remaining: 3986 | ||
X-RateLimit-Reset: 1450456686 | ||
ETag: W/"87e018b900e5f210c3236f63d3b2f4df" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Request-Id: 0d6f1ea7-f702-4317-85f0-04874b69315d | ||
X-Runtime: 0.257489 | ||
Strict-Transport-Security: max-age=31536000 | ||
|
||
HTTP/1.1 201 Created | ||
Server: nginx | ||
Date: Fri, 18 Dec 2015 16:38:07 GMT | ||
Content-Type: application/json; charset=utf-8 | ||
Transfer-Encoding: chunked | ||
Connection: keep-alive | ||
X-RateLimit-Limit: 4000 | ||
X-RateLimit-Remaining: 3986 | ||
X-RateLimit-Reset: 1450456686 | ||
ETag: W/"87e018b900e5f210c3236f63d3b2f4df" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Request-Id: 0d6f1ea7-f702-4317-85f0-04874b69315d | ||
X-Runtime: 0.257489 | ||
Strict-Transport-Security: max-age=31536000 | ||
|
||
{"data":{"id":5823,"account_id":24,"registrant_id":null,"name":"example-1417881397.com","unicode_name":"example-1417881397.com","token":"domain-token","state":"hosted","auto_renew":false,"private_whois":false,"expires_on":null,"created_at":"2015-12-18T16:38:07.615Z","updated_at":"2015-12-18T16:38:07.615Z"}} |
26 changes: 13 additions & 13 deletions
26
.../files/domains/delete_domain/success.http → ...s.http/domains/delete_domain/success.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
HTTP/1.1 204 No Content | ||
Server: nginx | ||
Date: Fri, 18 Dec 2015 16:13:54 GMT | ||
Connection: keep-alive | ||
Strict-Transport-Security: max-age=31536000 | ||
X-RateLimit-Limit: 4000 | ||
X-RateLimit-Remaining: 3990 | ||
X-RateLimit-Reset: 1450455233 | ||
Cache-Control: no-cache | ||
X-Request-Id: a2924814-4aff-42cf-9785-9327ce097d0a | ||
X-Runtime: 0.241247 | ||
Strict-Transport-Security: max-age=31536000 | ||
|
||
HTTP/1.1 204 No Content | ||
Server: nginx | ||
Date: Fri, 18 Dec 2015 16:13:54 GMT | ||
Connection: keep-alive | ||
Strict-Transport-Security: max-age=31536000 | ||
X-RateLimit-Limit: 4000 | ||
X-RateLimit-Remaining: 3990 | ||
X-RateLimit-Reset: 1450455233 | ||
Cache-Control: no-cache | ||
X-Request-Id: a2924814-4aff-42cf-9785-9327ce097d0a | ||
X-Runtime: 0.241247 | ||
Strict-Transport-Security: max-age=31536000 | ||
|
30 changes: 15 additions & 15 deletions
30
spec/files/domains/domain/success.http → ...fixtures.http/domains/domain/success.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
HTTP/1.1 200 OK | ||
Server: nginx | ||
Date: Wed, 16 Dec 2015 21:54:55 GMT | ||
Content-Type: application/json; charset=utf-8 | ||
Transfer-Encoding: chunked | ||
Connection: keep-alive | ||
X-RateLimit-Limit: 4000 | ||
X-RateLimit-Remaining: 3993 | ||
X-RateLimit-Reset: 1450302894 | ||
ETag: W/"e7282090a87379d1fa3507ba6bfd1721" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Request-Id: 3d8da18a-b8b2-4bfd-827c-860da837c80f | ||
X-Runtime: 0.020346 | ||
Strict-Transport-Security: max-age=31536000 | ||
|
||
HTTP/1.1 200 OK | ||
Server: nginx | ||
Date: Wed, 16 Dec 2015 21:54:55 GMT | ||
Content-Type: application/json; charset=utf-8 | ||
Transfer-Encoding: chunked | ||
Connection: keep-alive | ||
X-RateLimit-Limit: 4000 | ||
X-RateLimit-Remaining: 3993 | ||
X-RateLimit-Reset: 1450302894 | ||
ETag: W/"e7282090a87379d1fa3507ba6bfd1721" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Request-Id: 3d8da18a-b8b2-4bfd-827c-860da837c80f | ||
X-Runtime: 0.020346 | ||
Strict-Transport-Security: max-age=31536000 | ||
|
||
{"data":{"id":1745,"account_id":24,"registrant_id":409,"name":"example-1417881397.com","unicode_name":"example-1417881397.com","token":"domain-token","state":"expired","auto_renew":false,"private_whois":false,"expires_on":"2015-12-06","created_at":"2014-12-06T15:56:55.573Z","updated_at":"2015-12-09T00:20:56.056Z"}} |
30 changes: 15 additions & 15 deletions
30
spec/files/domains/domains/success.http → ...ixtures.http/domains/domains/success.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
HTTP/1.1 200 OK | ||
Server: nginx | ||
Date: Wed, 16 Dec 2015 13:36:11 GMT | ||
Content-Type: application/json; charset=utf-8 | ||
Transfer-Encoding: chunked | ||
Connection: keep-alive | ||
X-RateLimit-Limit: 4000 | ||
X-RateLimit-Remaining: 3997 | ||
X-RateLimit-Reset: 1450272970 | ||
ETag: W/"2679531e6cce6cd326f255255d7a0005" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Request-Id: a87f1b44-150a-4ed0-b7da-9301fa1465b0 | ||
X-Runtime: 0.093714 | ||
Strict-Transport-Security: max-age=31536000 | ||
|
||
HTTP/1.1 200 OK | ||
Server: nginx | ||
Date: Wed, 16 Dec 2015 13:36:11 GMT | ||
Content-Type: application/json; charset=utf-8 | ||
Transfer-Encoding: chunked | ||
Connection: keep-alive | ||
X-RateLimit-Limit: 4000 | ||
X-RateLimit-Remaining: 3997 | ||
X-RateLimit-Reset: 1450272970 | ||
ETag: W/"2679531e6cce6cd326f255255d7a0005" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Request-Id: a87f1b44-150a-4ed0-b7da-9301fa1465b0 | ||
X-Runtime: 0.093714 | ||
Strict-Transport-Security: max-age=31536000 | ||
|
||
{"data":[{"id":1745,"account_id":24,"registrant_id":409,"name":"example-1417881397.com","unicode_name":"example-1417881397.com","token":"domain-token","state":"expired","auto_renew":false,"private_whois":false,"expires_on":"2015-12-06","created_at":"2014-12-06T15:56:55.573Z","updated_at":"2015-12-09T00:20:56.056Z"},{"id":1744,"account_id":24,"registrant_id":409,"name":"example-1417880719.com","unicode_name":"example-1417880719.com","token":"domain-token","state":"expired","auto_renew":false,"private_whois":false,"expires_on":"2015-12-06","created_at":"2014-12-06T15:46:52.411Z","updated_at":"2015-12-09T00:20:53.572Z"}],"pagination":{"current_page":1,"per_page":30,"total_entries":2,"total_pages":1}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.