diff options
Diffstat (limited to 'tests/cassettes/test_account_block_unblock.yaml')
-rw-r--r-- | tests/cassettes/test_account_block_unblock.yaml | 152 |
1 files changed, 108 insertions, 44 deletions
diff --git a/tests/cassettes/test_account_block_unblock.yaml b/tests/cassettes/test_account_block_unblock.yaml index db4ab85..a492e68 100644 --- a/tests/cassettes/test_account_block_unblock.yaml +++ b/tests/cassettes/test_account_block_unblock.yaml | |||
@@ -2,57 +2,121 @@ interactions: | |||
2 | - request: | 2 | - request: |
3 | body: null | 3 | body: null |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | - '*/*' |
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 7 | Accept-Encoding: |
8 | Connection: [keep-alive] | 8 | - gzip, deflate |
9 | Content-Length: ['0'] | 9 | Authorization: |
10 | User-Agent: [python-requests/2.18.4] | 10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
11 | Connection: | ||
12 | - keep-alive | ||
13 | Content-Length: | ||
14 | - '0' | ||
15 | User-Agent: | ||
16 | - tests/v311 | ||
11 | method: POST | 17 | method: POST |
12 | uri: http://localhost:3000/api/v1/accounts/1/block | 18 | uri: http://localhost:3000/api/v1/accounts/1234567890123457/block |
13 | response: | 19 | response: |
14 | body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":true,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} | 20 | body: |
21 | string: '{"id":"1234567890123457","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":true,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}' | ||
15 | headers: | 22 | headers: |
16 | Cache-Control: ['no-cache, no-store'] | 23 | Cache-Control: |
17 | Content-Type: [application/json; charset=utf-8] | 24 | - no-store |
18 | Referrer-Policy: [strict-origin-when-cross-origin] | 25 | Content-Security-Policy: |
19 | Transfer-Encoding: [chunked] | 26 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
20 | Vary: ['Accept-Encoding, Origin'] | 27 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
21 | X-Content-Type-Options: [nosniff] | 28 | style-src ''self'' http://localhost:3000 ''nonce-o3m1mPDdDjPr48Bz4TafGQ==''; |
22 | X-Download-Options: [noopen] | 29 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
23 | X-Frame-Options: [SAMEORIGIN] | 30 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
24 | X-Permitted-Cross-Domain-Policies: [none] | 31 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
25 | X-Request-Id: [b8ece01b-466c-4b85-8918-f4b447051f2b] | 32 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
26 | X-Runtime: ['0.155193'] | 33 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
27 | X-XSS-Protection: [1; mode=block] | 34 | worker-src ''self'' blob: http://localhost:3000' |
28 | content-length: ['210'] | 35 | Content-Type: |
29 | status: {code: 200, message: OK} | 36 | - application/json; charset=utf-8 |
37 | ETag: | ||
38 | - W/"d052ad9fec41d112bf876acf058a0afa" | ||
39 | Referrer-Policy: | ||
40 | - strict-origin-when-cross-origin | ||
41 | Transfer-Encoding: | ||
42 | - chunked | ||
43 | Vary: | ||
44 | - Accept, Origin | ||
45 | X-Content-Type-Options: | ||
46 | - nosniff | ||
47 | X-Download-Options: | ||
48 | - noopen | ||
49 | X-Frame-Options: | ||
50 | - SAMEORIGIN | ||
51 | X-Permitted-Cross-Domain-Policies: | ||
52 | - none | ||
53 | X-Request-Id: | ||
54 | - 6bebf8a3-6083-47f2-8dc3-d76a40213e7d | ||
55 | X-Runtime: | ||
56 | - '0.026087' | ||
57 | X-XSS-Protection: | ||
58 | - 1; mode=block | ||
59 | status: | ||
60 | code: 200 | ||
61 | message: OK | ||
30 | - request: | 62 | - request: |
31 | body: null | 63 | body: null |
32 | headers: | 64 | headers: |
33 | Accept: ['*/*'] | 65 | Accept: |
34 | Accept-Encoding: ['gzip, deflate'] | 66 | - '*/*' |
35 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 67 | Accept-Encoding: |
36 | Connection: [keep-alive] | 68 | - gzip, deflate |
37 | Content-Length: ['0'] | 69 | Authorization: |
38 | User-Agent: [python-requests/2.18.4] | 70 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
71 | Connection: | ||
72 | - keep-alive | ||
73 | Content-Length: | ||
74 | - '0' | ||
75 | User-Agent: | ||
76 | - tests/v311 | ||
39 | method: POST | 77 | method: POST |
40 | uri: http://localhost:3000/api/v1/accounts/1/unblock | 78 | uri: http://localhost:3000/api/v1/accounts/1234567890123457/unblock |
41 | response: | 79 | response: |
42 | body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} | 80 | body: |
81 | string: '{"id":"1234567890123457","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}' | ||
43 | headers: | 82 | headers: |
44 | Cache-Control: ['no-cache, no-store'] | 83 | Cache-Control: |
45 | Content-Type: [application/json; charset=utf-8] | 84 | - no-store |
46 | Referrer-Policy: [strict-origin-when-cross-origin] | 85 | Content-Security-Policy: |
47 | Transfer-Encoding: [chunked] | 86 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
48 | Vary: ['Accept-Encoding, Origin'] | 87 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
49 | X-Content-Type-Options: [nosniff] | 88 | style-src ''self'' http://localhost:3000 ''nonce-uid/bJj/PP2h/k5oT2S4bg==''; |
50 | X-Download-Options: [noopen] | 89 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
51 | X-Frame-Options: [SAMEORIGIN] | 90 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
52 | X-Permitted-Cross-Domain-Policies: [none] | 91 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
53 | X-Request-Id: [438d3958-0a35-4a27-bbb7-fa76fc0aa42e] | 92 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
54 | X-Runtime: ['0.166719'] | 93 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
55 | X-XSS-Protection: [1; mode=block] | 94 | worker-src ''self'' blob: http://localhost:3000' |
56 | content-length: ['211'] | 95 | Content-Type: |
57 | status: {code: 200, message: OK} | 96 | - application/json; charset=utf-8 |
97 | ETag: | ||
98 | - W/"25b4d9d745f6bc92c8314562f7461bc8" | ||
99 | Referrer-Policy: | ||
100 | - strict-origin-when-cross-origin | ||
101 | Transfer-Encoding: | ||
102 | - chunked | ||
103 | Vary: | ||
104 | - Accept, Origin | ||
105 | X-Content-Type-Options: | ||
106 | - nosniff | ||
107 | X-Download-Options: | ||
108 | - noopen | ||
109 | X-Frame-Options: | ||
110 | - SAMEORIGIN | ||
111 | X-Permitted-Cross-Domain-Policies: | ||
112 | - none | ||
113 | X-Request-Id: | ||
114 | - bbd711f6-9170-410c-886c-a299b8981e1a | ||
115 | X-Runtime: | ||
116 | - '0.018084' | ||
117 | X-XSS-Protection: | ||
118 | - 1; mode=block | ||
119 | status: | ||
120 | code: 200 | ||
121 | message: OK | ||
58 | version: 1 | 122 | version: 1 |