aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_push_set.yaml')
-rw-r--r--tests/cassettes/test_push_set.yaml22
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/cassettes/test_push_set.yaml b/tests/cassettes/test_push_set.yaml
index 2745be3..1237d79 100644
--- a/tests/cassettes/test_push_set.yaml
+++ b/tests/cassettes/test_push_set.yaml
@@ -1,22 +1,21 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BAsxK2FBgEOKFAhSnisWyHPeinU2nUJ7SqhZ8%2B03yZOpkSC9YuNT58%2B%2BHX7uMnQ6%2BOJPXKbYAKTveYjgSyntAMk%3D&subscription%5Bkeys%5D%5Bauth%5D=Ks75Jd05g1aHqG7mCDdZ%2BQ%3D%3D 3 body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BC8J%2BAOSp0qSf4liRHkw0mrx01QrIqDHjz5F6qc8NuiG6M03i4QGIeWm3IYhwvIqMkOO30bqGmkoewGU7BN1Fnc%3D&subscription%5Bkeys%5D%5Bauth%5D=C3U3NXZP%2Fei0KKRVU2anWw%3D%3D
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept: ['*/*']
6 Accept-Encoding: ['gzip, deflate'] 6 Accept-Encoding: ['gzip, deflate']
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
8 Connection: [keep-alive] 8 Connection: [keep-alive]
9 Content-Length: ['250'] 9 Content-Length: ['244']
10 Content-Type: [application/x-www-form-urlencoded] 10 Content-Type: [application/x-www-form-urlencoded]
11 User-Agent: [python-requests/2.18.4] 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":7,"endpoint":"https://example.com","alerts":{},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} 15 body: {string: '{"id":1,"endpoint":"https://example.com","alerts":{},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'}
16 headers: 16 headers:
17 Cache-Control: ['max-age=0, private, must-revalidate'] 17 Cache-Control: ['no-cache, no-store']
18 Content-Type: [application/json; charset=utf-8] 18 Content-Type: [application/json; charset=utf-8]
19 ETag: [W/"30a0afc7d55cb1d4863b67d20c8b93d6"]
20 Referrer-Policy: [strict-origin-when-cross-origin] 19 Referrer-Policy: [strict-origin-when-cross-origin]
21 Transfer-Encoding: [chunked] 20 Transfer-Encoding: [chunked]
22 Vary: ['Accept-Encoding, Origin'] 21 Vary: ['Accept-Encoding, Origin']
@@ -24,8 +23,8 @@ interactions:
24 X-Download-Options: [noopen] 23 X-Download-Options: [noopen]
25 X-Frame-Options: [SAMEORIGIN] 24 X-Frame-Options: [SAMEORIGIN]
26 X-Permitted-Cross-Domain-Policies: [none] 25 X-Permitted-Cross-Domain-Policies: [none]
27 X-Request-Id: [a239b437-9f21-41b2-88e7-2d43de580991] 26 X-Request-Id: [14d88eb8-c6e3-42d9-954d-35a3b28c47f4]
28 X-Runtime: ['0.067181'] 27 X-Runtime: ['0.044297']
29 X-XSS-Protection: [1; mode=block] 28 X-XSS-Protection: [1; mode=block]
30 content-length: ['157'] 29 content-length: ['157']
31 status: {code: 200, message: OK} 30 status: {code: 200, message: OK}
@@ -40,11 +39,10 @@ interactions:
40 method: GET 39 method: GET
41 uri: http://localhost:3000/api/v1/push/subscription 40 uri: http://localhost:3000/api/v1/push/subscription
42 response: 41 response:
43 body: {string: '{"id":7,"endpoint":"https://example.com","alerts":{},"server_key":"BP3YHleCxMqxCT6NGjNfl8rRj9BVI9ZGr3xLNzK53Uf0AcMo2VUFgAtdwQBfGofTb48sImPX-LRHTZgmZACu8A0="}'} 42 body: {string: '{"id":1,"endpoint":"https://example.com","alerts":{},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'}
44 headers: 43 headers:
45 Cache-Control: ['max-age=0, private, must-revalidate'] 44 Cache-Control: ['no-cache, no-store']
46 Content-Type: [application/json; charset=utf-8] 45 Content-Type: [application/json; charset=utf-8]
47 ETag: [W/"30a0afc7d55cb1d4863b67d20c8b93d6"]
48 Referrer-Policy: [strict-origin-when-cross-origin] 46 Referrer-Policy: [strict-origin-when-cross-origin]
49 Transfer-Encoding: [chunked] 47 Transfer-Encoding: [chunked]
50 Vary: ['Accept-Encoding, Origin'] 48 Vary: ['Accept-Encoding, Origin']
@@ -52,8 +50,8 @@ interactions:
52 X-Download-Options: [noopen] 50 X-Download-Options: [noopen]
53 X-Frame-Options: [SAMEORIGIN] 51 X-Frame-Options: [SAMEORIGIN]
54 X-Permitted-Cross-Domain-Policies: [none] 52 X-Permitted-Cross-Domain-Policies: [none]
55 X-Request-Id: [e0a552f1-4ff9-4ab3-b1f5-c5e226965714] 53 X-Request-Id: [dc0af102-227e-4701-80d5-0939633bad49]
56 X-Runtime: ['0.015818'] 54 X-Runtime: ['0.017843']
57 X-XSS-Protection: [1; mode=block] 55 X-XSS-Protection: [1; mode=block]
58 content-length: ['157'] 56 content-length: ['157']
59 status: {code: 200, message: OK} 57 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)