aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_push_delete.yaml')
-rw-r--r--tests/cassettes/test_push_delete.yaml26
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/cassettes/test_push_delete.yaml b/tests/cassettes/test_push_delete.yaml
index 92c0acb..7c63087 100644
--- a/tests/cassettes/test_push_delete.yaml
+++ b/tests/cassettes/test_push_delete.yaml
@@ -1,6 +1,6 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BKf9D9Gl2PhY6ruoL5t03nMUM%2Fgrz%2FV2t7Ulu9jX8j0CFVp4uI05RdCwg3rc%2BZRauRej7WNr25EVZ6Xu36IjxKI%3D&subscription%5Bkeys%5D%5Bauth%5D=4WFT9tyJwbMJcYaGZ5cqLg%3D%3D 3 body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BHSgAVMYykgCXIyjGtc4YqPj8GEFC9Frg%2Fzo40TRX3rWxEqFAIVRZke1NIUtHODkw%2BJpvHt6%2FRUhilmG0UmMJOE%3D&subscription%5Bkeys%5D%5Bauth%5D=EI4xq0gaQk9lJxgn7ZGz9g%3D%3D
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate'] 6 Accept-Encoding: ['gzip, deflate']
@@ -8,15 +8,15 @@ interactions:
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 Content-Length: ['246'] 9 Content-Length: ['246']
10 Content-Type: [application/x-www-form-urlencoded] 10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.9.1] 11 User-Agent: [python-requests/2.18.4]
12 method: POST 12 method: POST
13 uri: http://localhost:3000/api/v1/push/subscription 13 uri: http://localhost:3000/api/v1/push/subscription
14 response: 14 response:
15 body: {string: '{"id":2,"endpoint":"https://example.com","alerts":{},"server_key":"BEFgv48oiSIH0eOGT7FydL1ukygGBCLjUDocQJQABVZuFedxZr3QRjZQQvaVVrtMALGqQj9Skemt34NvshOvhyo="}'} 15 body: {string: '{"id":6,"endpoint":"https://example.com","alerts":{},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'}
16 headers: 16 headers:
17 Cache-Control: ['max-age=0, private, must-revalidate'] 17 Cache-Control: ['max-age=0, private, must-revalidate']
18 Content-Type: [application/json; charset=utf-8] 18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"2332b55e95a78e8117bad874f3a6dfe3"] 19 ETag: [W/"4f035f71f6211ae347a40b0eac415095"]
20 Referrer-Policy: [strict-origin-when-cross-origin] 20 Referrer-Policy: [strict-origin-when-cross-origin]
21 Transfer-Encoding: [chunked] 21 Transfer-Encoding: [chunked]
22 Vary: ['Accept-Encoding, Origin'] 22 Vary: ['Accept-Encoding, Origin']
@@ -24,8 +24,8 @@ interactions:
24 X-Download-Options: [noopen] 24 X-Download-Options: [noopen]
25 X-Frame-Options: [SAMEORIGIN] 25 X-Frame-Options: [SAMEORIGIN]
26 X-Permitted-Cross-Domain-Policies: [none] 26 X-Permitted-Cross-Domain-Policies: [none]
27 X-Request-Id: [7d00e007-87df-40a0-948b-149825c01b29] 27 X-Request-Id: [0fb35cb9-b35f-4b8e-8739-8b51511bb38d]
28 X-Runtime: ['0.040019'] 28 X-Runtime: ['0.028399']
29 X-XSS-Protection: [1; mode=block] 29 X-XSS-Protection: [1; mode=block]
30 content-length: ['157'] 30 content-length: ['157']
31 status: {code: 200, message: OK} 31 status: {code: 200, message: OK}
@@ -37,7 +37,7 @@ interactions:
37 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 37 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
38 Connection: [keep-alive] 38 Connection: [keep-alive]
39 Content-Length: ['0'] 39 Content-Length: ['0']
40 User-Agent: [python-requests/2.9.1] 40 User-Agent: [python-requests/2.18.4]
41 method: DELETE 41 method: DELETE
42 uri: http://localhost:3000/api/v1/push/subscription 42 uri: http://localhost:3000/api/v1/push/subscription
43 response: 43 response:
@@ -45,7 +45,7 @@ interactions:
45 headers: 45 headers:
46 Cache-Control: ['max-age=0, private, must-revalidate'] 46 Cache-Control: ['max-age=0, private, must-revalidate']
47 Content-Type: [application/json; charset=utf-8] 47 Content-Type: [application/json; charset=utf-8]
48 ETag: [W/"ab10e86dced2746251206331ba63dcdc"] 48 ETag: [W/"22e009680831e2e6d73ed4c588a7688d"]
49 Referrer-Policy: [strict-origin-when-cross-origin] 49 Referrer-Policy: [strict-origin-when-cross-origin]
50 Transfer-Encoding: [chunked] 50 Transfer-Encoding: [chunked]
51 Vary: ['Accept-Encoding, Origin'] 51 Vary: ['Accept-Encoding, Origin']
@@ -53,8 +53,8 @@ interactions:
53 X-Download-Options: [noopen] 53 X-Download-Options: [noopen]
54 X-Frame-Options: [SAMEORIGIN] 54 X-Frame-Options: [SAMEORIGIN]
55 X-Permitted-Cross-Domain-Policies: [none] 55 X-Permitted-Cross-Domain-Policies: [none]
56 X-Request-Id: [034c37de-98b0-443d-af63-d6c9e7245302] 56 X-Request-Id: [9fd56ca3-f859-4a0b-a8d7-0a1753d812c8]
57 X-Runtime: ['0.044571'] 57 X-Runtime: ['0.020027']
58 X-XSS-Protection: [1; mode=block] 58 X-XSS-Protection: [1; mode=block]
59 content-length: ['2'] 59 content-length: ['2']
60 status: {code: 200, message: OK} 60 status: {code: 200, message: OK}
@@ -65,7 +65,7 @@ interactions:
65 Accept-Encoding: ['gzip, deflate'] 65 Accept-Encoding: ['gzip, deflate']
66 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 66 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
67 Connection: [keep-alive] 67 Connection: [keep-alive]
68 User-Agent: [python-requests/2.9.1] 68 User-Agent: [python-requests/2.18.4]
69 method: GET 69 method: GET
70 uri: http://localhost:3000/api/v1/push/subscription 70 uri: http://localhost:3000/api/v1/push/subscription
71 response: 71 response:
@@ -80,8 +80,8 @@ interactions:
80 X-Download-Options: [noopen] 80 X-Download-Options: [noopen]
81 X-Frame-Options: [SAMEORIGIN] 81 X-Frame-Options: [SAMEORIGIN]
82 X-Permitted-Cross-Domain-Policies: [none] 82 X-Permitted-Cross-Domain-Policies: [none]
83 X-Request-Id: [501bfcc2-0621-440b-bac8-57df49dcab3e] 83 X-Request-Id: [2332dbd1-64dd-48d2-9ecc-692ad6107d04]
84 X-Runtime: ['0.019924'] 84 X-Runtime: ['0.019242']
85 X-XSS-Protection: [1; mode=block] 85 X-XSS-Protection: [1; mode=block]
86 content-length: ['28'] 86 content-length: ['28']
87 status: {code: 404, message: Not Found} 87 status: {code: 404, message: Not Found}
Powered by cgit v1.2.3 (git 2.41.0)