From 5215c2242dd7b87418a7c10781c2b10b35d86f46 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 18:39:56 +0200 Subject: Fix some things in streaming and admin API for 3.3.0 support --- tests/cassettes/test_poll_illegal_vote.yaml | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'tests/cassettes/test_poll_illegal_vote.yaml') diff --git a/tests/cassettes/test_poll_illegal_vote.yaml b/tests/cassettes/test_poll_illegal_vote.yaml index 5495985..0c40da8 100644 --- a/tests/cassettes/test_poll_illegal_vote.yaml +++ b/tests/cassettes/test_poll_illegal_vote.yaml @@ -21,8 +21,8 @@ interactions: uri: http://localhost:3000/api/v1/statuses response: body: - string: '{"id":"109336906930911745","created_at":"2022-11-13T14:13:19.611Z","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/109336906930911745","url":"http://localhost:3000/@admin/109336906930911745","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003enice\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py - test suite","website":null},"account":{"id":"109336898971915318","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"2","expires_at":"2022-11-13T14:18:19.608Z","expired":false,"multiple":false,"votes_count":0,"voters_count":0,"voted":true,"own_votes":[],"options":[{"title":"four + string: '{"id":"109337447666886660","created_at":"2022-11-13T16:30:50.582Z","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/109337447666886660","url":"http://localhost:3000/@admin/109337447666886660","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003enice\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py + test suite","website":null},"account":{"id":"109337440467895233","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":2,"last_status_at":"2022-11-13","noindex":false,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[],"card":null,"poll":{"id":"2","expires_at":"2022-11-13T16:35:50.581Z","expired":false,"multiple":false,"votes_count":0,"voters_count":0,"voted":true,"own_votes":[],"options":[{"title":"four twenty","votes_count":0},{"title":"sixty-nine","votes_count":0}],"emojis":[]}}' headers: Cache-Control: @@ -30,7 +30,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-Jg2vN2CKfvxzFxPye8CNCg==''; + style-src ''self'' http://localhost:3000 ''nonce-LuA7U0MySjzWKPdYaDzxWA==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -40,7 +40,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"e04859c0be6ffcf7a75276d04feb5763" + - W/"05aaa9e37e8b5b04eb63aa747362d14f" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -60,11 +60,11 @@ interactions: X-RateLimit-Remaining: - '294' X-RateLimit-Reset: - - '2022-11-13T15:00:00.642775Z' + - '2022-11-13T18:00:00.605020Z' X-Request-Id: - - c463a304-b6b8-4663-8dc3-25e91bb50783 + - d5e5dc35-40da-4705-bb8c-3d2b0778bf37 X-Runtime: - - '0.049904' + - '0.035173' X-XSS-Protection: - 1; mode=block status: @@ -91,7 +91,7 @@ interactions: uri: http://localhost:3000/api/v1/polls/2/votes response: body: - string: '{"id":"2","expires_at":"2022-11-13T14:18:19.608Z","expired":false,"multiple":false,"votes_count":1,"voters_count":1,"voted":true,"own_votes":[1],"options":[{"title":"four + string: '{"id":"2","expires_at":"2022-11-13T16:35:50.581Z","expired":false,"multiple":false,"votes_count":1,"voters_count":1,"voted":true,"own_votes":[1],"options":[{"title":"four twenty","votes_count":0},{"title":"sixty-nine","votes_count":1}],"emojis":[]}' headers: Cache-Control: @@ -99,7 +99,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-dT03IC9wBFF8YOYFlfsaKQ==''; + style-src ''self'' http://localhost:3000 ''nonce-SzNU1C322pmon50+qpNDAQ==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -109,7 +109,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"12a5f321e2a42772ea6f7812bf5a976f" + - W/"c00b8c5eeeab302fb1f9f741112e0f49" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -125,9 +125,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - dbed9a51-b945-4688-8452-75ccfe66035c + - 5099f0c1-5ebb-443b-8e7a-cbb3cd64aeda X-Runtime: - - '0.030937' + - '0.023689' X-XSS-Protection: - 1; mode=block status: @@ -162,7 +162,7 @@ interactions: Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-pPy0Yo8OxePPSnOMlZ4yDw==''; + style-src ''self'' http://localhost:3000 ''nonce-fYt0j0+JFl0TCYNYONKHRw==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -186,9 +186,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 12cd4e86-1122-4d28-bead-1c0880360593 + - 980ef0c0-fa0b-46ef-a7f3-1d55ba7a7dce X-Runtime: - - '0.014828' + - '0.013594' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3