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_account_pin_unpin.yaml | 92 ++++++++++++++--------------- 1 file changed, 46 insertions(+), 46 deletions(-) (limited to 'tests/cassettes/test_account_pin_unpin.yaml') diff --git a/tests/cassettes/test_account_pin_unpin.yaml b/tests/cassettes/test_account_pin_unpin.yaml index f42c0e6..edefdfa 100644 --- a/tests/cassettes/test_account_pin_unpin.yaml +++ b/tests/cassettes/test_account_pin_unpin.yaml @@ -16,14 +16,14 @@ interactions: uri: http://localhost:3000/api/v1/accounts/verify_credentials response: body: - string: '{"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":0,"last_status_at":null,"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}}' + string: '{"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":0,"last_status_at":null,"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}}' headers: Cache-Control: - no-store 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-64Fhynu7fD6+dsVp0IXmnA==''; + style-src ''self'' http://localhost:3000 ''nonce-Ogw0H6jVVf5r3x6nQoPkYw==''; 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 @@ -33,7 +33,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"42368453c18e76d233e5f4ac57d3de69" + - W/"91cc35ca6300f8fcd18839f0f85f1152" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -49,16 +49,16 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 452d2413-e4e2-48f5-916e-9fd069527ea3 + - a8f687e3-3cc3-43ef-9a5b-38aaf4fe34ca X-Runtime: - - '0.012862' + - '0.012507' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: - body: id=109336898971915318&reblogs=1¬ify=0 + body: id=109337440467895233&reblogs=1¬ify=0 headers: Accept: - '*/*' @@ -75,17 +75,17 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/109336898971915318/follow + uri: http://localhost:3000/api/v1/accounts/109337440467895233/follow response: body: - string: '{"id":"109336898971915318","following":true,"showing_reblogs":true,"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":""}' + string: '{"id":"109337440467895233","following":true,"showing_reblogs":true,"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":""}' headers: Cache-Control: - no-store 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-pHp2BZbeJ+RmVbYPp6btjw==''; + style-src ''self'' http://localhost:3000 ''nonce-zZo9idfJFAOWecajN7IGyQ==''; 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 @@ -95,7 +95,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"0c6748228fe729d68e4376f765e96f2f" + - W/"f41bc668e73edcd14927a1be77af4e10" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -115,11 +115,11 @@ interactions: X-RateLimit-Remaining: - '397' X-RateLimit-Reset: - - '2022-11-14T00:00:00.567319Z' + - '2022-11-14T00:00:00.593600Z' X-Request-Id: - - e8c03996-5520-4da5-9baa-554fbb36bc14 + - d404ceb3-7d6f-49b2-a134-a22aa2e5a417 X-Runtime: - - '0.025817' + - '0.029915' X-XSS-Protection: - 1; mode=block status: @@ -141,17 +141,17 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/109336898971915318/unpin + uri: http://localhost:3000/api/v1/accounts/109337440467895233/unpin response: body: - string: '{"id":"109336898971915318","following":true,"showing_reblogs":true,"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":""}' + string: '{"id":"109337440467895233","following":true,"showing_reblogs":true,"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":""}' headers: Cache-Control: - no-store 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-EPLpsvzcssmf20WUyDq0Aw==''; + style-src ''self'' http://localhost:3000 ''nonce-4cisooxgEkXS5UL7TEyqeQ==''; 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 @@ -161,7 +161,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"0c6748228fe729d68e4376f765e96f2f" + - W/"f41bc668e73edcd14927a1be77af4e10" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -177,9 +177,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - a2b73f2b-0978-436f-a13c-669b178cf883 + - 3531d80c-2090-4503-b899-f60457c7d8b1 X-Runtime: - - '0.013669' + - '0.019055' X-XSS-Protection: - 1; mode=block status: @@ -201,17 +201,17 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/109336898971915318/pin + uri: http://localhost:3000/api/v1/accounts/109337440467895233/pin response: body: - string: '{"id":"109336898971915318","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":true,"note":""}' + string: '{"id":"109337440467895233","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":true,"note":""}' headers: Cache-Control: - no-store 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-BkaKDBZnAnI8rWgjPlYQ2w==''; + style-src ''self'' http://localhost:3000 ''nonce-KSIYE72w6FHtZsWZNMtAIw==''; 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 @@ -221,7 +221,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"4da1e80dece60243303e5bbaa68fba1d" + - W/"204bc86e48d7a9709a0354241829cf52" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -237,9 +237,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 8be9cd05-05db-4a65-b960-5d8a592b7a0a + - 81fb50c5-2bc9-4eac-97c3-8359cc1d6377 X-Runtime: - - '0.016831' + - '0.017375' X-XSS-Protection: - 1; mode=block status: @@ -262,14 +262,14 @@ interactions: uri: http://localhost:3000/api/v1/endorsements response: body: - string: '[{"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":1,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}]' + string: '[{"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":1,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"emojis":[],"fields":[]}]' headers: Cache-Control: - no-store 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-OprVtV5/Lod6lSn519oZTA==''; + style-src ''self'' http://localhost:3000 ''nonce-AcYgcrN5Lnp3gUXBBi/H4g==''; 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 @@ -279,9 +279,9 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"f56dd4acf7c0c299e1d42a2d7c0c520b" + - W/"a28dd5b97fe3d6be03a9efb65a44c10b" Link: - - ; rel="prev" + - ; rel="prev" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -297,9 +297,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - bcf3dbcf-4cda-48ef-adc5-489456f51686 + - f6c7db59-0485-4171-8ae5-5f8211e47701 X-Runtime: - - '0.014456' + - '0.014959' X-XSS-Protection: - 1; mode=block status: @@ -321,17 +321,17 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/109336898971915318/unpin + uri: http://localhost:3000/api/v1/accounts/109337440467895233/unpin response: body: - string: '{"id":"109336898971915318","following":true,"showing_reblogs":true,"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":""}' + string: '{"id":"109337440467895233","following":true,"showing_reblogs":true,"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":""}' headers: Cache-Control: - no-store 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-6BaAgH5apD1wKRzbLKWDWQ==''; + style-src ''self'' http://localhost:3000 ''nonce-xu2LMW3E5A0vQzWO0mMPPg==''; 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 @@ -341,7 +341,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"0c6748228fe729d68e4376f765e96f2f" + - W/"f41bc668e73edcd14927a1be77af4e10" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -357,9 +357,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - e22aad44-3ad4-46c0-82a6-167d326df0fe + - 6afaad7d-fab8-49ed-916f-9f91468171e3 X-Runtime: - - '0.014781' + - '0.015131' X-XSS-Protection: - 1; mode=block status: @@ -389,7 +389,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-6IR+YkQLeE/77Bn5lUirqA==''; + style-src ''self'' http://localhost:3000 ''nonce-FR1xgCJ9Ucp2CkX3GglWPg==''; 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 @@ -415,9 +415,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - b6368e85-4411-4355-87ef-8de8e5ab60ae + - ee9e7cbe-48ff-4c50-a849-389967949b45 X-Runtime: - - '0.008099' + - '0.007120' X-XSS-Protection: - 1; mode=block status: @@ -439,17 +439,17 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/109336898971915318/unfollow + uri: http://localhost:3000/api/v1/accounts/109337440467895233/unfollow response: body: - string: '{"id":"109336898971915318","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":""}' + string: '{"id":"109337440467895233","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":""}' headers: Cache-Control: - no-store 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-vuyvLNvDt0rE+m9otgOskA==''; + style-src ''self'' http://localhost:3000 ''nonce-zje0Na8e1IVLcICXaZ0GDg==''; 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 @@ -459,7 +459,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"b9dd6d5b54697012fa8e870d86d958d3" + - W/"214f278429bf712708e952ee2355bf5e" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -475,9 +475,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 95028ae8-89fb-41ed-a4ea-4647aa41d53a + - 49bf2e91-72a1-4fe1-becb-11504a62ef25 X-Runtime: - - '0.021409' + - '0.015496' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3