diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-13 18:39:56 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-13 18:39:56 +0200 |
commit | 5215c2242dd7b87418a7c10781c2b10b35d86f46 (patch) | |
tree | 9164c3963424cc149ddd7e61561470f27f5b817a /tests/cassettes/test_markers.yaml | |
parent | 0e00fced99976d74e972a3c9ca5b762697840a33 (diff) | |
download | mastodon.py-5215c2242dd7b87418a7c10781c2b10b35d86f46.tar.gz |
Fix some things in streaming and admin API for 3.3.0 support
Diffstat (limited to 'tests/cassettes/test_markers.yaml')
-rw-r--r-- | tests/cassettes/test_markers.yaml | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/tests/cassettes/test_markers.yaml b/tests/cassettes/test_markers.yaml index c102c0b..e989e9d 100644 --- a/tests/cassettes/test_markers.yaml +++ b/tests/cassettes/test_markers.yaml | |||
@@ -20,17 +20,17 @@ interactions: | |||
20 | uri: http://localhost:3000/api/v1/statuses | 20 | uri: http://localhost:3000/api/v1/statuses |
21 | response: | 21 | response: |
22 | body: | 22 | body: |
23 | string: '{"id":"109336904696966657","created_at":"2022-11-13T14:12:45.518Z","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/109336904696966657","url":"http://localhost:3000/@mastodonpy_test/109336904696966657","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | 23 | string: '{"id":"109337445429632074","created_at":"2022-11-13T16:30:16.444Z","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/109337445429632074","url":"http://localhost:3000/@mastodonpy_test/109337445429632074","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003eToot!\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
24 | test suite","website":null},"account":{"id":"109336899193569236","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 24 | test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
25 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI | 25 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI |
26 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2022-11-13","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}' | 26 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2022-11-13","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}' |
27 | headers: | 27 | headers: |
28 | Cache-Control: | 28 | Cache-Control: |
29 | - no-store | 29 | - no-store |
30 | Content-Security-Policy: | 30 | Content-Security-Policy: |
31 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 31 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
32 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 32 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
33 | style-src ''self'' http://localhost:3000 ''nonce-EsKn1GyrE17Slz34ICLBNw==''; | 33 | style-src ''self'' http://localhost:3000 ''nonce-CyTj129g0EkrK1jQ7q/X0A==''; |
34 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 34 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
35 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 35 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
36 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 36 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -40,7 +40,7 @@ interactions: | |||
40 | Content-Type: | 40 | Content-Type: |
41 | - application/json; charset=utf-8 | 41 | - application/json; charset=utf-8 |
42 | ETag: | 42 | ETag: |
43 | - W/"861df1d96d18bf0812697e14c68f3a33" | 43 | - W/"d0a78d9e099749c3925d86e21ffbddb9" |
44 | Referrer-Policy: | 44 | Referrer-Policy: |
45 | - strict-origin-when-cross-origin | 45 | - strict-origin-when-cross-origin |
46 | Transfer-Encoding: | 46 | Transfer-Encoding: |
@@ -58,20 +58,20 @@ interactions: | |||
58 | X-RateLimit-Limit: | 58 | X-RateLimit-Limit: |
59 | - '300' | 59 | - '300' |
60 | X-RateLimit-Remaining: | 60 | X-RateLimit-Remaining: |
61 | - '287' | 61 | - '285' |
62 | X-RateLimit-Reset: | 62 | X-RateLimit-Reset: |
63 | - '2022-11-13T15:00:00.539504Z' | 63 | - '2022-11-13T18:00:00.464865Z' |
64 | X-Request-Id: | 64 | X-Request-Id: |
65 | - 915e1751-9546-4d0b-b6a3-cf307cfe63b5 | 65 | - 7163a0a0-d311-4f1b-966d-99d41829f13c |
66 | X-Runtime: | 66 | X-Runtime: |
67 | - '0.036831' | 67 | - '0.033283' |
68 | X-XSS-Protection: | 68 | X-XSS-Protection: |
69 | - 1; mode=block | 69 | - 1; mode=block |
70 | status: | 70 | status: |
71 | code: 200 | 71 | code: 200 |
72 | message: OK | 72 | message: OK |
73 | - request: | 73 | - request: |
74 | body: '{"home": {"last_read_id": 109336904696966657}}' | 74 | body: '{"home": {"last_read_id": 109337445429632074}}' |
75 | headers: | 75 | headers: |
76 | Accept: | 76 | Accept: |
77 | - '*/*' | 77 | - '*/*' |
@@ -91,14 +91,14 @@ interactions: | |||
91 | uri: http://localhost:3000/api/v1/markers | 91 | uri: http://localhost:3000/api/v1/markers |
92 | response: | 92 | response: |
93 | body: | 93 | body: |
94 | string: '{"home":{"last_read_id":"109336904696966657","version":0,"updated_at":"2022-11-13T14:12:45.559Z"}}' | 94 | string: '{"home":{"last_read_id":"109337445429632074","version":0,"updated_at":"2022-11-13T16:30:16.489Z"}}' |
95 | headers: | 95 | headers: |
96 | Cache-Control: | 96 | Cache-Control: |
97 | - no-store | 97 | - no-store |
98 | Content-Security-Policy: | 98 | Content-Security-Policy: |
99 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 99 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
100 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 100 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
101 | style-src ''self'' http://localhost:3000 ''nonce-WFNVwTTFnSX7km7Ecu9fBg==''; | 101 | style-src ''self'' http://localhost:3000 ''nonce-hHWjWCPTf+95FV6+DF6YCw==''; |
102 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 102 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
103 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 103 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
104 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 104 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -108,7 +108,7 @@ interactions: | |||
108 | Content-Type: | 108 | Content-Type: |
109 | - application/json; charset=utf-8 | 109 | - application/json; charset=utf-8 |
110 | ETag: | 110 | ETag: |
111 | - W/"cf748f8532cc34ac3febcb33d8e6ec93" | 111 | - W/"3733745d414093686ed943055c1caa22" |
112 | Referrer-Policy: | 112 | Referrer-Policy: |
113 | - strict-origin-when-cross-origin | 113 | - strict-origin-when-cross-origin |
114 | Transfer-Encoding: | 114 | Transfer-Encoding: |
@@ -124,9 +124,9 @@ interactions: | |||
124 | X-Permitted-Cross-Domain-Policies: | 124 | X-Permitted-Cross-Domain-Policies: |
125 | - none | 125 | - none |
126 | X-Request-Id: | 126 | X-Request-Id: |
127 | - f648e814-92c5-4474-998a-83ee23942b7a | 127 | - 65a9bb74-d57e-41e7-b989-f93e756afd46 |
128 | X-Runtime: | 128 | X-Runtime: |
129 | - '0.018957' | 129 | - '0.023428' |
130 | X-XSS-Protection: | 130 | X-XSS-Protection: |
131 | - 1; mode=block | 131 | - 1; mode=block |
132 | status: | 132 | status: |
@@ -149,14 +149,14 @@ interactions: | |||
149 | uri: http://localhost:3000/api/v1/markers?timeline%5B%5D=home | 149 | uri: http://localhost:3000/api/v1/markers?timeline%5B%5D=home |
150 | response: | 150 | response: |
151 | body: | 151 | body: |
152 | string: '{"home":{"last_read_id":"109336904696966657","version":0,"updated_at":"2022-11-13T14:12:45.559Z"}}' | 152 | string: '{"home":{"last_read_id":"109337445429632074","version":0,"updated_at":"2022-11-13T16:30:16.489Z"}}' |
153 | headers: | 153 | headers: |
154 | Cache-Control: | 154 | Cache-Control: |
155 | - no-store | 155 | - no-store |
156 | Content-Security-Policy: | 156 | Content-Security-Policy: |
157 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 157 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
158 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 158 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
159 | style-src ''self'' http://localhost:3000 ''nonce-KaWhAHcf1i3eGGNTftOjCQ==''; | 159 | style-src ''self'' http://localhost:3000 ''nonce-V/VwTxD7gHc4CjEe48LgBQ==''; |
160 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 160 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
161 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 161 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
162 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 162 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -166,7 +166,7 @@ interactions: | |||
166 | Content-Type: | 166 | Content-Type: |
167 | - application/json; charset=utf-8 | 167 | - application/json; charset=utf-8 |
168 | ETag: | 168 | ETag: |
169 | - W/"cf748f8532cc34ac3febcb33d8e6ec93" | 169 | - W/"3733745d414093686ed943055c1caa22" |
170 | Referrer-Policy: | 170 | Referrer-Policy: |
171 | - strict-origin-when-cross-origin | 171 | - strict-origin-when-cross-origin |
172 | Transfer-Encoding: | 172 | Transfer-Encoding: |
@@ -182,9 +182,9 @@ interactions: | |||
182 | X-Permitted-Cross-Domain-Policies: | 182 | X-Permitted-Cross-Domain-Policies: |
183 | - none | 183 | - none |
184 | X-Request-Id: | 184 | X-Request-Id: |
185 | - 6a16fe9c-5d87-414c-a5d0-905b31ec9f05 | 185 | - 4a5935f0-a242-4d34-a0d8-fea970ced30b |
186 | X-Runtime: | 186 | X-Runtime: |
187 | - '0.007757' | 187 | - '0.007799' |
188 | X-XSS-Protection: | 188 | X-XSS-Protection: |
189 | - 1; mode=block | 189 | - 1; mode=block |
190 | status: | 190 | status: |
@@ -206,20 +206,20 @@ interactions: | |||
206 | User-Agent: | 206 | User-Agent: |
207 | - tests/v311 | 207 | - tests/v311 |
208 | method: DELETE | 208 | method: DELETE |
209 | uri: http://localhost:3000/api/v1/statuses/109336904696966657 | 209 | uri: http://localhost:3000/api/v1/statuses/109337445429632074 |
210 | response: | 210 | response: |
211 | body: | 211 | body: |
212 | string: '{"id":"109336904696966657","created_at":"2022-11-13T14:12:45.518Z","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/109336904696966657","url":"http://localhost:3000/@mastodonpy_test/109336904696966657","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py | 212 | string: '{"id":"109337445429632074","created_at":"2022-11-13T16:30:16.444Z","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/109337445429632074","url":"http://localhost:3000/@mastodonpy_test/109337445429632074","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"Toot!","filtered":[],"reblog":null,"application":{"name":"Mastodon.py |
213 | test suite","website":null},"account":{"id":"109336899193569236","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 213 | test suite","website":null},"account":{"id":"109337440686176140","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
214 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI | 214 | Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"\u003cp\u003eI |
215 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/336/899/193/569/236/original/e639fe005819e5b9.jpg","header":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/336/899/193/569/236/original/26075346d9e9e361.jpg","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2022-11-13","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}' | 215 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/337/440/686/176/140/original/d6cd9a5a5e65da30.jpg","header":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/337/440/686/176/140/original/2b7760a42692fbde.jpg","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2022-11-13","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}' |
216 | headers: | 216 | headers: |
217 | Cache-Control: | 217 | Cache-Control: |
218 | - no-store | 218 | - no-store |
219 | Content-Security-Policy: | 219 | Content-Security-Policy: |
220 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 220 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
221 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 221 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
222 | style-src ''self'' http://localhost:3000 ''nonce-gzoau/CrYC8LI/TmPDx6RQ==''; | 222 | style-src ''self'' http://localhost:3000 ''nonce-I3F+T4JI135BlV23qZ2rsQ==''; |
223 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 223 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
224 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 224 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
225 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 225 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -229,7 +229,7 @@ interactions: | |||
229 | Content-Type: | 229 | Content-Type: |
230 | - application/json; charset=utf-8 | 230 | - application/json; charset=utf-8 |
231 | ETag: | 231 | ETag: |
232 | - W/"0e918a531de4ec1ba0759b6d49826625" | 232 | - W/"f6b63e18b7caa28eba52664edd938d63" |
233 | Referrer-Policy: | 233 | Referrer-Policy: |
234 | - strict-origin-when-cross-origin | 234 | - strict-origin-when-cross-origin |
235 | Transfer-Encoding: | 235 | Transfer-Encoding: |
@@ -245,9 +245,9 @@ interactions: | |||
245 | X-Permitted-Cross-Domain-Policies: | 245 | X-Permitted-Cross-Domain-Policies: |
246 | - none | 246 | - none |
247 | X-Request-Id: | 247 | X-Request-Id: |
248 | - 180c65ca-9954-4ffb-bafa-5a99fd5f28dd | 248 | - a9a8988d-88ac-462a-9502-9726fcea88db |
249 | X-Runtime: | 249 | X-Runtime: |
250 | - '0.024046' | 250 | - '0.057122' |
251 | X-XSS-Protection: | 251 | X-XSS-Protection: |
252 | - 1; mode=block | 252 | - 1; mode=block |
253 | status: | 253 | status: |