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_account_search.yaml | |
parent | 33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff) | |
download | mastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz |
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes/test_account_search.yaml')
-rw-r--r-- | tests/cassettes/test_account_search.yaml | 455 |
1 files changed, 325 insertions, 130 deletions
diff --git a/tests/cassettes/test_account_search.yaml b/tests/cassettes/test_account_search.yaml index 1d42aee..5741866 100644 --- a/tests/cassettes/test_account_search.yaml +++ b/tests/cassettes/test_account_search.yaml | |||
@@ -2,166 +2,361 @@ 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 | User-Agent: [python-requests/2.18.4] | 9 | Authorization: |
10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
11 | Connection: | ||
12 | - keep-alive | ||
13 | User-Agent: | ||
14 | - tests/v311 | ||
10 | method: GET | 15 | method: GET |
11 | uri: http://localhost:3000/api/v1/accounts/search?following=0&q=admin | 16 | uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=0 |
12 | response: | 17 | response: |
13 | 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":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}]'} | 18 | body: |
19 | 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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},{"id":"109304269014359623","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin2","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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}]' | ||
14 | headers: | 20 | headers: |
15 | Cache-Control: ['no-cache, no-store'] | 21 | Cache-Control: |
16 | Content-Type: [application/json; charset=utf-8] | 22 | - no-store |
17 | Referrer-Policy: [strict-origin-when-cross-origin] | 23 | Content-Security-Policy: |
18 | Transfer-Encoding: [chunked] | 24 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
19 | Vary: ['Accept-Encoding, Origin'] | 25 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
20 | X-Content-Type-Options: [nosniff] | 26 | style-src ''self'' http://localhost:3000 ''nonce-WKi5q1RFqJGmUXfz617LGA==''; |
21 | X-Download-Options: [noopen] | 27 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
22 | X-Frame-Options: [SAMEORIGIN] | 28 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
23 | X-Permitted-Cross-Domain-Policies: [none] | 29 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
24 | X-Request-Id: [5fd3b23c-3df4-459b-b1b3-ecd670c18fc3] | 30 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
25 | X-Runtime: ['0.061265'] | 31 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
26 | X-XSS-Protection: [1; mode=block] | 32 | worker-src ''self'' blob: http://localhost:3000' |
27 | content-length: ['581'] | 33 | Content-Type: |
28 | status: {code: 200, message: OK} | 34 | - application/json; charset=utf-8 |
35 | ETag: | ||
36 | - W/"9d40ff78e58c025babacba6435e8062d" | ||
37 | Referrer-Policy: | ||
38 | - strict-origin-when-cross-origin | ||
39 | Transfer-Encoding: | ||
40 | - chunked | ||
41 | Vary: | ||
42 | - Accept, Origin | ||
43 | X-Content-Type-Options: | ||
44 | - nosniff | ||
45 | X-Download-Options: | ||
46 | - noopen | ||
47 | X-Frame-Options: | ||
48 | - SAMEORIGIN | ||
49 | X-Permitted-Cross-Domain-Policies: | ||
50 | - none | ||
51 | X-Request-Id: | ||
52 | - 489d442c-d189-4b9e-84c0-56f7c511e285 | ||
53 | X-Runtime: | ||
54 | - '0.018054' | ||
55 | X-XSS-Protection: | ||
56 | - 1; mode=block | ||
57 | status: | ||
58 | code: 200 | ||
59 | message: OK | ||
29 | - request: | 60 | - request: |
30 | body: reblogs=1&id=1 | 61 | body: id=109304268902557892&reblogs=1 |
31 | headers: | 62 | headers: |
32 | Accept: ['*/*'] | 63 | Accept: |
33 | Accept-Encoding: ['gzip, deflate'] | 64 | - '*/*' |
34 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 65 | Accept-Encoding: |
35 | Connection: [keep-alive] | 66 | - gzip, deflate |
36 | Content-Length: ['14'] | 67 | Authorization: |
37 | Content-Type: [application/x-www-form-urlencoded] | 68 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
38 | User-Agent: [python-requests/2.18.4] | 69 | Connection: |
70 | - keep-alive | ||
71 | Content-Length: | ||
72 | - '31' | ||
73 | Content-Type: | ||
74 | - application/x-www-form-urlencoded | ||
75 | User-Agent: | ||
76 | - tests/v311 | ||
39 | method: POST | 77 | method: POST |
40 | uri: http://localhost:3000/api/v1/accounts/1/follow | 78 | uri: http://localhost:3000/api/v1/accounts/109304268902557892/follow |
41 | response: | 79 | response: |
42 | body: {string: '{"id":"1","following":true,"showing_reblogs":true,"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":"109304268902557892","following":true,"showing_reblogs":true,"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-jv/tfqhgSza5mG08tBjf+Q==''; |
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: [d07cdb9d-af07-4664-8381-e041b7057446] | 92 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
54 | X-Runtime: ['0.149318'] | 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: ['209'] | 95 | Content-Type: |
57 | status: {code: 200, message: OK} | 96 | - application/json; charset=utf-8 |
97 | ETag: | ||
98 | - W/"328aa28d0debfcbfaef3df0c7630cbd8" | ||
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-RateLimit-Limit: | ||
114 | - '400' | ||
115 | X-RateLimit-Remaining: | ||
116 | - '399' | ||
117 | X-RateLimit-Reset: | ||
118 | - '2022-11-08T00:00:00.476843Z' | ||
119 | X-Request-Id: | ||
120 | - 490f32a6-1eea-4752-9f78-7351e63026f6 | ||
121 | X-Runtime: | ||
122 | - '0.041076' | ||
123 | X-XSS-Protection: | ||
124 | - 1; mode=block | ||
125 | status: | ||
126 | code: 200 | ||
127 | message: OK | ||
58 | - request: | 128 | - request: |
59 | body: null | 129 | body: null |
60 | headers: | 130 | headers: |
61 | Accept: ['*/*'] | 131 | Accept: |
62 | Accept-Encoding: ['gzip, deflate'] | 132 | - '*/*' |
63 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 133 | Accept-Encoding: |
64 | Connection: [keep-alive] | 134 | - gzip, deflate |
65 | User-Agent: [python-requests/2.18.4] | 135 | Authorization: |
136 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
137 | Connection: | ||
138 | - keep-alive | ||
139 | User-Agent: | ||
140 | - tests/v311 | ||
66 | method: GET | 141 | method: GET |
67 | uri: http://localhost:3000/api/v1/accounts/search?following=1&q=admin | 142 | uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=1 |
68 | response: | 143 | response: |
69 | 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":null,"emojis":[],"fields":[]}]'} | 144 | body: |
145 | 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":1,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}]' | ||
70 | headers: | 146 | headers: |
71 | Cache-Control: ['no-cache, no-store'] | 147 | Cache-Control: |
72 | Content-Type: [application/json; charset=utf-8] | 148 | - no-store |
73 | Referrer-Policy: [strict-origin-when-cross-origin] | 149 | Content-Security-Policy: |
74 | Transfer-Encoding: [chunked] | 150 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
75 | Vary: ['Accept-Encoding, Origin'] | 151 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
76 | X-Content-Type-Options: [nosniff] | 152 | style-src ''self'' http://localhost:3000 ''nonce-U6XW3vCer9xbdR0yGpvX8A==''; |
77 | X-Download-Options: [noopen] | 153 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
78 | X-Frame-Options: [SAMEORIGIN] | 154 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
79 | X-Permitted-Cross-Domain-Policies: [none] | 155 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
80 | X-Request-Id: [e4693e9f-eac7-48bc-9e26-bf406698faeb] | 156 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
81 | X-Runtime: ['0.070478'] | 157 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
82 | X-XSS-Protection: [1; mode=block] | 158 | worker-src ''self'' blob: http://localhost:3000' |
83 | content-length: ['581'] | 159 | Content-Type: |
84 | status: {code: 200, message: OK} | 160 | - application/json; charset=utf-8 |
161 | ETag: | ||
162 | - W/"556f11080e4d8472f8e5c4076996220f" | ||
163 | Referrer-Policy: | ||
164 | - strict-origin-when-cross-origin | ||
165 | Transfer-Encoding: | ||
166 | - chunked | ||
167 | Vary: | ||
168 | - Accept, Origin | ||
169 | X-Content-Type-Options: | ||
170 | - nosniff | ||
171 | X-Download-Options: | ||
172 | - noopen | ||
173 | X-Frame-Options: | ||
174 | - SAMEORIGIN | ||
175 | X-Permitted-Cross-Domain-Policies: | ||
176 | - none | ||
177 | X-Request-Id: | ||
178 | - 32d6efa6-9c5e-499f-80cc-74a31f4b3268 | ||
179 | X-Runtime: | ||
180 | - '0.011128' | ||
181 | X-XSS-Protection: | ||
182 | - 1; mode=block | ||
183 | status: | ||
184 | code: 200 | ||
185 | message: OK | ||
85 | - request: | 186 | - request: |
86 | body: null | 187 | body: null |
87 | headers: | 188 | headers: |
88 | Accept: ['*/*'] | 189 | Accept: |
89 | Accept-Encoding: ['gzip, deflate'] | 190 | - '*/*' |
90 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 191 | Accept-Encoding: |
91 | Connection: [keep-alive] | 192 | - gzip, deflate |
92 | Content-Length: ['0'] | 193 | Authorization: |
93 | User-Agent: [python-requests/2.18.4] | 194 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN |
195 | Connection: | ||
196 | - keep-alive | ||
197 | Content-Length: | ||
198 | - '0' | ||
199 | User-Agent: | ||
200 | - tests/v311 | ||
94 | method: POST | 201 | method: POST |
95 | uri: http://localhost:3000/api/v1/accounts/1/unfollow | 202 | uri: http://localhost:3000/api/v1/accounts/109304268902557892/unfollow |
96 | response: | 203 | response: |
97 | 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}'} | 204 | body: |
205 | 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":""}' | ||
98 | headers: | 206 | headers: |
99 | Cache-Control: ['no-cache, no-store'] | 207 | Cache-Control: |
100 | Content-Type: [application/json; charset=utf-8] | 208 | - no-store |
101 | Referrer-Policy: [strict-origin-when-cross-origin] | 209 | Content-Security-Policy: |
102 | Transfer-Encoding: [chunked] | 210 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
103 | Vary: ['Accept-Encoding, Origin'] | 211 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
104 | X-Content-Type-Options: [nosniff] | 212 | style-src ''self'' http://localhost:3000 ''nonce-gQaoWB24+tCIxqQpAy1arQ==''; |
105 | X-Download-Options: [noopen] | 213 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
106 | X-Frame-Options: [SAMEORIGIN] | 214 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
107 | X-Permitted-Cross-Domain-Policies: [none] | 215 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
108 | X-Request-Id: [5b6f6ef8-2746-45c3-be0a-10752107ca9f] | 216 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
109 | X-Runtime: ['0.141664'] | 217 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
110 | X-XSS-Protection: [1; mode=block] | 218 | worker-src ''self'' blob: http://localhost:3000' |
111 | content-length: ['211'] | 219 | Content-Type: |
112 | status: {code: 200, message: OK} | 220 | - application/json; charset=utf-8 |
221 | ETag: | ||
222 | - W/"8d8caa68e50963507d45a12d820e86b0" | ||
223 | Referrer-Policy: | ||
224 | - strict-origin-when-cross-origin | ||
225 | Transfer-Encoding: | ||
226 | - chunked | ||
227 | Vary: | ||
228 | - Accept, Origin | ||
229 | X-Content-Type-Options: | ||
230 | - nosniff | ||
231 | X-Download-Options: | ||
232 | - noopen | ||
233 | X-Frame-Options: | ||
234 | - SAMEORIGIN | ||
235 | X-Permitted-Cross-Domain-Policies: | ||
236 | - none | ||
237 | X-Request-Id: | ||
238 | - 7c1b595f-bce5-4741-9f03-f659291b0f8e | ||
239 | X-Runtime: | ||
240 | - '0.027772' | ||
241 | X-XSS-Protection: | ||
242 | - 1; mode=block | ||
243 | status: | ||
244 | code: 200 | ||
245 | message: OK | ||
113 | - request: | 246 | - request: |
114 | body: null | 247 | body: null |
115 | headers: | 248 | headers: |
116 | Accept: ['*/*'] | 249 | Accept: |
117 | Accept-Encoding: ['gzip, deflate'] | 250 | - '*/*' |
118 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 251 | Accept-Encoding: |
119 | Connection: [keep-alive] | 252 | - gzip, deflate |
120 | User-Agent: [python-requests/2.18.4] | 253 | Authorization: |
254 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
255 | Connection: | ||
256 | - keep-alive | ||
257 | User-Agent: | ||
258 | - tests/v311 | ||
121 | method: GET | 259 | method: GET |
122 | uri: http://localhost:3000/api/v1/accounts/search?following=1&q=admin | 260 | uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=1 |
123 | response: | 261 | response: |
124 | body: {string: '[]'} | 262 | body: |
263 | string: '[]' | ||
125 | headers: | 264 | headers: |
126 | Cache-Control: ['no-cache, no-store'] | 265 | Cache-Control: |
127 | Content-Type: [application/json; charset=utf-8] | 266 | - no-store |
128 | Referrer-Policy: [strict-origin-when-cross-origin] | 267 | Content-Security-Policy: |
129 | Transfer-Encoding: [chunked] | 268 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
130 | Vary: ['Accept-Encoding, Origin'] | 269 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
131 | X-Content-Type-Options: [nosniff] | 270 | style-src ''self'' http://localhost:3000 ''nonce-53WGcwfKqNPWoXIomO2WGQ==''; |
132 | X-Download-Options: [noopen] | 271 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
133 | X-Frame-Options: [SAMEORIGIN] | 272 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
134 | X-Permitted-Cross-Domain-Policies: [none] | 273 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
135 | X-Request-Id: [e9fe8ca6-dbcd-4021-a33b-6db0d849313f] | 274 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
136 | X-Runtime: ['0.064333'] | 275 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
137 | X-XSS-Protection: [1; mode=block] | 276 | worker-src ''self'' blob: http://localhost:3000' |
138 | content-length: ['2'] | 277 | Content-Type: |
139 | status: {code: 200, message: OK} | 278 | - application/json; charset=utf-8 |
279 | ETag: | ||
280 | - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5" | ||
281 | Referrer-Policy: | ||
282 | - strict-origin-when-cross-origin | ||
283 | Transfer-Encoding: | ||
284 | - chunked | ||
285 | Vary: | ||
286 | - Accept, Origin | ||
287 | X-Content-Type-Options: | ||
288 | - nosniff | ||
289 | X-Download-Options: | ||
290 | - noopen | ||
291 | X-Frame-Options: | ||
292 | - SAMEORIGIN | ||
293 | X-Permitted-Cross-Domain-Policies: | ||
294 | - none | ||
295 | X-Request-Id: | ||
296 | - 7c140e61-8992-4e88-8f04-64f2115eb4d0 | ||
297 | X-Runtime: | ||
298 | - '0.008027' | ||
299 | X-XSS-Protection: | ||
300 | - 1; mode=block | ||
301 | status: | ||
302 | code: 200 | ||
303 | message: OK | ||
140 | - request: | 304 | - request: |
141 | body: null | 305 | body: null |
142 | headers: | 306 | headers: |
143 | Accept: ['*/*'] | 307 | Accept: |
144 | Accept-Encoding: ['gzip, deflate'] | 308 | - '*/*' |
145 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 309 | Accept-Encoding: |
146 | Connection: [keep-alive] | 310 | - gzip, deflate |
147 | User-Agent: [python-requests/2.18.4] | 311 | Authorization: |
312 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
313 | Connection: | ||
314 | - keep-alive | ||
315 | User-Agent: | ||
316 | - tests/v311 | ||
148 | method: GET | 317 | method: GET |
149 | uri: http://localhost:3000/api/v1/accounts/search?following=0&q=admin | 318 | uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=0 |
150 | response: | 319 | response: |
151 | 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":0,"following_count":0,"statuses_count":0,"last_status_at":null,"emojis":[],"fields":[]}]'} | 320 | body: |
321 | 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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},{"id":"109304269014359623","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin2","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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}]' | ||
152 | headers: | 322 | headers: |
153 | Cache-Control: ['no-cache, no-store'] | 323 | Cache-Control: |
154 | Content-Type: [application/json; charset=utf-8] | 324 | - no-store |
155 | Referrer-Policy: [strict-origin-when-cross-origin] | 325 | Content-Security-Policy: |
156 | Transfer-Encoding: [chunked] | 326 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
157 | Vary: ['Accept-Encoding, Origin'] | 327 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
158 | X-Content-Type-Options: [nosniff] | 328 | style-src ''self'' http://localhost:3000 ''nonce-i/+FesdIvckAgpyVNXF1EA==''; |
159 | X-Download-Options: [noopen] | 329 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
160 | X-Frame-Options: [SAMEORIGIN] | 330 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
161 | X-Permitted-Cross-Domain-Policies: [none] | 331 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
162 | X-Request-Id: [c47dbff4-cddf-4d41-8fe4-0333b049fa23] | 332 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
163 | X-Runtime: ['0.117137'] | 333 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
164 | X-XSS-Protection: [1; mode=block] | 334 | worker-src ''self'' blob: http://localhost:3000' |
165 | content-length: ['581'] | 335 | Content-Type: |
166 | status: {code: 200, message: OK} | 336 | - application/json; charset=utf-8 |
337 | ETag: | ||
338 | - W/"9d40ff78e58c025babacba6435e8062d" | ||
339 | Referrer-Policy: | ||
340 | - strict-origin-when-cross-origin | ||
341 | Transfer-Encoding: | ||
342 | - chunked | ||
343 | Vary: | ||
344 | - Accept, Origin | ||
345 | X-Content-Type-Options: | ||
346 | - nosniff | ||
347 | X-Download-Options: | ||
348 | - noopen | ||
349 | X-Frame-Options: | ||
350 | - SAMEORIGIN | ||
351 | X-Permitted-Cross-Domain-Policies: | ||
352 | - none | ||
353 | X-Request-Id: | ||
354 | - 8141afa5-dff9-495d-a3af-c39de3f3113a | ||
355 | X-Runtime: | ||
356 | - '0.014470' | ||
357 | X-XSS-Protection: | ||
358 | - 1; mode=block | ||
359 | status: | ||
360 | code: 200 | ||
361 | message: OK | ||
167 | version: 1 | 362 | version: 1 |