diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
commit | 3277ca777821e76955fb26d80788939a311db9db (patch) | |
tree | bef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/cassettes/test_follow_request_reject.yaml | |
parent | 33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff) | |
download | mastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz |
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes/test_follow_request_reject.yaml')
-rw-r--r-- | tests/cassettes/test_follow_request_reject.yaml | 237 |
1 files changed, 170 insertions, 67 deletions
diff --git a/tests/cassettes/test_follow_request_reject.yaml b/tests/cassettes/test_follow_request_reject.yaml index 55d2918..caea3ca 100644 --- a/tests/cassettes/test_follow_request_reject.yaml +++ b/tests/cassettes/test_follow_request_reject.yaml | |||
@@ -1,87 +1,190 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: reblogs=1&id=1234567890123457 | 3 | body: id=1234567890123456&reblogs=1 |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | - '*/*' |
7 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] | 7 | Accept-Encoding: |
8 | Connection: [keep-alive] | 8 | - gzip, deflate |
9 | Content-Length: ['29'] | 9 | Authorization: |
10 | Content-Type: [application/x-www-form-urlencoded] | 10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 |
11 | User-Agent: [python-requests/2.18.4] | 11 | Connection: |
12 | - keep-alive | ||
13 | Content-Length: | ||
14 | - '29' | ||
15 | Content-Type: | ||
16 | - application/x-www-form-urlencoded | ||
17 | User-Agent: | ||
18 | - tests/v311 | ||
12 | method: POST | 19 | method: POST |
13 | uri: http://localhost:3000/api/v1/accounts/1234567890123457/follow | 20 | uri: http://localhost:3000/api/v1/accounts/1234567890123456/follow |
14 | response: | 21 | response: |
15 | body: {string: '{"id":"1234567890123457","following":false,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"domain_blocking":false,"endorsed":false}'} | 22 | 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":""}' | ||
16 | headers: | 24 | headers: |
17 | Cache-Control: ['no-cache, no-store'] | 25 | Cache-Control: |
18 | Content-Type: [application/json; charset=utf-8] | 26 | - no-store |
19 | Referrer-Policy: [strict-origin-when-cross-origin] | 27 | Content-Security-Policy: |
20 | Transfer-Encoding: [chunked] | 28 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
21 | Vary: ['Accept-Encoding, Origin'] | 29 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
22 | X-Content-Type-Options: [nosniff] | 30 | style-src ''self'' http://localhost:3000 ''nonce-WDNYR1F4wXPfpLI8rliivA==''; |
23 | X-Download-Options: [noopen] | 31 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
24 | X-Frame-Options: [SAMEORIGIN] | 32 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
25 | X-Permitted-Cross-Domain-Policies: [none] | 33 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
26 | X-Request-Id: [97ceaff4-2af3-4341-a727-e07c98cf47a6] | 34 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
27 | X-Runtime: ['0.061415'] | 35 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
28 | X-XSS-Protection: [1; mode=block] | 36 | worker-src ''self'' blob: http://localhost:3000' |
29 | content-length: ['224'] | 37 | Content-Type: |
30 | status: {code: 200, message: OK} | 38 | - application/json; charset=utf-8 |
39 | ETag: | ||
40 | - W/"acf0f73e9e8c6d95924890c1315db0fd" | ||
41 | Referrer-Policy: | ||
42 | - strict-origin-when-cross-origin | ||
43 | Transfer-Encoding: | ||
44 | - chunked | ||
45 | Vary: | ||
46 | - Accept, Origin | ||
47 | X-Content-Type-Options: | ||
48 | - nosniff | ||
49 | X-Download-Options: | ||
50 | - noopen | ||
51 | X-Frame-Options: | ||
52 | - SAMEORIGIN | ||
53 | X-Permitted-Cross-Domain-Policies: | ||
54 | - none | ||
55 | X-RateLimit-Limit: | ||
56 | - '400' | ||
57 | X-RateLimit-Remaining: | ||
58 | - '398' | ||
59 | X-RateLimit-Reset: | ||
60 | - '2022-11-08T00:00:00.662848Z' | ||
61 | X-Request-Id: | ||
62 | - 5f3206d9-2e4f-4de4-be89-fc293322cc29 | ||
63 | X-Runtime: | ||
64 | - '0.021385' | ||
65 | X-XSS-Protection: | ||
66 | - 1; mode=block | ||
67 | status: | ||
68 | code: 200 | ||
69 | message: OK | ||
31 | - request: | 70 | - request: |
32 | body: null | 71 | body: null |
33 | headers: | 72 | headers: |
34 | Accept: ['*/*'] | 73 | Accept: |
35 | Accept-Encoding: ['gzip, deflate'] | 74 | - '*/*' |
36 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_3] | 75 | Accept-Encoding: |
37 | Connection: [keep-alive] | 76 | - gzip, deflate |
38 | User-Agent: [python-requests/2.18.4] | 77 | Authorization: |
78 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
79 | Connection: | ||
80 | - keep-alive | ||
81 | User-Agent: | ||
82 | - tests/v311 | ||
39 | method: GET | 83 | method: GET |
40 | uri: http://localhost:3000/api/v1/follow_requests | 84 | uri: http://localhost:3000/api/v1/follow_requests |
41 | response: | 85 | response: |
42 | body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":0,"last_status_at":"2020-02-22","emojis":[],"fields":[]}]'} | 86 | 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":[]}]' | ||
43 | headers: | 88 | headers: |
44 | Cache-Control: ['no-cache, no-store'] | 89 | Cache-Control: |
45 | Content-Type: [application/json; charset=utf-8] | 90 | - no-store |
46 | Link: ['<http://localhost:3000/api/v1/follow_requests?since_id=2>; rel="prev"'] | 91 | Content-Security-Policy: |
47 | Referrer-Policy: [strict-origin-when-cross-origin] | 92 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
48 | Transfer-Encoding: [chunked] | 93 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
49 | Vary: ['Accept-Encoding, Origin'] | 94 | style-src ''self'' http://localhost:3000 ''nonce-VFJOIr53sCF8F7q0mHzEaA==''; |
50 | X-Content-Type-Options: [nosniff] | 95 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
51 | X-Download-Options: [noopen] | 96 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
52 | X-Frame-Options: [SAMEORIGIN] | 97 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
53 | X-Permitted-Cross-Domain-Policies: [none] | 98 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
54 | X-Request-Id: [2ea276f1-e3d6-4d3b-9e53-0aa86bbd51c5] | 99 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
55 | X-Runtime: ['0.037902'] | 100 | worker-src ''self'' blob: http://localhost:3000' |
56 | X-XSS-Protection: [1; mode=block] | 101 | Content-Type: |
57 | content-length: ['589'] | 102 | - application/json; charset=utf-8 |
58 | status: {code: 200, message: OK} | 103 | ETag: |
104 | - W/"e614b4039f2a8a9f7ac18423d5f529e5" | ||
105 | Link: | ||
106 | - <http://localhost:3000/api/v1/follow_requests?since_id=2>; rel="prev" | ||
107 | Referrer-Policy: | ||
108 | - strict-origin-when-cross-origin | ||
109 | Transfer-Encoding: | ||
110 | - chunked | ||
111 | Vary: | ||
112 | - Accept, Origin | ||
113 | X-Content-Type-Options: | ||
114 | - nosniff | ||
115 | X-Download-Options: | ||
116 | - noopen | ||
117 | X-Frame-Options: | ||
118 | - SAMEORIGIN | ||
119 | X-Permitted-Cross-Domain-Policies: | ||
120 | - none | ||
121 | X-Request-Id: | ||
122 | - 5d48ab91-1216-4773-8d3b-74f6f1dbd3b4 | ||
123 | X-Runtime: | ||
124 | - '0.013511' | ||
125 | X-XSS-Protection: | ||
126 | - 1; mode=block | ||
127 | status: | ||
128 | code: 200 | ||
129 | message: OK | ||
59 | - request: | 130 | - request: |
60 | body: null | 131 | body: null |
61 | headers: | 132 | headers: |
62 | Accept: ['*/*'] | 133 | Accept: |
63 | Accept-Encoding: ['gzip, deflate'] | 134 | - '*/*' |
64 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_3] | 135 | Accept-Encoding: |
65 | Connection: [keep-alive] | 136 | - gzip, deflate |
66 | Content-Length: ['0'] | 137 | Authorization: |
67 | User-Agent: [python-requests/2.18.4] | 138 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
139 | Connection: | ||
140 | - keep-alive | ||
141 | Content-Length: | ||
142 | - '0' | ||
143 | User-Agent: | ||
144 | - tests/v311 | ||
68 | method: POST | 145 | method: POST |
69 | uri: http://localhost:3000/api/v1/follow_requests/1/reject | 146 | uri: http://localhost:3000/api/v1/follow_requests/109304268902557892/reject |
70 | response: | 147 | response: |
71 | 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}'} | 148 | 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":""}' | ||
72 | headers: | 150 | headers: |
73 | Cache-Control: ['no-cache, no-store'] | 151 | Cache-Control: |
74 | Content-Type: [application/json; charset=utf-8] | 152 | - no-store |
75 | Referrer-Policy: [strict-origin-when-cross-origin] | 153 | Content-Security-Policy: |
76 | Transfer-Encoding: [chunked] | 154 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
77 | Vary: ['Accept-Encoding, Origin'] | 155 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
78 | X-Content-Type-Options: [nosniff] | 156 | style-src ''self'' http://localhost:3000 ''nonce-FCmrnpo6jA+SHJOGzGTlng==''; |
79 | X-Download-Options: [noopen] | 157 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
80 | X-Frame-Options: [SAMEORIGIN] | 158 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
81 | X-Permitted-Cross-Domain-Policies: [none] | 159 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
82 | X-Request-Id: [283c09ef-3521-434d-93ab-200b4fbdbd25] | 160 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
83 | X-Runtime: ['0.062406'] | 161 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
84 | X-XSS-Protection: [1; mode=block] | 162 | worker-src ''self'' blob: http://localhost:3000' |
85 | content-length: ['211'] | 163 | Content-Type: |
86 | status: {code: 200, message: OK} | 164 | - application/json; charset=utf-8 |
165 | ETag: | ||
166 | - W/"8d8caa68e50963507d45a12d820e86b0" | ||
167 | Referrer-Policy: | ||
168 | - strict-origin-when-cross-origin | ||
169 | Transfer-Encoding: | ||
170 | - chunked | ||
171 | Vary: | ||
172 | - Accept, Origin | ||
173 | X-Content-Type-Options: | ||
174 | - nosniff | ||
175 | X-Download-Options: | ||
176 | - noopen | ||
177 | X-Frame-Options: | ||
178 | - SAMEORIGIN | ||
179 | X-Permitted-Cross-Domain-Policies: | ||
180 | - none | ||
181 | X-Request-Id: | ||
182 | - 7e948b08-50f6-4f74-8a09-f823f6b54dd8 | ||
183 | X-Runtime: | ||
184 | - '0.031472' | ||
185 | X-XSS-Protection: | ||
186 | - 1; mode=block | ||
187 | status: | ||
188 | code: 200 | ||
189 | message: OK | ||
87 | version: 1 | 190 | version: 1 |