diff options
Diffstat (limited to 'tests/cassettes/test_follow_request_reject.yaml')
-rw-r--r-- | tests/cassettes/test_follow_request_reject.yaml | 102 |
1 files changed, 82 insertions, 20 deletions
diff --git a/tests/cassettes/test_follow_request_reject.yaml b/tests/cassettes/test_follow_request_reject.yaml index caea3ca..9647660 100644 --- a/tests/cassettes/test_follow_request_reject.yaml +++ b/tests/cassettes/test_follow_request_reject.yaml | |||
@@ -1,6 +1,67 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: id=1234567890123456&reblogs=1 | 3 | body: null |
4 | headers: | ||
5 | Accept: | ||
6 | - '*/*' | ||
7 | Accept-Encoding: | ||
8 | - gzip, deflate | ||
9 | Authorization: | ||
10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
11 | Connection: | ||
12 | - keep-alive | ||
13 | User-Agent: | ||
14 | - tests/v311 | ||
15 | method: GET | ||
16 | uri: http://localhost:3000/api/v1/accounts/verify_credentials | ||
17 | response: | ||
18 | body: | ||
19 | string: '{"id":"109336623311102204","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
20 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI | ||
21 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/623/311/102/204/original/8f758332953652da.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/623/311/102/204/original/c7470bf076df1e55.jpg","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-13","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"I | ||
22 | walk funny","fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"follow_requests_count":0},"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}' | ||
23 | headers: | ||
24 | Cache-Control: | ||
25 | - no-store | ||
26 | Content-Security-Policy: | ||
27 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
28 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
29 | style-src ''self'' http://localhost:3000 ''nonce-4ljsecejhhptEJQeIgsrvg==''; | ||
30 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
31 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
32 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
33 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
34 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
35 | worker-src ''self'' blob: http://localhost:3000' | ||
36 | Content-Type: | ||
37 | - application/json; charset=utf-8 | ||
38 | ETag: | ||
39 | - W/"dce7c9745705c468836e3126d8118b03" | ||
40 | Referrer-Policy: | ||
41 | - strict-origin-when-cross-origin | ||
42 | Transfer-Encoding: | ||
43 | - chunked | ||
44 | Vary: | ||
45 | - Accept, Origin | ||
46 | X-Content-Type-Options: | ||
47 | - nosniff | ||
48 | X-Download-Options: | ||
49 | - noopen | ||
50 | X-Frame-Options: | ||
51 | - SAMEORIGIN | ||
52 | X-Permitted-Cross-Domain-Policies: | ||
53 | - none | ||
54 | X-Request-Id: | ||
55 | - 544fa1f9-f141-4ce3-98a9-f6228687f4f2 | ||
56 | X-Runtime: | ||
57 | - '0.012213' | ||
58 | X-XSS-Protection: | ||
59 | - 1; mode=block | ||
60 | status: | ||
61 | code: 200 | ||
62 | message: OK | ||
63 | - request: | ||
64 | body: id=109336623311102204&reblogs=1 | ||
4 | headers: | 65 | headers: |
5 | Accept: | 66 | Accept: |
6 | - '*/*' | 67 | - '*/*' |
@@ -11,23 +72,23 @@ interactions: | |||
11 | Connection: | 72 | Connection: |
12 | - keep-alive | 73 | - keep-alive |
13 | Content-Length: | 74 | Content-Length: |
14 | - '29' | 75 | - '31' |
15 | Content-Type: | 76 | Content-Type: |
16 | - application/x-www-form-urlencoded | 77 | - application/x-www-form-urlencoded |
17 | User-Agent: | 78 | User-Agent: |
18 | - tests/v311 | 79 | - tests/v311 |
19 | method: POST | 80 | method: POST |
20 | uri: http://localhost:3000/api/v1/accounts/1234567890123456/follow | 81 | uri: http://localhost:3000/api/v1/accounts/109336623311102204/follow |
21 | response: | 82 | response: |
22 | body: | 83 | body: |
23 | string: '{"id":"1234567890123456","following":false,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"domain_blocking":false,"endorsed":false,"note":""}' | 84 | string: '{"id":"109336623311102204","following":false,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"domain_blocking":false,"endorsed":false,"note":""}' |
24 | headers: | 85 | headers: |
25 | Cache-Control: | 86 | Cache-Control: |
26 | - no-store | 87 | - no-store |
27 | Content-Security-Policy: | 88 | Content-Security-Policy: |
28 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 89 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
29 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 90 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
30 | style-src ''self'' http://localhost:3000 ''nonce-WDNYR1F4wXPfpLI8rliivA==''; | 91 | style-src ''self'' http://localhost:3000 ''nonce-KwYl/QMJ40x/jxv8HgYFsg==''; |
31 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 92 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
32 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 93 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
33 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 94 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -37,7 +98,7 @@ interactions: | |||
37 | Content-Type: | 98 | Content-Type: |
38 | - application/json; charset=utf-8 | 99 | - application/json; charset=utf-8 |
39 | ETag: | 100 | ETag: |
40 | - W/"acf0f73e9e8c6d95924890c1315db0fd" | 101 | - W/"c9017603ea01c27c666346fa4fcf6163" |
41 | Referrer-Policy: | 102 | Referrer-Policy: |
42 | - strict-origin-when-cross-origin | 103 | - strict-origin-when-cross-origin |
43 | Transfer-Encoding: | 104 | Transfer-Encoding: |
@@ -57,11 +118,11 @@ interactions: | |||
57 | X-RateLimit-Remaining: | 118 | X-RateLimit-Remaining: |
58 | - '398' | 119 | - '398' |
59 | X-RateLimit-Reset: | 120 | X-RateLimit-Reset: |
60 | - '2022-11-08T00:00:00.662848Z' | 121 | - '2022-11-14T00:00:00.496438Z' |
61 | X-Request-Id: | 122 | X-Request-Id: |
62 | - 5f3206d9-2e4f-4de4-be89-fc293322cc29 | 123 | - 7d29b289-d836-4d93-ad5f-5199615e57f7 |
63 | X-Runtime: | 124 | X-Runtime: |
64 | - '0.021385' | 125 | - '0.018329' |
65 | X-XSS-Protection: | 126 | X-XSS-Protection: |
66 | - 1; mode=block | 127 | - 1; mode=block |
67 | status: | 128 | status: |
@@ -84,14 +145,14 @@ interactions: | |||
84 | uri: http://localhost:3000/api/v1/follow_requests | 145 | uri: http://localhost:3000/api/v1/follow_requests |
85 | response: | 146 | response: |
86 | body: | 147 | body: |
87 | string: '[{"id":"109304268902557892","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[]}]' | 148 | string: '[{"id":"109336623096259500","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[]}]' |
88 | headers: | 149 | headers: |
89 | Cache-Control: | 150 | Cache-Control: |
90 | - no-store | 151 | - no-store |
91 | Content-Security-Policy: | 152 | Content-Security-Policy: |
92 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 153 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
93 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 154 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
94 | style-src ''self'' http://localhost:3000 ''nonce-VFJOIr53sCF8F7q0mHzEaA==''; | 155 | style-src ''self'' http://localhost:3000 ''nonce-KwKFk9b2Hp64uT/2kqkOfw==''; |
95 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 156 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
96 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 157 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
97 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 158 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -101,7 +162,7 @@ interactions: | |||
101 | Content-Type: | 162 | Content-Type: |
102 | - application/json; charset=utf-8 | 163 | - application/json; charset=utf-8 |
103 | ETag: | 164 | ETag: |
104 | - W/"e614b4039f2a8a9f7ac18423d5f529e5" | 165 | - W/"8643b7b02e183007a55f69f8f0544767" |
105 | Link: | 166 | Link: |
106 | - <http://localhost:3000/api/v1/follow_requests?since_id=2>; rel="prev" | 167 | - <http://localhost:3000/api/v1/follow_requests?since_id=2>; rel="prev" |
107 | Referrer-Policy: | 168 | Referrer-Policy: |
@@ -119,9 +180,9 @@ interactions: | |||
119 | X-Permitted-Cross-Domain-Policies: | 180 | X-Permitted-Cross-Domain-Policies: |
120 | - none | 181 | - none |
121 | X-Request-Id: | 182 | X-Request-Id: |
122 | - 5d48ab91-1216-4773-8d3b-74f6f1dbd3b4 | 183 | - 53a38ffa-ee95-4e92-9e54-0bc4b4488072 |
123 | X-Runtime: | 184 | X-Runtime: |
124 | - '0.013511' | 185 | - '0.014696' |
125 | X-XSS-Protection: | 186 | X-XSS-Protection: |
126 | - 1; mode=block | 187 | - 1; mode=block |
127 | status: | 188 | status: |
@@ -143,17 +204,18 @@ interactions: | |||
143 | User-Agent: | 204 | User-Agent: |
144 | - tests/v311 | 205 | - tests/v311 |
145 | method: POST | 206 | method: POST |
146 | uri: http://localhost:3000/api/v1/follow_requests/109304268902557892/reject | 207 | uri: http://localhost:3000/api/v1/follow_requests/109336623096259500/reject |
147 | response: | 208 | response: |
148 | body: | 209 | body: |
149 | string: '{"id":"109304268902557892","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":""}' | 210 | string: '{"id":"109336623096259500","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":"top |
211 | ebayer gerne wieder"}' | ||
150 | headers: | 212 | headers: |
151 | Cache-Control: | 213 | Cache-Control: |
152 | - no-store | 214 | - no-store |
153 | Content-Security-Policy: | 215 | Content-Security-Policy: |
154 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 216 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
155 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 217 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
156 | style-src ''self'' http://localhost:3000 ''nonce-FCmrnpo6jA+SHJOGzGTlng==''; | 218 | style-src ''self'' http://localhost:3000 ''nonce-C6C6ydulQLzBObPZPmfeWw==''; |
157 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 219 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
158 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 220 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
159 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 221 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -163,7 +225,7 @@ interactions: | |||
163 | Content-Type: | 225 | Content-Type: |
164 | - application/json; charset=utf-8 | 226 | - application/json; charset=utf-8 |
165 | ETag: | 227 | ETag: |
166 | - W/"8d8caa68e50963507d45a12d820e86b0" | 228 | - W/"fc5fa4da9317772baa3b6968b8c31a68" |
167 | Referrer-Policy: | 229 | Referrer-Policy: |
168 | - strict-origin-when-cross-origin | 230 | - strict-origin-when-cross-origin |
169 | Transfer-Encoding: | 231 | Transfer-Encoding: |
@@ -179,9 +241,9 @@ interactions: | |||
179 | X-Permitted-Cross-Domain-Policies: | 241 | X-Permitted-Cross-Domain-Policies: |
180 | - none | 242 | - none |
181 | X-Request-Id: | 243 | X-Request-Id: |
182 | - 7e948b08-50f6-4f74-8a09-f823f6b54dd8 | 244 | - a972bf81-e361-4a66-b288-50f25456a840 |
183 | X-Runtime: | 245 | X-Runtime: |
184 | - '0.031472' | 246 | - '0.021696' |
185 | X-XSS-Protection: | 247 | X-XSS-Protection: |
186 | - 1; mode=block | 248 | - 1; mode=block |
187 | status: | 249 | status: |