diff options
Diffstat (limited to 'tests/cassettes/test_stream_direct.yaml')
-rw-r--r-- | tests/cassettes/test_stream_direct.yaml | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/cassettes/test_stream_direct.yaml b/tests/cassettes/test_stream_direct.yaml index 9ff8dbe..ff0c8db 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.0rc2","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":7,"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":8,"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-Sb0kCr+3yiINnoE8cqjTVw==''; | 26 | style-src ''self'' http://localhost:3000 ''nonce-vXThjGH3nd+eO8m/i2NN1Q==''; |
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 | - Sat, 19 Nov 2022 00:44:58 GMT | 36 | - Mon, 21 Nov 2022 20:27:20 GMT |
37 | ETag: | 37 | ETag: |
38 | - W/"6c14ac0d07842aa42335cbaf2881fd8d" | 38 | - W/"b3134b9b6dd4c58f0150831d75c86c06" |
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 | - 11ace918-ce2e-4606-bc4e-e9517cc01930 | 54 | - 22dac5a0-6334-4e45-bcee-0999966b36a4 |
55 | X-Runtime: | 55 | X-Runtime: |
56 | - '0.016070' | 56 | - '0.017548' |
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":"109367702550624310","created_at":"2022-11-19T00:45:03.471Z","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/109367702550624310","url":"http://localhost:3000/@admin/109367702550624310","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":"109383676438949033","created_at":"2022-11-21T20:27:25.663Z","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/109383676438949033","url":"http://localhost:3000/@admin/109383676438949033","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":"109367691027217373","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-19T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-19","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109367691239664003","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":"109383664751443295","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-21","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109383664973470793","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-awnlv8ERNL3aUzdS7YQr+A==''; | 94 | style-src ''self'' http://localhost:3000 ''nonce-sozx2mI84IEI19KXbGiNOQ==''; |
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/"96b8a62da3ff16ed8d6b9384d4fa0d1f" | 104 | - W/"84a8ff79bedbb6f7df620ef4e0481c71" |
105 | Referrer-Policy: | 105 | Referrer-Policy: |
106 | - strict-origin-when-cross-origin | 106 | - strict-origin-when-cross-origin |
107 | Transfer-Encoding: | 107 | Transfer-Encoding: |
@@ -121,11 +121,11 @@ interactions: | |||
121 | X-RateLimit-Remaining: | 121 | X-RateLimit-Remaining: |
122 | - '290' | 122 | - '290' |
123 | X-RateLimit-Reset: | 123 | X-RateLimit-Reset: |
124 | - '2022-11-19T03:00:00.507616Z' | 124 | - '2022-11-21T21:00:00.688079Z' |
125 | X-Request-Id: | 125 | X-Request-Id: |
126 | - 76cb9559-573d-41af-868a-89f4fcefc8ad | 126 | - 3f916e9d-0c7e-429b-a71c-a5a121ca3879 |
127 | X-Runtime: | 127 | X-Runtime: |
128 | - '0.048502' | 128 | - '0.037059' |
129 | X-XSS-Protection: | 129 | X-XSS-Protection: |
130 | - 1; mode=block | 130 | - 1; mode=block |
131 | status: | 131 | status: |
@@ -152,10 +152,10 @@ interactions: | |||
152 | 152 | ||
153 | event: conversation | 153 | event: conversation |
154 | 154 | ||
155 | data: {"id":"2","unread":true,"accounts":[{"id":"109367691027217373","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-19T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-19","noindex":false,"emojis":[],"fields":[]}],"last_status":{"id":"109367702550624310","created_at":"2022-11-19T00:45:03.471Z","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/109367702550624310","url":"http://localhost:3000/@admin/109367702550624310","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"content":"<p><span | 155 | data: {"id":"4","unread":true,"accounts":[{"id":"109383664751443295","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-21","noindex":false,"emojis":[],"fields":[]}],"last_status":{"id":"109383676438949033","created_at":"2022-11-21T20:27:25.663Z","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/109383676438949033","url":"http://localhost:3000/@admin/109383676438949033","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 | 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 | 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":"109367691027217373","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-19T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-19","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109367691239664003","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} | 158 | test suite","website":null},"account":{"id":"109383664751443295","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":3,"last_status_at":"2022-11-21","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[{"id":"109383664973470793","username":"mastodonpy_test","url":"http://localhost:3000/@mastodonpy_test","acct":"mastodonpy_test"}],"tags":[],"emojis":[],"card":null,"poll":null}} |
159 | 159 | ||
160 | 160 | ||
161 | :' | 161 | :' |
@@ -173,7 +173,7 @@ interactions: | |||
173 | Content-Type: | 173 | Content-Type: |
174 | - text/event-stream | 174 | - text/event-stream |
175 | Date: | 175 | Date: |
176 | - Sat, 19 Nov 2022 00:44:58 GMT | 176 | - Mon, 21 Nov 2022 20:27:20 GMT |
177 | Keep-Alive: | 177 | Keep-Alive: |
178 | - timeout=5 | 178 | - timeout=5 |
179 | Transfer-Encoding: | 179 | Transfer-Encoding: |
@@ -181,7 +181,7 @@ interactions: | |||
181 | X-Powered-By: | 181 | X-Powered-By: |
182 | - Express | 182 | - Express |
183 | X-Request-Id: | 183 | X-Request-Id: |
184 | - a9103844-2128-4dd1-9f68-fba771fe4f82 | 184 | - 7ce7da02-b29d-4848-8ece-c7a9803c2fa1 |
185 | status: | 185 | status: |
186 | code: 200 | 186 | code: 200 |
187 | message: OK | 187 | message: OK |