aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-13 18:39:56 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-13 18:39:56 +0200
commit5215c2242dd7b87418a7c10781c2b10b35d86f46 (patch)
tree9164c3963424cc149ddd7e61561470f27f5b817a /tests/cassettes/test_account_search.yaml
parent0e00fced99976d74e972a3c9ca5b762697840a33 (diff)
downloadmastodon.py-5215c2242dd7b87418a7c10781c2b10b35d86f46.tar.gz
Fix some things in streaming and admin API for 3.3.0 support
Diffstat (limited to 'tests/cassettes/test_account_search.yaml')
-rw-r--r--tests/cassettes/test_account_search.yaml64
1 files changed, 32 insertions, 32 deletions
diff --git a/tests/cassettes/test_account_search.yaml b/tests/cassettes/test_account_search.yaml
index bb1a829..8a2b153 100644
--- a/tests/cassettes/test_account_search.yaml
+++ b/tests/cassettes/test_account_search.yaml
@@ -16,14 +16,14 @@ interactions:
16 uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=0 16 uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=0
17 response: 17 response:
18 body: 18 body:
19 string: '[{"id":"109336898971915318","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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},{"id":"109336899086433362","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00: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":[]}]' 19 string: '[{"id":"109337440467895233","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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},{"id":"109337440575107632","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00: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":[]}]'
20 headers: 20 headers:
21 Cache-Control: 21 Cache-Control:
22 - no-store 22 - no-store
23 Content-Security-Policy: 23 Content-Security-Policy:
24 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 24 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
25 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 25 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
26 style-src ''self'' http://localhost:3000 ''nonce-hM1NrfkS/PFTxoXNRQDbKg==''; 26 style-src ''self'' http://localhost:3000 ''nonce-MoeBrXQp6N1YXcxqa/hVgw=='';
27 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 27 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
28 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 28 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
29 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 29 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -33,7 +33,7 @@ interactions:
33 Content-Type: 33 Content-Type:
34 - application/json; charset=utf-8 34 - application/json; charset=utf-8
35 ETag: 35 ETag:
36 - W/"1b186702db499a3f98d74e97f3c0f353" 36 - W/"fd90f5989e14c7bd621d7cbb5bdac3cb"
37 Referrer-Policy: 37 Referrer-Policy:
38 - strict-origin-when-cross-origin 38 - strict-origin-when-cross-origin
39 Transfer-Encoding: 39 Transfer-Encoding:
@@ -49,16 +49,16 @@ interactions:
49 X-Permitted-Cross-Domain-Policies: 49 X-Permitted-Cross-Domain-Policies:
50 - none 50 - none
51 X-Request-Id: 51 X-Request-Id:
52 - 0f2fe1af-6302-4a5d-b5a6-306d4e794edd 52 - fcb4d02d-4b52-47e7-9ad1-fb4942e963e9
53 X-Runtime: 53 X-Runtime:
54 - '0.018001' 54 - '0.017932'
55 X-XSS-Protection: 55 X-XSS-Protection:
56 - 1; mode=block 56 - 1; mode=block
57 status: 57 status:
58 code: 200 58 code: 200
59 message: OK 59 message: OK
60- request: 60- request:
61 body: id=109336898971915318&reblogs=1&notify=0 61 body: id=109337440467895233&reblogs=1&notify=0
62 headers: 62 headers:
63 Accept: 63 Accept:
64 - '*/*' 64 - '*/*'
@@ -75,17 +75,17 @@ interactions:
75 User-Agent: 75 User-Agent:
76 - tests/v311 76 - tests/v311
77 method: POST 77 method: POST
78 uri: http://localhost:3000/api/v1/accounts/109336898971915318/follow 78 uri: http://localhost:3000/api/v1/accounts/109337440467895233/follow
79 response: 79 response:
80 body: 80 body:
81 string: '{"id":"109336898971915318","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":""}' 81 string: '{"id":"109337440467895233","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":""}'
82 headers: 82 headers:
83 Cache-Control: 83 Cache-Control:
84 - no-store 84 - no-store
85 Content-Security-Policy: 85 Content-Security-Policy:
86 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 86 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
87 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 87 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
88 style-src ''self'' http://localhost:3000 ''nonce-qxNfhCO9emd9jVgzPpLM5A==''; 88 style-src ''self'' http://localhost:3000 ''nonce-j5Ykmyn5vzLYLxlQJGa4rA=='';
89 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 89 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
90 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 90 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
91 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 91 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -95,7 +95,7 @@ interactions:
95 Content-Type: 95 Content-Type:
96 - application/json; charset=utf-8 96 - application/json; charset=utf-8
97 ETag: 97 ETag:
98 - W/"0c6748228fe729d68e4376f765e96f2f" 98 - W/"f41bc668e73edcd14927a1be77af4e10"
99 Referrer-Policy: 99 Referrer-Policy:
100 - strict-origin-when-cross-origin 100 - strict-origin-when-cross-origin
101 Transfer-Encoding: 101 Transfer-Encoding:
@@ -115,11 +115,11 @@ interactions:
115 X-RateLimit-Remaining: 115 X-RateLimit-Remaining:
116 - '399' 116 - '399'
117 X-RateLimit-Reset: 117 X-RateLimit-Reset:
118 - '2022-11-14T00:00:00.480556Z' 118 - '2022-11-14T00:00:00.477728Z'
119 X-Request-Id: 119 X-Request-Id:
120 - 1632a69c-d195-4644-967b-09d4e717d3f6 120 - 607939e7-058f-435f-bb87-411cf6b34d36
121 X-Runtime: 121 X-Runtime:
122 - '0.045604' 122 - '0.030497'
123 X-XSS-Protection: 123 X-XSS-Protection:
124 - 1; mode=block 124 - 1; mode=block
125 status: 125 status:
@@ -142,14 +142,14 @@ interactions:
142 uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=1 142 uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=1
143 response: 143 response:
144 body: 144 body:
145 string: '[{"id":"109336898971915318","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":1,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}]' 145 string: '[{"id":"109337440467895233","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":1,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}]'
146 headers: 146 headers:
147 Cache-Control: 147 Cache-Control:
148 - no-store 148 - no-store
149 Content-Security-Policy: 149 Content-Security-Policy:
150 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 150 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
151 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 151 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
152 style-src ''self'' http://localhost:3000 ''nonce-+ztzGhgxXtvr7nS+lBsIrg==''; 152 style-src ''self'' http://localhost:3000 ''nonce-enmk2TPCP+/Ixsd/dYJgjw=='';
153 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 153 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
154 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 154 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
155 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 155 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -159,7 +159,7 @@ interactions:
159 Content-Type: 159 Content-Type:
160 - application/json; charset=utf-8 160 - application/json; charset=utf-8
161 ETag: 161 ETag:
162 - W/"f56dd4acf7c0c299e1d42a2d7c0c520b" 162 - W/"a28dd5b97fe3d6be03a9efb65a44c10b"
163 Referrer-Policy: 163 Referrer-Policy:
164 - strict-origin-when-cross-origin 164 - strict-origin-when-cross-origin
165 Transfer-Encoding: 165 Transfer-Encoding:
@@ -175,9 +175,9 @@ interactions:
175 X-Permitted-Cross-Domain-Policies: 175 X-Permitted-Cross-Domain-Policies:
176 - none 176 - none
177 X-Request-Id: 177 X-Request-Id:
178 - d22e7278-70fd-42d8-a6ec-0f8020f3cd53 178 - 13d8dc1c-8e22-4156-8f66-dc8ebfd20d8e
179 X-Runtime: 179 X-Runtime:
180 - '0.012074' 180 - '0.010986'
181 X-XSS-Protection: 181 X-XSS-Protection:
182 - 1; mode=block 182 - 1; mode=block
183 status: 183 status:
@@ -199,17 +199,17 @@ interactions:
199 User-Agent: 199 User-Agent:
200 - tests/v311 200 - tests/v311
201 method: POST 201 method: POST
202 uri: http://localhost:3000/api/v1/accounts/109336898971915318/unfollow 202 uri: http://localhost:3000/api/v1/accounts/109337440467895233/unfollow
203 response: 203 response:
204 body: 204 body:
205 string: '{"id":"109336898971915318","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":""}' 205 string: '{"id":"109337440467895233","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":""}'
206 headers: 206 headers:
207 Cache-Control: 207 Cache-Control:
208 - no-store 208 - no-store
209 Content-Security-Policy: 209 Content-Security-Policy:
210 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 210 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
211 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 211 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
212 style-src ''self'' http://localhost:3000 ''nonce-9F2EcEvGOog3jcb6VpWudA==''; 212 style-src ''self'' http://localhost:3000 ''nonce-W2RFER49n95xaEY/ENpeCQ=='';
213 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 213 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
214 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 214 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
215 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 215 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -219,7 +219,7 @@ interactions:
219 Content-Type: 219 Content-Type:
220 - application/json; charset=utf-8 220 - application/json; charset=utf-8
221 ETag: 221 ETag:
222 - W/"b9dd6d5b54697012fa8e870d86d958d3" 222 - W/"214f278429bf712708e952ee2355bf5e"
223 Referrer-Policy: 223 Referrer-Policy:
224 - strict-origin-when-cross-origin 224 - strict-origin-when-cross-origin
225 Transfer-Encoding: 225 Transfer-Encoding:
@@ -235,9 +235,9 @@ interactions:
235 X-Permitted-Cross-Domain-Policies: 235 X-Permitted-Cross-Domain-Policies:
236 - none 236 - none
237 X-Request-Id: 237 X-Request-Id:
238 - 0becb411-9805-445b-9b93-c990025be0b9 238 - b05d6a99-86b3-490f-8da5-1a6a2475c72e
239 X-Runtime: 239 X-Runtime:
240 - '0.022377' 240 - '0.021831'
241 X-XSS-Protection: 241 X-XSS-Protection:
242 - 1; mode=block 242 - 1; mode=block
243 status: 243 status:
@@ -267,7 +267,7 @@ interactions:
267 Content-Security-Policy: 267 Content-Security-Policy:
268 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 268 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
269 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 269 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
270 style-src ''self'' http://localhost:3000 ''nonce-aWvm9MR1Vb9ns6zyD5U78g==''; 270 style-src ''self'' http://localhost:3000 ''nonce-ZOZu1/F01VoA0O2M4ReWRw=='';
271 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 271 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
272 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 272 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
273 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 273 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -293,9 +293,9 @@ interactions:
293 X-Permitted-Cross-Domain-Policies: 293 X-Permitted-Cross-Domain-Policies:
294 - none 294 - none
295 X-Request-Id: 295 X-Request-Id:
296 - 515f5bc4-55a2-4fa4-83a0-8ceea95647fe 296 - 9b2d3352-857b-494a-bdb5-f7ab09f56467
297 X-Runtime: 297 X-Runtime:
298 - '0.008051' 298 - '0.007927'
299 X-XSS-Protection: 299 X-XSS-Protection:
300 - 1; mode=block 300 - 1; mode=block
301 status: 301 status:
@@ -318,14 +318,14 @@ interactions:
318 uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=0 318 uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=0
319 response: 319 response:
320 body: 320 body:
321 string: '[{"id":"109336898971915318","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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},{"id":"109336899086433362","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00: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":[]}]' 321 string: '[{"id":"109337440467895233","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":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]},{"id":"109337440575107632","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00: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":[]}]'
322 headers: 322 headers:
323 Cache-Control: 323 Cache-Control:
324 - no-store 324 - no-store
325 Content-Security-Policy: 325 Content-Security-Policy:
326 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 326 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
327 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 327 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
328 style-src ''self'' http://localhost:3000 ''nonce-7H7XbzH4x8pFWp7cMwCkyw==''; 328 style-src ''self'' http://localhost:3000 ''nonce-+oCof0CRAlbIG88eMH/JPg=='';
329 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 329 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
330 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 330 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
331 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 331 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -335,7 +335,7 @@ interactions:
335 Content-Type: 335 Content-Type:
336 - application/json; charset=utf-8 336 - application/json; charset=utf-8
337 ETag: 337 ETag:
338 - W/"1b186702db499a3f98d74e97f3c0f353" 338 - W/"fd90f5989e14c7bd621d7cbb5bdac3cb"
339 Referrer-Policy: 339 Referrer-Policy:
340 - strict-origin-when-cross-origin 340 - strict-origin-when-cross-origin
341 Transfer-Encoding: 341 Transfer-Encoding:
@@ -351,9 +351,9 @@ interactions:
351 X-Permitted-Cross-Domain-Policies: 351 X-Permitted-Cross-Domain-Policies:
352 - none 352 - none
353 X-Request-Id: 353 X-Request-Id:
354 - 96d8685c-f42c-4034-a261-815731bba43f 354 - a8b24e0b-50a6-48e1-9298-671d53df9913
355 X-Runtime: 355 X-Runtime:
356 - '0.012444' 356 - '0.012986'
357 X-XSS-Protection: 357 X-XSS-Protection:
358 - 1; mode=block 358 - 1; mode=block
359 status: 359 status:
Powered by cgit v1.2.3 (git 2.41.0)