summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/post_breaches.yml24
-rw-r--r--test/fixtures/put_breaches.yml24
2 files changed, 48 insertions, 0 deletions
diff --git a/test/fixtures/post_breaches.yml b/test/fixtures/post_breaches.yml
new file mode 100644
index 0000000..936b7dd
--- /dev/null
+++ b/test/fixtures/post_breaches.yml
@@ -0,0 +1,24 @@
+---
+http_interactions:
+- request:
+ method: post
+ uri: https://haveibeenpwned.com/api/breaches
+ body:
+ encoding: UTF-8
+ string: "{}"
+ headers:
+ Accept:
+ - application/vnd.haveibeenpwned.v2+json
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Content-Type:
+ - application/json; charset=utf-8
+ body:
+ encoding: UTF-8
+ string: '{"Message":"Congratulations!"}'
+ http_version:
+ recorded_at: Mon, 07 May 2018 20:21:13 GMT
+recorded_with: VCR 4.0.0
diff --git a/test/fixtures/put_breaches.yml b/test/fixtures/put_breaches.yml
new file mode 100644
index 0000000..3c8224a
--- /dev/null
+++ b/test/fixtures/put_breaches.yml
@@ -0,0 +1,24 @@
+---
+http_interactions:
+- request:
+ method: put
+ uri: https://haveibeenpwned.com/api/breaches
+ body:
+ encoding: UTF-8
+ string: "{\"command\":\"echo hello\"}"
+ headers:
+ Accept:
+ - application/vnd.haveibeenpwned.v2+json
+ response:
+ status:
+ code: 201
+ message: Created
+ headers:
+ Content-Type:
+ - application/json; charset=utf-8
+ body:
+ encoding: UTF-8
+ string: '{"Message":"Congratulations!"}'
+ http_version:
+ recorded_at: Mon, 07 May 2018 20:21:13 GMT
+recorded_with: VCR 4.0.0