aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_stream_user_local.yaml')
-rw-r--r--tests/cassettes/test_stream_user_local.yaml106
1 files changed, 78 insertions, 28 deletions
diff --git a/tests/cassettes/test_stream_user_local.yaml b/tests/cassettes/test_stream_user_local.yaml
index b858968..58d344d 100644
--- a/tests/cassettes/test_stream_user_local.yaml
+++ b/tests/cassettes/test_stream_user_local.yaml
@@ -16,14 +16,14 @@ interactions:
16 uri: http://localhost:3000/api/v1/accounts/verify_credentials 16 uri: http://localhost:3000/api/v1/accounts/verify_credentials
17 response: 17 response:
18 body: 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":9,"last_status_at":"2022-11-07","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' 19 string: '{"id":"109321664540352180","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-10T00: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":22,"last_status_at":"2022-11-10","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}'
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-RpcagMalPkAlKm3kX+Nigw==''; 26 style-src ''self'' http://localhost:3000 ''nonce-gkwjYq+LCb/KEMV2NxbshQ=='';
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/"90c8995815af51b6af3ded8c73925bc8" 36 - W/"fb81371f967af73d437fca77518c5b76"
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,9 +49,9 @@ 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 - f89a85e4-693e-4811-afe0-f48c96810a51 52 - f17baa84-2686-4fd4-8098-b47257ff4139
53 X-Runtime: 53 X-Runtime:
54 - '0.012587' 54 - '0.013590'
55 X-XSS-Protection: 55 X-XSS-Protection:
56 - 1; mode=block 56 - 1; mode=block
57 status: 57 status:
@@ -65,7 +65,7 @@ interactions:
65 Accept-Encoding: 65 Accept-Encoding:
66 - gzip, deflate 66 - gzip, deflate
67 Authorization: 67 Authorization:
68 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 68 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
69 Connection: 69 Connection:
70 - keep-alive 70 - keep-alive
71 Content-Length: 71 Content-Length:
@@ -73,17 +73,17 @@ interactions:
73 User-Agent: 73 User-Agent:
74 - tests/v311 74 - tests/v311
75 method: POST 75 method: POST
76 uri: http://localhost:3000/api/v1/accounts/109304268902557892/unfollow 76 uri: http://localhost:3000/api/v1/accounts/109321664540352180/unfollow
77 response: 77 response:
78 body: 78 body:
79 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":""}' 79 string: '{"id":"109321664540352180","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":""}'
80 headers: 80 headers:
81 Cache-Control: 81 Cache-Control:
82 - no-store 82 - no-store
83 Content-Security-Policy: 83 Content-Security-Policy:
84 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 84 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
85 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 85 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
86 style-src ''self'' http://localhost:3000 ''nonce-MAcXmlpWzdjR1QngR+usSQ==''; 86 style-src ''self'' http://localhost:3000 ''nonce-ZrD+6y9sHNRbW9L/VrsA3A=='';
87 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 87 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
88 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 88 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
89 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 89 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -93,7 +93,7 @@ interactions:
93 Content-Type: 93 Content-Type:
94 - application/json; charset=utf-8 94 - application/json; charset=utf-8
95 ETag: 95 ETag:
96 - W/"8d8caa68e50963507d45a12d820e86b0" 96 - W/"11435fd0c88c7540ef53a1ce0f924077"
97 Referrer-Policy: 97 Referrer-Policy:
98 - strict-origin-when-cross-origin 98 - strict-origin-when-cross-origin
99 Transfer-Encoding: 99 Transfer-Encoding:
@@ -109,9 +109,9 @@ interactions:
109 X-Permitted-Cross-Domain-Policies: 109 X-Permitted-Cross-Domain-Policies:
110 - none 110 - none
111 X-Request-Id: 111 X-Request-Id:
112 - c46d293d-f470-4b9e-8831-885c9790b044 112 - 1139f40e-3a65-4b56-803a-e51fac46dd69
113 X-Runtime: 113 X-Runtime:
114 - '0.011157' 114 - '0.018744'
115 X-XSS-Protection: 115 X-XSS-Protection:
116 - 1; mode=block 116 - 1; mode=block
117 status: 117 status:
@@ -134,14 +134,14 @@ interactions:
134 uri: http://localhost:3000/api/v1/instance/ 134 uri: http://localhost:3000/api/v1/instance/
135 response: 135 response:
136 body: 136 body:
137 string: '{"uri":"localhost:3000","title":"Mastodon","short_description":"","description":"","email":"","version":"4.0.0rc1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":14,"domain_count":0},"thumbnail":"http://localhost:3000/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png","languages":["en"],"registrations":true,"approval_required":false,"invites_enabled":true,"configuration":{"accounts":{"max_featured_tags":10},"statuses":{"max_characters":500,"max_media_attachments":4,"characters_reserved_per_url":23},"media_attachments":{"supported_mime_types":["image/jpeg","image/png","image/gif","image/heic","image/heif","image/webp","image/avif","video/webm","video/mp4","video/quicktime","video/ogg","audio/wave","audio/wav","audio/x-wav","audio/x-pn-wave","audio/vnd.wave","audio/ogg","audio/vorbis","audio/mpeg","audio/mp3","audio/webm","audio/flac","audio/aac","audio/m4a","audio/x-m4a","audio/mp4","audio/3gpp","video/x-ms-asf"],"image_size_limit":10485760,"image_matrix_limit":16777216,"video_size_limit":41943040,"video_frame_rate_limit":60,"video_matrix_limit":2304000},"polls":{"max_options":4,"max_characters_per_option":50,"min_expiration":300,"max_expiration":2629746}},"contact_account":null,"rules":[]}' 137 string: '{"uri":"localhost:3000","title":"Mastodon","short_description":"","description":"","email":"","version":"4.0.0rc2","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":25,"domain_count":0},"thumbnail":"http://localhost:3000/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png","languages":["en"],"registrations":true,"approval_required":false,"invites_enabled":true,"configuration":{"accounts":{"max_featured_tags":10},"statuses":{"max_characters":500,"max_media_attachments":4,"characters_reserved_per_url":23},"media_attachments":{"supported_mime_types":["image/jpeg","image/png","image/gif","image/heic","image/heif","image/webp","image/avif","video/webm","video/mp4","video/quicktime","video/ogg","audio/wave","audio/wav","audio/x-wav","audio/x-pn-wave","audio/vnd.wave","audio/ogg","audio/vorbis","audio/mpeg","audio/mp3","audio/webm","audio/flac","audio/aac","audio/m4a","audio/x-m4a","audio/mp4","audio/3gpp","video/x-ms-asf"],"image_size_limit":10485760,"image_matrix_limit":16777216,"video_size_limit":41943040,"video_frame_rate_limit":60,"video_matrix_limit":2304000},"polls":{"max_options":4,"max_characters_per_option":50,"min_expiration":300,"max_expiration":2629746}},"contact_account":null,"rules":[]}'
138 headers: 138 headers:
139 Cache-Control: 139 Cache-Control:
140 - max-age=180, public 140 - max-age=180, public
141 Content-Security-Policy: 141 Content-Security-Policy:
142 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 142 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
143 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 143 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
144 style-src ''self'' http://localhost:3000 ''nonce-4tO2nlRskWft4h/Inu3sBQ==''; 144 style-src ''self'' http://localhost:3000 ''nonce-xkJypL9JuaLYvngaT4wIJQ=='';
145 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 145 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
146 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 146 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
147 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 147 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -151,9 +151,9 @@ interactions:
151 Content-Type: 151 Content-Type:
152 - application/json; charset=utf-8 152 - application/json; charset=utf-8
153 Date: 153 Date:
154 - Mon, 07 Nov 2022 20:27:36 GMT 154 - Thu, 10 Nov 2022 22:12:27 GMT
155 ETag: 155 ETag:
156 - W/"100afec8ba2625ff54d1d1079e4fd969" 156 - W/"e3dde204cfeb9d08fe78e070bae4265e"
157 Referrer-Policy: 157 Referrer-Policy:
158 - strict-origin-when-cross-origin 158 - strict-origin-when-cross-origin
159 Transfer-Encoding: 159 Transfer-Encoding:
@@ -169,9 +169,9 @@ interactions:
169 X-Permitted-Cross-Domain-Policies: 169 X-Permitted-Cross-Domain-Policies:
170 - none 170 - none
171 X-Request-Id: 171 X-Request-Id:
172 - 38937a94-a112-488b-804f-93d77fdeddc7 172 - 6166daa3-5622-4750-aac3-02321bca018d
173 X-Runtime: 173 X-Runtime:
174 - '0.013652' 174 - '0.015218'
175 X-XSS-Protection: 175 X-XSS-Protection:
176 - 1; mode=block 176 - 1; mode=block
177 status: 177 status:
@@ -198,18 +198,16 @@ interactions:
198 uri: http://localhost:3000/api/v1/statuses 198 uri: http://localhost:3000/api/v1/statuses
199 response: 199 response:
200 body: 200 body:
201 string: '{"id":"109304405122614430","created_at":"2022-11-07T20:27:41.369Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109304405122614430","url":"http://localhost:3000/@mastodonpy_test/109304405122614430","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eit\u0026#39;s 201 string: '{"id":"109321804346504390","created_at":"2022-11-10T22:12:32.457Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109321804346504390","url":"http://localhost:3000/@mastodonpy_test/109321804346504390","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eit\u0026#39;s
202 cool guy\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py 202 cool guy\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
203 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John 203 test suite","website":null},"account":{"id":"109321664748836260","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-10T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","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":4,"last_status_at":"2022-11-10","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
204 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI
205 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":6,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}'
206 headers: 204 headers:
207 Cache-Control: 205 Cache-Control:
208 - no-store 206 - no-store
209 Content-Security-Policy: 207 Content-Security-Policy:
210 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 208 - '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; 209 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
212 style-src ''self'' http://localhost:3000 ''nonce-6fIwlj9EEY0/cPsP7RC+Dw==''; 210 style-src ''self'' http://localhost:3000 ''nonce-6xu0+GdCnFJ8gnEdnw9RbA=='';
213 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 211 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
214 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 212 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
215 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 213 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -219,7 +217,7 @@ interactions:
219 Content-Type: 217 Content-Type:
220 - application/json; charset=utf-8 218 - application/json; charset=utf-8
221 ETag: 219 ETag:
222 - W/"8382cab430d21878647eeca6662d1957" 220 - W/"a8fa87cb101679d598c1fc7e34d1d7fc"
223 Referrer-Policy: 221 Referrer-Policy:
224 - strict-origin-when-cross-origin 222 - strict-origin-when-cross-origin
225 Transfer-Encoding: 223 Transfer-Encoding:
@@ -237,16 +235,68 @@ interactions:
237 X-RateLimit-Limit: 235 X-RateLimit-Limit:
238 - '300' 236 - '300'
239 X-RateLimit-Remaining: 237 X-RateLimit-Remaining:
240 - '187' 238 - '286'
241 X-RateLimit-Reset: 239 X-RateLimit-Reset:
242 - '2022-11-07T21:00:00.390918Z' 240 - '2022-11-11T00:00:00.480143Z'
243 X-Request-Id: 241 X-Request-Id:
244 - c9439b68-57ce-4df5-a00b-1e2cd29b7133 242 - 6bd9e7dd-82ab-4022-8820-7f8db9ae163e
245 X-Runtime: 243 X-Runtime:
246 - '0.034771' 244 - '0.037645'
247 X-XSS-Protection: 245 X-XSS-Protection:
248 - 1; mode=block 246 - 1; mode=block
249 status: 247 status:
250 code: 200 248 code: 200
251 message: OK 249 message: OK
250- request:
251 body: null
252 headers:
253 Accept:
254 - '*/*'
255 Accept-Encoding:
256 - gzip, deflate
257 Authorization:
258 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
259 Connection:
260 - keep-alive
261 User-Agent:
262 - tests/v311
263 method: GET
264 uri: http://localhost:4000/api/v1/streaming/user
265 response:
266 body:
267 string: ':)
268
269 event: update
270
271 data: {"id":"109321804346504390","created_at":"2022-11-10T22:12:32.457Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109321804346504390","url":"http://localhost:3000/@mastodonpy_test/109321804346504390","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"content":"<p>it&#39;s
272 cool guy</p>","reblog":null,"application":{"name":"Mastodon.py test suite","website":null},"account":{"id":"109321664748836260","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-10T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","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":4,"last_status_at":"2022-11-10","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"filtered":[]}
273
274
275 :'
276 headers:
277 Access-Control-Allow-Headers:
278 - Authorization, Accept, Cache-Control
279 Access-Control-Allow-Methods:
280 - GET, OPTIONS
281 Access-Control-Allow-Origin:
282 - '*'
283 Cache-Control:
284 - no-store
285 Connection:
286 - keep-alive
287 Content-Type:
288 - text/event-stream
289 Date:
290 - Thu, 10 Nov 2022 22:12:27 GMT
291 Keep-Alive:
292 - timeout=5
293 Transfer-Encoding:
294 - chunked
295 X-Powered-By:
296 - Express
297 X-Request-Id:
298 - 9197ae8e-a5c9-4173-8794-83baf5eb3a64
299 status:
300 code: 200
301 message: OK
252version: 1 302version: 1
Powered by cgit v1.2.3 (git 2.41.0)