diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-11 00:21:00 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-11 00:21:00 +0200 |
commit | 78a1c174688d51040d76fce0b9bc7693ec985a97 (patch) | |
tree | e1e9dfe35d35eee58db5f47c529697de794e47fc /tests/cassettes | |
parent | 6e170393e6a044d9d6981a15d94b7cdada97aac4 (diff) | |
download | mastodon.py-78a1c174688d51040d76fce0b9bc7693ec985a97.tar.gz |
Fix tests
Diffstat (limited to 'tests/cassettes')
-rw-r--r-- | tests/cassettes/test_featured_tags.yaml | 222 | ||||
-rw-r--r-- | tests/cassettes/test_stream_direct.yaml | 82 | ||||
-rw-r--r-- | tests/cassettes/test_stream_healthy.yaml | 16 | ||||
-rw-r--r-- | tests/cassettes/test_stream_user.yaml | 171 | ||||
-rw-r--r-- | tests/cassettes/test_stream_user_local.yaml | 106 |
5 files changed, 274 insertions, 323 deletions
diff --git a/tests/cassettes/test_featured_tags.yaml b/tests/cassettes/test_featured_tags.yaml index 1a2e642..f4ea314 100644 --- a/tests/cassettes/test_featured_tags.yaml +++ b/tests/cassettes/test_featured_tags.yaml | |||
@@ -1,78 +1,5 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: status=cool+free+%23ringtones | ||
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 | Content-Length: | ||
14 | - '29' | ||
15 | Content-Type: | ||
16 | - application/x-www-form-urlencoded | ||
17 | User-Agent: | ||
18 | - tests/v311 | ||
19 | method: POST | ||
20 | uri: http://localhost:3000/api/v1/statuses | ||
21 | response: | ||
22 | body: | ||
23 | string: '{"id":"109304274610657135","created_at":"2022-11-07T19:54:29.915Z","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/109304274610657135","url":"http://localhost:3000/@mastodonpy_test/109304274610657135","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003ecool | ||
24 | free \u003ca href=\"http://localhost:3000/tags/ringtones\" class=\"mention | ||
25 | hashtag\" rel=\"tag\"\u003e#\u003cspan\u003eringtones\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
26 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
27 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
28 | 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":1,"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":[{"name":"ringtones","url":"http://localhost:3000/tags/ringtones"}],"emojis":[],"card":null,"poll":null}' | ||
29 | headers: | ||
30 | Cache-Control: | ||
31 | - no-store | ||
32 | Content-Security-Policy: | ||
33 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
34 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
35 | style-src ''self'' http://localhost:3000 ''nonce-IyWunBzArjObfeEE5UX8ig==''; | ||
36 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
37 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
38 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
39 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
40 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
41 | worker-src ''self'' blob: http://localhost:3000' | ||
42 | Content-Type: | ||
43 | - application/json; charset=utf-8 | ||
44 | ETag: | ||
45 | - W/"10de32dfe2720e59b17044cba0f146a8" | ||
46 | Referrer-Policy: | ||
47 | - strict-origin-when-cross-origin | ||
48 | Transfer-Encoding: | ||
49 | - chunked | ||
50 | Vary: | ||
51 | - Accept, Origin | ||
52 | X-Content-Type-Options: | ||
53 | - nosniff | ||
54 | X-Download-Options: | ||
55 | - noopen | ||
56 | X-Frame-Options: | ||
57 | - SAMEORIGIN | ||
58 | X-Permitted-Cross-Domain-Policies: | ||
59 | - none | ||
60 | X-RateLimit-Limit: | ||
61 | - '300' | ||
62 | X-RateLimit-Remaining: | ||
63 | - '295' | ||
64 | X-RateLimit-Reset: | ||
65 | - '2022-11-07T21:00:00.940009Z' | ||
66 | X-Request-Id: | ||
67 | - e754fb62-d767-48e0-b88e-13b394800b32 | ||
68 | X-Runtime: | ||
69 | - '0.037297' | ||
70 | X-XSS-Protection: | ||
71 | - 1; mode=block | ||
72 | status: | ||
73 | code: 200 | ||
74 | message: OK | ||
75 | - request: | ||
76 | body: name=ringtones | 3 | body: name=ringtones |
77 | headers: | 4 | headers: |
78 | Accept: | 5 | Accept: |
@@ -93,153 +20,14 @@ interactions: | |||
93 | uri: http://localhost:3000/api/v1/featured_tags | 20 | uri: http://localhost:3000/api/v1/featured_tags |
94 | response: | 21 | response: |
95 | body: | 22 | body: |
96 | string: "OpenSSL::PKey::RSAError at /api/v1/featured_tags\n================================================\n\nNeither | 23 | string: '{"id":"1","name":"ringtones","url":"http://localhost:3000/@mastodonpy_test/tagged/ringtones","statuses_count":"0","last_status_at":null}' |
97 | PUB key nor PRIV key: no start line\n\n> To access an interactive console | ||
98 | with this error, point your browser to: /__better_errors\n\n\napp/models/account.rb, | ||
99 | line 271\n-------------------------------\n\n``` ruby\n 266 def previous_strikes_count\n | ||
100 | \ 267 strikes.where(overruled_at: nil).count\n 268 end\n 269 \n | ||
101 | \ 270 def keypair\n> 271 @keypair ||= OpenSSL::PKey::RSA.new(private_key | ||
102 | || public_key)\n 272 end\n 273 \n 274 def tags_as_strings=(tag_names)\n | ||
103 | \ 275 hashtags_map = Tag.find_or_create_by_names(tag_names).index_by(&:name)\n | ||
104 | \ 276 \n```\n\nApp backtrace\n-------------\n\n - app/models/account.rb:271:in | ||
105 | `keypair'\n - app/lib/activitypub/linked_data_signature.rb:45:in `sign!'\n | ||
106 | - app/services/concerns/payloadable.rb:19:in `serialize_payload'\n - app/services/create_featured_tag_service.rb:23:in | ||
107 | `build_json'\n - app/services/create_featured_tag_service.rb:10:in `block | ||
108 | in call'\n - app/services/create_featured_tag_service.rb:9:in `call'\n - app/controllers/api/v1/featured_tags_controller.rb:16:in | ||
109 | `create'\n - app/controllers/concerns/localized.rb:11:in `set_locale'\n - | ||
110 | lib/mastodon/rack_middleware.rb:9:in `call'\n\nFull backtrace\n--------------\n\n | ||
111 | - openssl (3.0.0) lib/openssl/pkey.rb:348:in `new'\n - app/models/account.rb:271:in | ||
112 | `keypair'\n - app/lib/activitypub/linked_data_signature.rb:45:in `sign!'\n | ||
113 | - app/services/concerns/payloadable.rb:19:in `serialize_payload'\n - app/services/create_featured_tag_service.rb:23:in | ||
114 | `build_json'\n - app/services/create_featured_tag_service.rb:10:in `block | ||
115 | in call'\n - <internal:kernel>:90:in `tap'\n - app/services/create_featured_tag_service.rb:9:in | ||
116 | `call'\n - app/controllers/api/v1/featured_tags_controller.rb:16:in `create'\n | ||
117 | - actionpack (6.1.7) lib/action_controller/metal/basic_implicit_render.rb:6:in | ||
118 | `send_action'\n - actionpack (6.1.7) lib/abstract_controller/base.rb:228:in | ||
119 | `process_action'\n - actionpack (6.1.7) lib/action_controller/metal/rendering.rb:30:in | ||
120 | `process_action'\n - actionpack (6.1.7) lib/abstract_controller/callbacks.rb:42:in | ||
121 | `block in process_action'\n - activesupport (6.1.7) lib/active_support/callbacks.rb:117:in | ||
122 | `block in run_callbacks'\n - i18n (1.12.0) lib/i18n.rb:322:in `with_locale'\n | ||
123 | - app/controllers/concerns/localized.rb:11:in `set_locale'\n - activesupport | ||
124 | (6.1.7) lib/active_support/callbacks.rb:126:in `block in run_callbacks'\n | ||
125 | - activesupport (6.1.7) lib/active_support/callbacks.rb:137:in `run_callbacks'\n | ||
126 | - actionpack (6.1.7) lib/abstract_controller/callbacks.rb:41:in `process_action'\n | ||
127 | - actionpack (6.1.7) lib/action_controller/metal/rescue.rb:22:in `process_action'\n | ||
128 | - actionpack (6.1.7) lib/action_controller/metal/instrumentation.rb:34:in | ||
129 | `block in process_action'\n - activesupport (6.1.7) lib/active_support/notifications.rb:203:in | ||
130 | `block in instrument'\n - activesupport (6.1.7) lib/active_support/notifications/instrumenter.rb:24:in | ||
131 | `instrument'\n - activesupport (6.1.7) lib/active_support/notifications.rb:203:in | ||
132 | `instrument'\n - actionpack (6.1.7) lib/action_controller/metal/instrumentation.rb:33:in | ||
133 | `process_action'\n - actionpack (6.1.7) lib/action_controller/metal/params_wrapper.rb:249:in | ||
134 | `process_action'\n - activerecord (6.1.7) lib/active_record/railties/controller_runtime.rb:27:in | ||
135 | `process_action'\n - actionpack (6.1.7) lib/abstract_controller/base.rb:165:in | ||
136 | `process'\n - actionview (6.1.7) lib/action_view/rendering.rb:39:in `process'\n | ||
137 | - actionpack (6.1.7) lib/action_controller/metal.rb:190:in `dispatch'\n - | ||
138 | actionpack (6.1.7) lib/action_controller/metal.rb:254:in `dispatch'\n - actionpack | ||
139 | (6.1.7) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'\n - actionpack | ||
140 | (6.1.7) lib/action_dispatch/routing/route_set.rb:33:in `serve'\n - actionpack | ||
141 | (6.1.7) lib/action_dispatch/journey/router.rb:50:in `block in serve'\n - actionpack | ||
142 | (6.1.7) lib/action_dispatch/journey/router.rb:32:in `serve'\n - actionpack | ||
143 | (6.1.7) lib/action_dispatch/routing/route_set.rb:842:in `call'\n - omniauth | ||
144 | (1.9.2) lib/omniauth/builder.rb:45:in `call'\n - bullet (7.0.3) lib/bullet/rack.rb:15:in | ||
145 | `call'\n - rack-attack (6.6.1) lib/rack/attack.rb:103:in `call'\n - http_accept_language | ||
146 | (2.1.1) lib/http_accept_language/middleware.rb:14:in `call'\n - makara (0.5.1) | ||
147 | lib/makara/middleware.rb:16:in `call'\n - lib/mastodon/rack_middleware.rb:9:in | ||
148 | `call'\n - rack-attack (6.6.1) lib/rack/attack.rb:110:in `call'\n - warden | ||
149 | (1.2.9) lib/warden/manager.rb:36:in `block in call'\n - warden (1.2.9) lib/warden/manager.rb:34:in | ||
150 | `call'\n - rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in `call'\n - rack | ||
151 | (2.2.4) lib/rack/etag.rb:27:in `call'\n - rack (2.2.4) lib/rack/conditional_get.rb:40:in | ||
152 | `call'\n - rack (2.2.4) lib/rack/head.rb:12:in `call'\n - actionpack (6.1.7) | ||
153 | lib/action_dispatch/http/permissions_policy.rb:22:in `call'\n - actionpack | ||
154 | (6.1.7) lib/action_dispatch/http/content_security_policy.rb:19:in `call'\n | ||
155 | - rack (2.2.4) lib/rack/session/abstract/id.rb:266:in `context'\n - rack (2.2.4) | ||
156 | lib/rack/session/abstract/id.rb:260:in `call'\n - actionpack (6.1.7) lib/action_dispatch/middleware/cookies.rb:689:in | ||
157 | `call'\n - activerecord (6.1.7) lib/active_record/migration.rb:601:in `call'\n | ||
158 | - actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb:27:in `block | ||
159 | in call'\n - activesupport (6.1.7) lib/active_support/callbacks.rb:98:in `run_callbacks'\n | ||
160 | - actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb:26:in `call'\n | ||
161 | - actionpack (6.1.7) lib/action_dispatch/middleware/executor.rb:14:in `call'\n | ||
162 | - actionpack (6.1.7) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in | ||
163 | `call'\n - better_errors (2.9.1) lib/better_errors/middleware.rb:87:in `protected_app_call'\n | ||
164 | - better_errors (2.9.1) lib/better_errors/middleware.rb:82:in `better_errors_call'\n | ||
165 | - better_errors (2.9.1) lib/better_errors/middleware.rb:60:in `call'\n - actionpack | ||
166 | (6.1.7) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'\n | ||
167 | - actionpack (6.1.7) lib/action_dispatch/middleware/show_exceptions.rb:33:in | ||
168 | `call'\n - chewy (7.2.4) lib/chewy/railtie.rb:21:in `block in call'\n - chewy | ||
169 | (7.2.4) lib/chewy/strategy.rb:57:in `wrap'\n - chewy (7.2.4) lib/chewy.rb:154:in | ||
170 | `strategy'\n - chewy (7.2.4) lib/chewy/railtie.rb:21:in `call'\n - railties | ||
171 | (6.1.7) lib/rails/rack/logger.rb:37:in `call_app'\n - railties (6.1.7) lib/rails/rack/logger.rb:26:in | ||
172 | `block in call'\n - activesupport (6.1.7) lib/active_support/tagged_logging.rb:99:in | ||
173 | `block in tagged'\n - activesupport (6.1.7) lib/active_support/tagged_logging.rb:37:in | ||
174 | `tagged'\n - activesupport (6.1.7) lib/active_support/tagged_logging.rb:99:in | ||
175 | `tagged'\n - railties (6.1.7) lib/rails/rack/logger.rb:26:in `call'\n - sprockets-rails | ||
176 | (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in `call'\n - actionpack (6.1.7) | ||
177 | lib/action_dispatch/middleware/remote_ip.rb:81:in `call'\n - actionpack (6.1.7) | ||
178 | lib/action_dispatch/middleware/request_id.rb:26:in `call'\n - rack (2.2.4) | ||
179 | lib/rack/method_override.rb:24:in `call'\n - rack (2.2.4) lib/rack/runtime.rb:22:in | ||
180 | `call'\n - activesupport (6.1.7) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in | ||
181 | `call'\n - actionpack (6.1.7) lib/action_dispatch/middleware/executor.rb:14:in | ||
182 | `call'\n - actionpack (6.1.7) lib/action_dispatch/middleware/static.rb:24:in | ||
183 | `call'\n - rack (2.2.4) lib/rack/sendfile.rb:110:in `call'\n - actionpack | ||
184 | (6.1.7) lib/action_dispatch/middleware/host_authorization.rb:148:in `call'\n | ||
185 | - rack-cors (1.1.1) lib/rack/cors.rb:100:in `call'\n - webpacker (5.4.3) lib/webpacker/dev_server_proxy.rb:25:in | ||
186 | `perform_request'\n - rack-proxy (0.7.0) lib/rack/proxy.rb:63:in `call'\n | ||
187 | - railties (6.1.7) lib/rails/engine.rb:539:in `call'\n - puma (5.6.5) lib/puma/configuration.rb:252:in | ||
188 | `call'\n - puma (5.6.5) lib/puma/request.rb:77:in `block in handle_request'\n | ||
189 | - puma (5.6.5) lib/puma/thread_pool.rb:340:in `with_force_shutdown'\n - puma | ||
190 | (5.6.5) lib/puma/request.rb:76:in `handle_request'\n - puma (5.6.5) lib/puma/server.rb:443:in | ||
191 | `process_client'\n - puma (5.6.5) lib/puma/thread_pool.rb:147:in `block in | ||
192 | spawn_thread'\n\n" | ||
193 | headers: | ||
194 | Content-Type: | ||
195 | - text/plain; charset=utf-8 | ||
196 | Set-Cookie: | ||
197 | - BetterErrors-2.9.1-CSRF-Token=4580aa73-9d66-4bfa-870b-46593e252bde; path=/; | ||
198 | HttpOnly; SameSite=Strict | ||
199 | Transfer-Encoding: | ||
200 | - chunked | ||
201 | Vary: | ||
202 | - Origin | ||
203 | X-Request-Id: | ||
204 | - de262fec-8e84-4b04-85bb-5da30813c411 | ||
205 | X-Runtime: | ||
206 | - '0.049918' | ||
207 | status: | ||
208 | code: 500 | ||
209 | message: Internal Server Error | ||
210 | - request: | ||
211 | body: null | ||
212 | headers: | ||
213 | Accept: | ||
214 | - '*/*' | ||
215 | Accept-Encoding: | ||
216 | - gzip, deflate | ||
217 | Authorization: | ||
218 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
219 | Connection: | ||
220 | - keep-alive | ||
221 | Content-Length: | ||
222 | - '0' | ||
223 | Cookie: | ||
224 | - BetterErrors-2.9.1-CSRF-Token=4580aa73-9d66-4bfa-870b-46593e252bde | ||
225 | User-Agent: | ||
226 | - tests/v311 | ||
227 | method: DELETE | ||
228 | uri: http://localhost:3000/api/v1/statuses/109304274610657135 | ||
229 | response: | ||
230 | body: | ||
231 | string: '{"id":"109304274610657135","created_at":"2022-11-07T19:54:29.915Z","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/109304274610657135","url":"http://localhost:3000/@mastodonpy_test/109304274610657135","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"cool | ||
232 | free #ringtones","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
233 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | ||
234 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
235 | 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":0,"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":[{"name":"ringtones","url":"http://localhost:3000/tags/ringtones"}],"emojis":[],"card":null,"poll":null}' | ||
236 | headers: | 24 | headers: |
237 | Cache-Control: | 25 | Cache-Control: |
238 | - no-store | 26 | - no-store |
239 | Content-Security-Policy: | 27 | Content-Security-Policy: |
240 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 28 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
241 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 29 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
242 | style-src ''self'' http://localhost:3000 ''nonce-Hf3Oo/m+v4J/Ait+/fAFZw==''; | 30 | style-src ''self'' http://localhost:3000 ''nonce-GjXyZZckExmvwzB75bXrRw==''; |
243 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 31 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
244 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 32 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
245 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 33 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -249,7 +37,7 @@ interactions: | |||
249 | Content-Type: | 37 | Content-Type: |
250 | - application/json; charset=utf-8 | 38 | - application/json; charset=utf-8 |
251 | ETag: | 39 | ETag: |
252 | - W/"b6c97f90f2b33e78eb4d27015883bb39" | 40 | - W/"aa2380f6b72962d051f0cd1ca31074a1" |
253 | Referrer-Policy: | 41 | Referrer-Policy: |
254 | - strict-origin-when-cross-origin | 42 | - strict-origin-when-cross-origin |
255 | Transfer-Encoding: | 43 | Transfer-Encoding: |
@@ -265,9 +53,9 @@ interactions: | |||
265 | X-Permitted-Cross-Domain-Policies: | 53 | X-Permitted-Cross-Domain-Policies: |
266 | - none | 54 | - none |
267 | X-Request-Id: | 55 | X-Request-Id: |
268 | - 7f8027d9-bdd5-4ed5-b652-110deb8cf5b2 | 56 | - 40a41ecb-53f4-4d6a-816b-ea0bdec7283c |
269 | X-Runtime: | 57 | X-Runtime: |
270 | - '0.023956' | 58 | - '0.262286' |
271 | X-XSS-Protection: | 59 | X-XSS-Protection: |
272 | - 1; mode=block | 60 | - 1; mode=block |
273 | status: | 61 | status: |
diff --git a/tests/cassettes/test_stream_direct.yaml b/tests/cassettes/test_stream_direct.yaml index abd2d21..78e7495 100644 --- a/tests/cassettes/test_stream_direct.yaml +++ b/tests/cassettes/test_stream_direct.yaml | |||
@@ -16,14 +16,14 @@ interactions: | |||
16 | uri: http://localhost:3000/api/v1/instance/ | 16 | uri: http://localhost:3000/api/v1/instance/ |
17 | response: | 17 | response: |
18 | body: | 18 | body: |
19 | 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":15,"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":[]}' | 19 | 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":26,"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":[]}' |
20 | headers: | 20 | headers: |
21 | Cache-Control: | 21 | Cache-Control: |
22 | - max-age=180, public | 22 | - max-age=180, public |
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-MmIvPhY8R3slN53SGtDgOw==''; | 26 | style-src ''self'' http://localhost:3000 ''nonce-B1nOHrph1hAKwl0wS1cnVA==''; |
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,9 +33,9 @@ interactions: | |||
33 | Content-Type: | 33 | Content-Type: |
34 | - application/json; charset=utf-8 | 34 | - application/json; charset=utf-8 |
35 | Date: | 35 | Date: |
36 | - Mon, 07 Nov 2022 20:27:56 GMT | 36 | - Thu, 10 Nov 2022 22:13:58 GMT |
37 | ETag: | 37 | ETag: |
38 | - W/"fafcb5ea1f4109317c0ec8433c248a14" | 38 | - W/"4045472975d392761543da851003f105" |
39 | Referrer-Policy: | 39 | Referrer-Policy: |
40 | - strict-origin-when-cross-origin | 40 | - strict-origin-when-cross-origin |
41 | Transfer-Encoding: | 41 | Transfer-Encoding: |
@@ -51,9 +51,9 @@ interactions: | |||
51 | X-Permitted-Cross-Domain-Policies: | 51 | X-Permitted-Cross-Domain-Policies: |
52 | - none | 52 | - none |
53 | X-Request-Id: | 53 | X-Request-Id: |
54 | - ef816ca9-472b-490c-b55a-7db3a4254698 | 54 | - d8f470d4-2737-4db7-945d-83df81a502db |
55 | X-Runtime: | 55 | X-Runtime: |
56 | - '0.013663' | 56 | - '0.014842' |
57 | X-XSS-Protection: | 57 | X-XSS-Protection: |
58 | - 1; mode=block | 58 | - 1; mode=block |
59 | status: | 59 | status: |
@@ -80,18 +80,18 @@ interactions: | |||
80 | uri: http://localhost:3000/api/v1/statuses | 80 | uri: http://localhost:3000/api/v1/statuses |
81 | response: | 81 | response: |
82 | body: | 82 | body: |
83 | string: '{"id":"109304406436478981","created_at":"2022-11-07T20:28:01.417Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"en","uri":"http://localhost:3000/users/admin/statuses/109304406436478981","url":"http://localhost:3000/@admin/109304406436478981","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan | 83 | string: '{"id":"109321810281990927","created_at":"2022-11-10T22:14:03.025Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"en","uri":"http://localhost:3000/users/admin/statuses/109321810281990927","url":"http://localhost:3000/@admin/109321810281990927","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"\u003cp\u003e\u003cspan |
84 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | 84 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" |
85 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | 85 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e |
86 | todo funny text here\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | 86 | todo funny text here\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
87 | test suite","website":null},"account":{"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,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' | 87 | test suite","website":null},"account":{"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,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109321664748836260","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' |
88 | headers: | 88 | headers: |
89 | Cache-Control: | 89 | Cache-Control: |
90 | - no-store | 90 | - no-store |
91 | Content-Security-Policy: | 91 | Content-Security-Policy: |
92 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 92 | - '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; | 93 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
94 | style-src ''self'' http://localhost:3000 ''nonce-DqMY8D6ZzOF/QRsl0W/e7Q==''; | 94 | style-src ''self'' http://localhost:3000 ''nonce-23OmcQKuF8MjIWQ74DG4LQ==''; |
95 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 95 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
96 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 96 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
97 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 97 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -101,7 +101,7 @@ interactions: | |||
101 | Content-Type: | 101 | Content-Type: |
102 | - application/json; charset=utf-8 | 102 | - application/json; charset=utf-8 |
103 | ETag: | 103 | ETag: |
104 | - W/"a83e0800c490595538b11525df685367" | 104 | - W/"f58fbc9f60f8ca9a1f44ee15b9387384" |
105 | Referrer-Policy: | 105 | Referrer-Policy: |
106 | - strict-origin-when-cross-origin | 106 | - strict-origin-when-cross-origin |
107 | Transfer-Encoding: | 107 | Transfer-Encoding: |
@@ -119,16 +119,70 @@ interactions: | |||
119 | X-RateLimit-Limit: | 119 | X-RateLimit-Limit: |
120 | - '300' | 120 | - '300' |
121 | X-RateLimit-Remaining: | 121 | X-RateLimit-Remaining: |
122 | - '282' | 122 | - '277' |
123 | X-RateLimit-Reset: | 123 | X-RateLimit-Reset: |
124 | - '2022-11-07T21:00:00.451033Z' | 124 | - '2022-11-11T00:00:00.061328Z' |
125 | X-Request-Id: | 125 | X-Request-Id: |
126 | - d73db2a8-b712-4d6c-bb89-db9c068065be | 126 | - 2e2efaa6-06d8-4c3c-a9b8-330a5ab34d74 |
127 | X-Runtime: | 127 | X-Runtime: |
128 | - '0.047868' | 128 | - '0.048975' |
129 | X-XSS-Protection: | 129 | X-XSS-Protection: |
130 | - 1; mode=block | 130 | - 1; mode=block |
131 | status: | 131 | status: |
132 | code: 200 | 132 | code: 200 |
133 | message: OK | 133 | message: OK |
134 | - request: | ||
135 | body: null | ||
136 | headers: | ||
137 | Accept: | ||
138 | - '*/*' | ||
139 | Accept-Encoding: | ||
140 | - gzip, deflate | ||
141 | Authorization: | ||
142 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
143 | Connection: | ||
144 | - keep-alive | ||
145 | User-Agent: | ||
146 | - tests/v311 | ||
147 | method: GET | ||
148 | uri: http://localhost:4000/api/v1/streaming/direct | ||
149 | response: | ||
150 | body: | ||
151 | string: ':) | ||
152 | |||
153 | event: conversation | ||
154 | |||
155 | data: {"id":"2","unread":true,"accounts":[{"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,"emojis":[],"fields":[]}],"last_status":{"id":"109321810281990927","created_at":"2022-11-10T22:14:03.025Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"direct","language":"en","uri":"http://localhost:3000/users/admin/statuses/109321810281990927","url":"http://localhost:3000/@admin/109321810281990927","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"<p><span | ||
156 | class=\"h-card\"><a href=\"http://localhost:3000/@mastodonpy_test\" class=\"u-url | ||
157 | mention\">@<span>mastodonpy_test</span></a></span> todo funny text here</p>","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
158 | test suite","website":null},"account":{"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,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109321664748836260","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} | ||
159 | |||
160 | |||
161 | :' | ||
162 | headers: | ||
163 | Access-Control-Allow-Headers: | ||
164 | - Authorization, Accept, Cache-Control | ||
165 | Access-Control-Allow-Methods: | ||
166 | - GET, OPTIONS | ||
167 | Access-Control-Allow-Origin: | ||
168 | - '*' | ||
169 | Cache-Control: | ||
170 | - no-store | ||
171 | Connection: | ||
172 | - keep-alive | ||
173 | Content-Type: | ||
174 | - text/event-stream | ||
175 | Date: | ||
176 | - Thu, 10 Nov 2022 22:13:58 GMT | ||
177 | Keep-Alive: | ||
178 | - timeout=5 | ||
179 | Transfer-Encoding: | ||
180 | - chunked | ||
181 | X-Powered-By: | ||
182 | - Express | ||
183 | X-Request-Id: | ||
184 | - 404f97e9-7600-4cc1-b30d-563ab2c0e6a4 | ||
185 | status: | ||
186 | code: 200 | ||
187 | message: OK | ||
134 | version: 1 | 188 | version: 1 |
diff --git a/tests/cassettes/test_stream_healthy.yaml b/tests/cassettes/test_stream_healthy.yaml index 93bdd25..cf71b41 100644 --- a/tests/cassettes/test_stream_healthy.yaml +++ b/tests/cassettes/test_stream_healthy.yaml | |||
@@ -14,14 +14,14 @@ interactions: | |||
14 | uri: http://localhost:3000/api/v1/instance/ | 14 | uri: http://localhost:3000/api/v1/instance/ |
15 | response: | 15 | response: |
16 | body: | 16 | body: |
17 | 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":5,"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":[]}' | 17 | 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":26,"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":[]}' |
18 | headers: | 18 | headers: |
19 | Cache-Control: | 19 | Cache-Control: |
20 | - max-age=180, public | 20 | - max-age=180, public |
21 | Content-Security-Policy: | 21 | Content-Security-Policy: |
22 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 22 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
23 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 23 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
24 | style-src ''self'' http://localhost:3000 ''nonce-IFylbF4oDsaIfFAG2GYmog==''; | 24 | style-src ''self'' http://localhost:3000 ''nonce-2GAQOyjXsz2oMCF35lSDHg==''; |
25 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 25 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
26 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 26 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
27 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 27 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -31,9 +31,9 @@ interactions: | |||
31 | Content-Type: | 31 | Content-Type: |
32 | - application/json; charset=utf-8 | 32 | - application/json; charset=utf-8 |
33 | Date: | 33 | Date: |
34 | - Mon, 07 Nov 2022 20:00:46 GMT | 34 | - Thu, 10 Nov 2022 22:13:54 GMT |
35 | ETag: | 35 | ETag: |
36 | - W/"a7bf7a9cf56db01ebceec16e6ad68b76" | 36 | - W/"4045472975d392761543da851003f105" |
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 | - 4010ac00-ded5-4d20-9a76-a513f3d741b3 | 52 | - 7d39bc08-e9dd-4148-a040-d51c1b15e9e0 |
53 | X-Runtime: | 53 | X-Runtime: |
54 | - '0.013582' | 54 | - '0.014872' |
55 | X-XSS-Protection: | 55 | X-XSS-Protection: |
56 | - 1; mode=block | 56 | - 1; mode=block |
57 | status: | 57 | status: |
@@ -85,7 +85,7 @@ interactions: | |||
85 | Content-Type: | 85 | Content-Type: |
86 | - text/plain | 86 | - text/plain |
87 | Date: | 87 | Date: |
88 | - Mon, 07 Nov 2022 20:00:46 GMT | 88 | - Thu, 10 Nov 2022 22:13:54 GMT |
89 | Keep-Alive: | 89 | Keep-Alive: |
90 | - timeout=5 | 90 | - timeout=5 |
91 | Transfer-Encoding: | 91 | Transfer-Encoding: |
@@ -93,7 +93,7 @@ interactions: | |||
93 | X-Powered-By: | 93 | X-Powered-By: |
94 | - Express | 94 | - Express |
95 | X-Request-Id: | 95 | X-Request-Id: |
96 | - d7132c56-20ae-448e-941c-e6cc2f8949dd | 96 | - 997f2a27-8e39-4aac-95a1-8a662e893228 |
97 | status: | 97 | status: |
98 | code: 200 | 98 | code: 200 |
99 | message: OK | 99 | message: OK |
diff --git a/tests/cassettes/test_stream_user.yaml b/tests/cassettes/test_stream_user.yaml index 8059906..196fe0b 100644 --- a/tests/cassettes/test_stream_user.yaml +++ b/tests/cassettes/test_stream_user.yaml | |||
@@ -7,7 +7,7 @@ interactions: | |||
7 | Accept-Encoding: | 7 | Accept-Encoding: |
8 | - gzip, deflate | 8 | - gzip, deflate |
9 | Authorization: | 9 | Authorization: |
10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | 10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 |
11 | Connection: | 11 | Connection: |
12 | - keep-alive | 12 | - keep-alive |
13 | User-Agent: | 13 | User-Agent: |
@@ -16,17 +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":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 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":20,"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 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00: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/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":5,"last_status_at":"2022-11-07","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: | 20 | headers: |
24 | Cache-Control: | 21 | Cache-Control: |
25 | - no-store | 22 | - no-store |
26 | Content-Security-Policy: | 23 | Content-Security-Policy: |
27 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 24 | - '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; | 25 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
29 | style-src ''self'' http://localhost:3000 ''nonce-VUl1+/U3UieNfmVbhpn2FA==''; | 26 | style-src ''self'' http://localhost:3000 ''nonce-5fw4XhR52WoYZaUWnUA36Q==''; |
30 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 27 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
31 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 28 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
32 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 29 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -36,7 +33,7 @@ interactions: | |||
36 | Content-Type: | 33 | Content-Type: |
37 | - application/json; charset=utf-8 | 34 | - application/json; charset=utf-8 |
38 | ETag: | 35 | ETag: |
39 | - W/"41bfd06ce7d76b72e812ecf3f112ca96" | 36 | - W/"6e0845cc558875a0e10200a2c3586aba" |
40 | Referrer-Policy: | 37 | Referrer-Policy: |
41 | - strict-origin-when-cross-origin | 38 | - strict-origin-when-cross-origin |
42 | Transfer-Encoding: | 39 | Transfer-Encoding: |
@@ -52,9 +49,9 @@ interactions: | |||
52 | X-Permitted-Cross-Domain-Policies: | 49 | X-Permitted-Cross-Domain-Policies: |
53 | - none | 50 | - none |
54 | X-Request-Id: | 51 | X-Request-Id: |
55 | - dc470e57-7714-4714-befb-9454dba8e53e | 52 | - 963abc1c-3752-4293-ab4c-befe423919c8 |
56 | X-Runtime: | 53 | X-Runtime: |
57 | - '0.013379' | 54 | - '0.215916' |
58 | X-XSS-Protection: | 55 | X-XSS-Protection: |
59 | - 1; mode=block | 56 | - 1; mode=block |
60 | status: | 57 | status: |
@@ -76,17 +73,17 @@ interactions: | |||
76 | User-Agent: | 73 | User-Agent: |
77 | - tests/v311 | 74 | - tests/v311 |
78 | method: POST | 75 | method: POST |
79 | uri: http://localhost:3000/api/v1/accounts/1234567890123456/unfollow | 76 | uri: http://localhost:3000/api/v1/accounts/109321664540352180/unfollow |
80 | response: | 77 | response: |
81 | body: | 78 | body: |
82 | string: '{"id":"1234567890123456","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":""}' |
83 | headers: | 80 | headers: |
84 | Cache-Control: | 81 | Cache-Control: |
85 | - no-store | 82 | - no-store |
86 | Content-Security-Policy: | 83 | Content-Security-Policy: |
87 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 84 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
88 | ''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; |
89 | style-src ''self'' http://localhost:3000 ''nonce-HGB+rYfRb5TdQqMTKDe3bg==''; | 86 | style-src ''self'' http://localhost:3000 ''nonce-/3E/wVolGkB+tMZS5WDe/w==''; |
90 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 87 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
91 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 88 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
92 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 89 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -96,7 +93,7 @@ interactions: | |||
96 | Content-Type: | 93 | Content-Type: |
97 | - application/json; charset=utf-8 | 94 | - application/json; charset=utf-8 |
98 | ETag: | 95 | ETag: |
99 | - W/"76448d2d20dfa7540764936ef5dbc7a9" | 96 | - W/"11435fd0c88c7540ef53a1ce0f924077" |
100 | Referrer-Policy: | 97 | Referrer-Policy: |
101 | - strict-origin-when-cross-origin | 98 | - strict-origin-when-cross-origin |
102 | Transfer-Encoding: | 99 | Transfer-Encoding: |
@@ -112,9 +109,9 @@ interactions: | |||
112 | X-Permitted-Cross-Domain-Policies: | 109 | X-Permitted-Cross-Domain-Policies: |
113 | - none | 110 | - none |
114 | X-Request-Id: | 111 | X-Request-Id: |
115 | - ed999496-1cf4-411e-af8d-705cbbce363d | 112 | - d3a6580a-37eb-4611-af2b-ad78f5e698fb |
116 | X-Runtime: | 113 | X-Runtime: |
117 | - '0.012251' | 114 | - '0.030200' |
118 | X-XSS-Protection: | 115 | X-XSS-Protection: |
119 | - 1; mode=block | 116 | - 1; mode=block |
120 | status: | 117 | status: |
@@ -137,14 +134,14 @@ interactions: | |||
137 | uri: http://localhost:3000/api/v1/instance/ | 134 | uri: http://localhost:3000/api/v1/instance/ |
138 | response: | 135 | response: |
139 | body: | 136 | body: |
140 | 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":12,"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":22,"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":[]}' |
141 | headers: | 138 | headers: |
142 | Cache-Control: | 139 | Cache-Control: |
143 | - max-age=180, public | 140 | - max-age=180, public |
144 | Content-Security-Policy: | 141 | Content-Security-Policy: |
145 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 142 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
146 | ''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; |
147 | style-src ''self'' http://localhost:3000 ''nonce-MGhUcpFP5NiP9JA+es1CtA==''; | 144 | style-src ''self'' http://localhost:3000 ''nonce-6lsVxd+CigbzW1+b/s0tVg==''; |
148 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 145 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
149 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 146 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
150 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 147 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -154,9 +151,9 @@ interactions: | |||
154 | Content-Type: | 151 | Content-Type: |
155 | - application/json; charset=utf-8 | 152 | - application/json; charset=utf-8 |
156 | Date: | 153 | Date: |
157 | - Mon, 07 Nov 2022 20:27:00 GMT | 154 | - Thu, 10 Nov 2022 22:06:15 GMT |
158 | ETag: | 155 | ETag: |
159 | - W/"3a31f3d76ec6a43850bae6791245f3d2" | 156 | - W/"58bbf4c7e13c8327f1d15f2dcabc73db" |
160 | Referrer-Policy: | 157 | Referrer-Policy: |
161 | - strict-origin-when-cross-origin | 158 | - strict-origin-when-cross-origin |
162 | Transfer-Encoding: | 159 | Transfer-Encoding: |
@@ -172,9 +169,9 @@ interactions: | |||
172 | X-Permitted-Cross-Domain-Policies: | 169 | X-Permitted-Cross-Domain-Policies: |
173 | - none | 170 | - none |
174 | X-Request-Id: | 171 | X-Request-Id: |
175 | - fcfa8974-c335-4de6-bda1-f35e9f36492a | 172 | - 7aa91a54-a4ca-4e9b-98e8-63dbfe7157f9 |
176 | X-Runtime: | 173 | X-Runtime: |
177 | - '0.014457' | 174 | - '0.032882' |
178 | X-XSS-Protection: | 175 | X-XSS-Protection: |
179 | - 1; mode=block | 176 | - 1; mode=block |
180 | status: | 177 | status: |
@@ -201,18 +198,16 @@ interactions: | |||
201 | uri: http://localhost:3000/api/v1/statuses | 198 | uri: http://localhost:3000/api/v1/statuses |
202 | response: | 199 | response: |
203 | body: | 200 | body: |
204 | string: '{"id":"109304402746515031","created_at":"2022-11-07T20:27:05.112Z","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/109304402746515031","url":"http://localhost:3000/@mastodonpy_test/109304402746515031","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eonly | 201 | string: '{"id":"109321779957625680","created_at":"2022-11-10T22:06:20.327Z","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/109321779957625680","url":"http://localhost:3000/@mastodonpy_test/109321779957625680","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eonly |
205 | real cars respond.\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | 202 | real cars respond.\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
206 | 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":3,"last_status_at":"2022-11-10","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' |
207 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
208 | 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}' | ||
209 | headers: | 204 | headers: |
210 | Cache-Control: | 205 | Cache-Control: |
211 | - no-store | 206 | - no-store |
212 | Content-Security-Policy: | 207 | Content-Security-Policy: |
213 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 208 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
214 | ''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; |
215 | style-src ''self'' http://localhost:3000 ''nonce-lwAA1RiSe0klsF2DHzsUew==''; | 210 | style-src ''self'' http://localhost:3000 ''nonce-EMfFzNJ6F082b0gnOnwKnw==''; |
216 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 211 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
217 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 212 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
218 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 213 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -222,7 +217,7 @@ interactions: | |||
222 | Content-Type: | 217 | Content-Type: |
223 | - application/json; charset=utf-8 | 218 | - application/json; charset=utf-8 |
224 | ETag: | 219 | ETag: |
225 | - W/"951b26a97dbfb147554b288a9b2b68c6" | 220 | - W/"52d3089086111ddccfd8419c4c5985d0" |
226 | Referrer-Policy: | 221 | Referrer-Policy: |
227 | - strict-origin-when-cross-origin | 222 | - strict-origin-when-cross-origin |
228 | Transfer-Encoding: | 223 | Transfer-Encoding: |
@@ -240,13 +235,13 @@ interactions: | |||
240 | X-RateLimit-Limit: | 235 | X-RateLimit-Limit: |
241 | - '300' | 236 | - '300' |
242 | X-RateLimit-Remaining: | 237 | X-RateLimit-Remaining: |
243 | - '188' | 238 | - '288' |
244 | X-RateLimit-Reset: | 239 | X-RateLimit-Reset: |
245 | - '2022-11-07T21:00:00.140150Z' | 240 | - '2022-11-11T00:00:00.390530Z' |
246 | X-Request-Id: | 241 | X-Request-Id: |
247 | - a4490d58-07cb-4db0-a23c-95210e0d3f30 | 242 | - 221df467-d2f2-4f0e-a807-a195aa5b4317 |
248 | X-Runtime: | 243 | X-Runtime: |
249 | - '0.040637' | 244 | - '0.111620' |
250 | X-XSS-Protection: | 245 | X-XSS-Protection: |
251 | - 1; mode=block | 246 | - 1; mode=block |
252 | status: | 247 | status: |
@@ -273,18 +268,18 @@ interactions: | |||
273 | uri: http://localhost:3000/api/v1/statuses | 268 | uri: http://localhost:3000/api/v1/statuses |
274 | response: | 269 | response: |
275 | body: | 270 | body: |
276 | string: '{"id":"109304402749964987","created_at":"2022-11-07T20:27:05.166Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109304402749964987","url":"http://localhost:3000/@admin/109304402749964987","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003cspan | 271 | string: '{"id":"109321779963947803","created_at":"2022-11-10T22:06:20.407Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109321779963947803","url":"http://localhost:3000/@admin/109321779963947803","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003e\u003cspan |
277 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" | 272 | class=\"h-card\"\u003e\u003ca href=\"http://localhost:3000/@mastodonpy_test\" |
278 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e | 273 | class=\"u-url mention\"\u003e@\u003cspan\u003emastodonpy_test\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e |
279 | beep beep I\u0026#39;m a jeep\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | 274 | beep beep I\u0026#39;m a jeep\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
280 | test suite","website":null},"account":{"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":8,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"1234567890123456","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' | 275 | test suite","website":null},"account":{"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":21,"last_status_at":"2022-11-10","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109321664748836260","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}' |
281 | headers: | 276 | headers: |
282 | Cache-Control: | 277 | Cache-Control: |
283 | - no-store | 278 | - no-store |
284 | Content-Security-Policy: | 279 | Content-Security-Policy: |
285 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 280 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
286 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 281 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
287 | style-src ''self'' http://localhost:3000 ''nonce-S0SpDbUf2W4dE627mFMCaQ==''; | 282 | style-src ''self'' http://localhost:3000 ''nonce-foSzmr69jTZHSHDxFsMPUQ==''; |
288 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 283 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
289 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 284 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
290 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 285 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -294,7 +289,7 @@ interactions: | |||
294 | Content-Type: | 289 | Content-Type: |
295 | - application/json; charset=utf-8 | 290 | - application/json; charset=utf-8 |
296 | ETag: | 291 | ETag: |
297 | - W/"0d096f7712f6d052de847691c0a8cd1e" | 292 | - W/"85599e71a085396f7294dd9a7d6b672e" |
298 | Referrer-Policy: | 293 | Referrer-Policy: |
299 | - strict-origin-when-cross-origin | 294 | - strict-origin-when-cross-origin |
300 | Transfer-Encoding: | 295 | Transfer-Encoding: |
@@ -312,13 +307,13 @@ interactions: | |||
312 | X-RateLimit-Limit: | 307 | X-RateLimit-Limit: |
313 | - '300' | 308 | - '300' |
314 | X-RateLimit-Remaining: | 309 | X-RateLimit-Remaining: |
315 | - '284' | 310 | - '279' |
316 | X-RateLimit-Reset: | 311 | X-RateLimit-Reset: |
317 | - '2022-11-07T21:00:00.196227Z' | 312 | - '2022-11-11T00:00:00.441817Z' |
318 | X-Request-Id: | 313 | X-Request-Id: |
319 | - a2193971-0857-4d22-b11f-231bdedf84a1 | 314 | - 60dccda0-5462-429f-a10d-988994fefc74 |
320 | X-Runtime: | 315 | X-Runtime: |
321 | - '0.051157' | 316 | - '0.047161' |
322 | X-XSS-Protection: | 317 | X-XSS-Protection: |
323 | - 1; mode=block | 318 | - 1; mode=block |
324 | status: | 319 | status: |
@@ -345,16 +340,16 @@ interactions: | |||
345 | uri: http://localhost:3000/api/v1/statuses | 340 | uri: http://localhost:3000/api/v1/statuses |
346 | response: | 341 | response: |
347 | body: | 342 | body: |
348 | string: '{"id":"109304402753176887","created_at":"2022-11-07T20:27:05.215Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109304402753176887","url":"http://localhost:3000/@admin/109304402753176887","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eon | 343 | string: '{"id":"109321779967333730","created_at":"2022-11-10T22:06:20.459Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109321779967333730","url":"http://localhost:3000/@admin/109321779967333730","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eon |
349 | the internet, nobody knows you\u0026#39;re a plane\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | 344 | the internet, nobody knows you\u0026#39;re a plane\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
350 | test suite","website":null},"account":{"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,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' | 345 | test suite","website":null},"account":{"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,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' |
351 | headers: | 346 | headers: |
352 | Cache-Control: | 347 | Cache-Control: |
353 | - no-store | 348 | - no-store |
354 | Content-Security-Policy: | 349 | Content-Security-Policy: |
355 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 350 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
356 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 351 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
357 | style-src ''self'' http://localhost:3000 ''nonce-MYfq6GEw6OuVekqlsK8vZw==''; | 352 | style-src ''self'' http://localhost:3000 ''nonce-f9n1IBc+RWonNMzLKSTXPw==''; |
358 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 353 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
359 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 354 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
360 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 355 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -364,7 +359,7 @@ interactions: | |||
364 | Content-Type: | 359 | Content-Type: |
365 | - application/json; charset=utf-8 | 360 | - application/json; charset=utf-8 |
366 | ETag: | 361 | ETag: |
367 | - W/"e41978db3e5751e4a28c2fe4eb716664" | 362 | - W/"ebccac0ad60df00783935eab43e6dabd" |
368 | Referrer-Policy: | 363 | Referrer-Policy: |
369 | - strict-origin-when-cross-origin | 364 | - strict-origin-when-cross-origin |
370 | Transfer-Encoding: | 365 | Transfer-Encoding: |
@@ -382,13 +377,13 @@ interactions: | |||
382 | X-RateLimit-Limit: | 377 | X-RateLimit-Limit: |
383 | - '300' | 378 | - '300' |
384 | X-RateLimit-Remaining: | 379 | X-RateLimit-Remaining: |
385 | - '283' | 380 | - '278' |
386 | X-RateLimit-Reset: | 381 | X-RateLimit-Reset: |
387 | - '2022-11-07T21:00:00.237489Z' | 382 | - '2022-11-11T00:00:00.480001Z' |
388 | X-Request-Id: | 383 | X-Request-Id: |
389 | - ad50e460-5d55-457d-b719-c9c8f03789f5 | 384 | - 5d505a15-80e5-4ac1-98b5-10f7b7c23d8d |
390 | X-Runtime: | 385 | X-Runtime: |
391 | - '0.036905' | 386 | - '0.033460' |
392 | X-XSS-Protection: | 387 | X-XSS-Protection: |
393 | - 1; mode=block | 388 | - 1; mode=block |
394 | status: | 389 | status: |
@@ -410,21 +405,19 @@ interactions: | |||
410 | User-Agent: | 405 | User-Agent: |
411 | - tests/v311 | 406 | - tests/v311 |
412 | method: DELETE | 407 | method: DELETE |
413 | uri: http://localhost:3000/api/v1/statuses/109304402746515031 | 408 | uri: http://localhost:3000/api/v1/statuses/109321779957625680 |
414 | response: | 409 | response: |
415 | body: | 410 | body: |
416 | string: '{"id":"109304402746515031","created_at":"2022-11-07T20:27:05.112Z","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/109304402746515031","url":"http://localhost:3000/@mastodonpy_test/109304402746515031","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"only | 411 | string: '{"id":"109321779957625680","created_at":"2022-11-10T22:06:20.327Z","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/109321779957625680","url":"http://localhost:3000/@mastodonpy_test/109321779957625680","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"only |
417 | real cars respond.","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | 412 | real cars respond.","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
418 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 413 | 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":2,"last_status_at":"2022-11-10","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":null}' |
419 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI | ||
420 | 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":5,"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}' | ||
421 | headers: | 414 | headers: |
422 | Cache-Control: | 415 | Cache-Control: |
423 | - no-store | 416 | - no-store |
424 | Content-Security-Policy: | 417 | Content-Security-Policy: |
425 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 418 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
426 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 419 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
427 | style-src ''self'' http://localhost:3000 ''nonce-rPI4ROrtmNt+SCZjt6KI1A==''; | 420 | style-src ''self'' http://localhost:3000 ''nonce-exYqWON2UTyAKx6FH5xeZw==''; |
428 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 421 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
429 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 422 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
430 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 423 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -434,7 +427,7 @@ interactions: | |||
434 | Content-Type: | 427 | Content-Type: |
435 | - application/json; charset=utf-8 | 428 | - application/json; charset=utf-8 |
436 | ETag: | 429 | ETag: |
437 | - W/"44e84ee8d59b0edbd95491cbb81af808" | 430 | - W/"87e842ddd3452fcc3aa050c8b8697a02" |
438 | Referrer-Policy: | 431 | Referrer-Policy: |
439 | - strict-origin-when-cross-origin | 432 | - strict-origin-when-cross-origin |
440 | Transfer-Encoding: | 433 | Transfer-Encoding: |
@@ -450,12 +443,78 @@ interactions: | |||
450 | X-Permitted-Cross-Domain-Policies: | 443 | X-Permitted-Cross-Domain-Policies: |
451 | - none | 444 | - none |
452 | X-Request-Id: | 445 | X-Request-Id: |
453 | - 50faf584-99b3-46f6-9f58-bd913132e646 | 446 | - 58afc3ac-48c8-4fdc-9dc6-1e10afec47be |
454 | X-Runtime: | 447 | X-Runtime: |
455 | - '0.027604' | 448 | - '0.051859' |
456 | X-XSS-Protection: | 449 | X-XSS-Protection: |
457 | - 1; mode=block | 450 | - 1; mode=block |
458 | status: | 451 | status: |
459 | code: 200 | 452 | code: 200 |
460 | message: OK | 453 | message: OK |
454 | - request: | ||
455 | body: null | ||
456 | headers: | ||
457 | Accept: | ||
458 | - '*/*' | ||
459 | Accept-Encoding: | ||
460 | - gzip, deflate | ||
461 | Authorization: | ||
462 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
463 | Connection: | ||
464 | - keep-alive | ||
465 | User-Agent: | ||
466 | - tests/v311 | ||
467 | method: GET | ||
468 | uri: http://localhost:4000/api/v1/streaming/user | ||
469 | response: | ||
470 | body: | ||
471 | string: ':) | ||
472 | |||
473 | event: update | ||
474 | |||
475 | data: {"id":"109321779957625680","created_at":"2022-11-10T22:06:20.327Z","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/109321779957625680","url":"http://localhost:3000/@mastodonpy_test/109321779957625680","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"content":"<p>only | ||
476 | real cars respond.</p>","reblog":null,"application":{"name":"Mastodon.py test | ||
477 | 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":3,"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":[]} | ||
478 | |||
479 | |||
480 | event: notification | ||
481 | |||
482 | data: {"id":"15","type":"mention","created_at":"2022-11-10T22:06:20.919Z","account":{"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,"emojis":[],"fields":[]},"status":{"id":"109321779963947803","created_at":"2022-11-10T22:06:20.407Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/109321779963947803","url":"http://localhost:3000/@admin/109321779963947803","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"<p><span | ||
483 | class=\"h-card\"><a href=\"http://localhost:3000/@mastodonpy_test\" class=\"u-url | ||
484 | mention\">@<span>mastodonpy_test</span></a></span> beep beep I'm a jeep</p>","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | ||
485 | test suite","website":null},"account":{"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,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109321664748836260","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} | ||
486 | |||
487 | |||
488 | event: delete | ||
489 | |||
490 | data: 109321779957625680 | ||
491 | |||
492 | |||
493 | :' | ||
494 | headers: | ||
495 | Access-Control-Allow-Headers: | ||
496 | - Authorization, Accept, Cache-Control | ||
497 | Access-Control-Allow-Methods: | ||
498 | - GET, OPTIONS | ||
499 | Access-Control-Allow-Origin: | ||
500 | - '*' | ||
501 | Cache-Control: | ||
502 | - no-store | ||
503 | Connection: | ||
504 | - keep-alive | ||
505 | Content-Type: | ||
506 | - text/event-stream | ||
507 | Date: | ||
508 | - Thu, 10 Nov 2022 22:06:15 GMT | ||
509 | Keep-Alive: | ||
510 | - timeout=5 | ||
511 | Transfer-Encoding: | ||
512 | - chunked | ||
513 | X-Powered-By: | ||
514 | - Express | ||
515 | X-Request-Id: | ||
516 | - c7edc302-50f0-45db-9e73-83bf2983d4c1 | ||
517 | status: | ||
518 | code: 200 | ||
519 | message: OK | ||
461 | version: 1 | 520 | version: 1 |
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'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 | ||
252 | version: 1 | 302 | version: 1 |