summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-01-14 15:03:44 -0700
committermo khan <mo.khan@gmail.com>2020-01-14 15:03:44 -0700
commitcd0813cad397b3d1f25e40b7c0ed86f8f85c8026 (patch)
tree546238af579cfd39c211975b8d43d89a7076930a /test/fixtures
parent0764621a552d580c31352f3b1311f6cfc8c5939f (diff)
Add test to not follow redirects
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/does_not_follow_redirect.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/fixtures/does_not_follow_redirect.yml b/test/fixtures/does_not_follow_redirect.yml
new file mode 100644
index 0000000..77e5c5a
--- /dev/null
+++ b/test/fixtures/does_not_follow_redirect.yml
@@ -0,0 +1,24 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: https://pypi.org/pypi/django/1.11.3/json
+ response:
+ status:
+ code: 301
+ message: Moved Permanently
+ headers:
+ Content-Type:
+ - application/json
+ Location:
+ - https://pypi.org/pypi/Django/1.11.3/json
+ Content-Length:
+ - '178'
+ body:
+ encoding: UTF-8
+ string: '{"message": "The resource has been moved to /pypi/Django/1.11.3/json;
+ you should be redirected automatically.\n\n", "code": "301 Moved Permanently",
+ "title": "Moved Permanently"}'
+ http_version:
+ recorded_at: Tue, 14 Jan 2020 22:00:25 GMT
+recorded_with: VCR 4.0.0