From 0e00fced99976d74e972a3c9ca5b762697840a33 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 16:16:29 +0200 Subject: fix tests --- tests/cassettes/test_account_search.yaml | 66 ++++++++++++++++---------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'tests/cassettes/test_account_search.yaml') diff --git a/tests/cassettes/test_account_search.yaml b/tests/cassettes/test_account_search.yaml index 7b2fb1f..bb1a829 100644 --- a/tests/cassettes/test_account_search.yaml +++ b/tests/cassettes/test_account_search.yaml @@ -16,14 +16,14 @@ interactions: uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=0 response: body: - string: '[{"id":"109336623096259500","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,"emojis":[],"fields":[]},{"id":"109336623202117744","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin2","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,"emojis":[],"fields":[]}]' + 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,"emojis":[],"fields":[]},{"id":"109336899086433362","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin2","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,"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-NNmKRBklWFWHLXVR11P2Bw==''; + style-src ''self'' http://localhost:3000 ''nonce-hM1NrfkS/PFTxoXNRQDbKg==''; 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/"6559d8ba71e05f1fc4f29a4fd0db31ac" + - W/"1b186702db499a3f98d74e97f3c0f353" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -49,16 +49,16 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - ec6d1bcd-fa33-42ef-bd97-057e8c511e3f + - 0f2fe1af-6302-4a5d-b5a6-306d4e794edd X-Runtime: - - '0.018322' + - '0.018001' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: - body: id=109336623096259500&reblogs=1 + body: id=109336898971915318&reblogs=1¬ify=0 headers: Accept: - '*/*' @@ -69,23 +69,23 @@ interactions: Connection: - keep-alive Content-Length: - - '31' + - '40' Content-Type: - application/x-www-form-urlencoded User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/109336623096259500/follow + uri: http://localhost:3000/api/v1/accounts/109336898971915318/follow response: body: - string: '{"id":"109336623096259500","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":"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":""}' 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-6an5vl7UksBMotIA9ZHjFg==''; + style-src ''self'' http://localhost:3000 ''nonce-qxNfhCO9emd9jVgzPpLM5A==''; 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/"3db6c93f2af18b52d1b291d211927fba" + - W/"0c6748228fe729d68e4376f765e96f2f" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -115,11 +115,11 @@ interactions: X-RateLimit-Remaining: - '399' X-RateLimit-Reset: - - '2022-11-14T00:00:00.057491Z' + - '2022-11-14T00:00:00.480556Z' X-Request-Id: - - 06cbb807-673e-4a03-b2ad-50b60f45d626 + - 1632a69c-d195-4644-967b-09d4e717d3f6 X-Runtime: - - '0.035696' + - '0.045604' X-XSS-Protection: - 1; mode=block status: @@ -142,14 +142,14 @@ interactions: uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=1 response: body: - string: '[{"id":"109336623096259500","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":"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":[]}]' 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-/sOheJsQGDTazKPGFVaruA==''; + style-src ''self'' http://localhost:3000 ''nonce-+ztzGhgxXtvr7nS+lBsIrg==''; 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 @@ -159,7 +159,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"9816e3f5c9612e7a311f7f27c514202f" + - W/"f56dd4acf7c0c299e1d42a2d7c0c520b" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -175,9 +175,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - e48d58d4-074e-460a-ba51-558c5df86566 + - d22e7278-70fd-42d8-a6ec-0f8020f3cd53 X-Runtime: - - '0.010544' + - '0.012074' X-XSS-Protection: - 1; mode=block status: @@ -199,17 +199,17 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/109336623096259500/unfollow + uri: http://localhost:3000/api/v1/accounts/109336898971915318/unfollow response: body: - string: '{"id":"109336623096259500","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":"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":""}' 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-Sg9uVrvc82Zo+p0gFG3LTw==''; + style-src ''self'' http://localhost:3000 ''nonce-9F2EcEvGOog3jcb6VpWudA==''; 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 @@ -219,7 +219,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"945f7c7731010ff2bfa8f3f3889c235c" + - W/"b9dd6d5b54697012fa8e870d86d958d3" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -235,9 +235,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - ebbb5a41-9e92-4387-bc60-f2431caacb0b + - 0becb411-9805-445b-9b93-c990025be0b9 X-Runtime: - - '0.022067' + - '0.022377' X-XSS-Protection: - 1; mode=block status: @@ -267,7 +267,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-p0shRxwzCOTjNx0WwUtOag==''; + style-src ''self'' http://localhost:3000 ''nonce-aWvm9MR1Vb9ns6zyD5U78g==''; 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 @@ -293,9 +293,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 9554335d-2ded-4357-bb2e-3910a7944f8b + - 515f5bc4-55a2-4fa4-83a0-8ceea95647fe X-Runtime: - - '0.008133' + - '0.008051' X-XSS-Protection: - 1; mode=block status: @@ -318,14 +318,14 @@ interactions: uri: http://localhost:3000/api/v1/accounts/search?q=admin&following=0 response: body: - string: '[{"id":"109336623096259500","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,"emojis":[],"fields":[]},{"id":"109336623202117744","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin2","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,"emojis":[],"fields":[]}]' + 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,"emojis":[],"fields":[]},{"id":"109336899086433362","username":"admin2","acct":"admin2","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin2","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,"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-5vujyoOgnIMK46RehbuvwA==''; + style-src ''self'' http://localhost:3000 ''nonce-7H7XbzH4x8pFWp7cMwCkyw==''; 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 @@ -335,7 +335,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"6559d8ba71e05f1fc4f29a4fd0db31ac" + - W/"1b186702db499a3f98d74e97f3c0f353" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -351,9 +351,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - ddc056a0-3143-4200-b417-47ab04bf1624 + - 96d8685c-f42c-4034-a261-815731bba43f X-Runtime: - - '0.012929' + - '0.012444' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3