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_pin_unpin.yaml | 94 ++++++++++++++--------------- 1 file changed, 47 insertions(+), 47 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 56153f2..f42c0e6 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":"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,"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":"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}}' 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-4rNasD0GoXAZUhQrEBsCQA==''; + style-src ''self'' http://localhost:3000 ''nonce-64Fhynu7fD6+dsVp0IXmnA==''; 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/"045b82c55c495fceaaae2b0dc2b6d8db" + - W/"42368453c18e76d233e5f4ac57d3de69" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -49,16 +49,16 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - b0beba31-4110-411e-be49-3c45e52af8bb + - 452d2413-e4e2-48f5-916e-9fd069527ea3 X-Runtime: - - '0.012161' + - '0.012862' 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-A0sMvmidqYpkLPoSQBA89g==''; + style-src ''self'' http://localhost:3000 ''nonce-pHp2BZbeJ+RmVbYPp6btjw==''; 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: - '397' X-RateLimit-Reset: - - '2022-11-14T00:00:00.303722Z' + - '2022-11-14T00:00:00.567319Z' X-Request-Id: - - 3990331e-a4d1-4ba7-ba1c-88440b1993c8 + - e8c03996-5520-4da5-9baa-554fbb36bc14 X-Runtime: - - '0.021870' + - '0.025817' 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/109336623096259500/unpin + uri: http://localhost:3000/api/v1/accounts/109336898971915318/unpin 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-CZ1BkhCKde48LUfHBzJRWw==''; + style-src ''self'' http://localhost:3000 ''nonce-EPLpsvzcssmf20WUyDq0Aw==''; 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/"3db6c93f2af18b52d1b291d211927fba" + - W/"0c6748228fe729d68e4376f765e96f2f" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -177,9 +177,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 3dea7b23-a61c-49f8-be7d-abafb517f938 + - a2b73f2b-0978-436f-a13c-669b178cf883 X-Runtime: - - '0.014522' + - '0.013669' 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/109336623096259500/pin + uri: http://localhost:3000/api/v1/accounts/109336898971915318/pin 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":true,"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":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-wJFxh4rrPmN3wNNzK+P6TA==''; + style-src ''self'' http://localhost:3000 ''nonce-BkaKDBZnAnI8rWgjPlYQ2w==''; 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/"106fb1e0d1df170beba8d9e0e6bf5848" + - W/"4da1e80dece60243303e5bbaa68fba1d" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -237,9 +237,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 460d3178-f034-4602-956b-9ddb11f1da48 + - 8be9cd05-05db-4a65-b960-5d8a592b7a0a X-Runtime: - - '0.023626' + - '0.016831' X-XSS-Protection: - 1; mode=block status: @@ -262,14 +262,14 @@ interactions: uri: http://localhost:3000/api/v1/endorsements 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-dsTeHUXbJ701M4acFAaJ5g==''; + style-src ''self'' http://localhost:3000 ''nonce-OprVtV5/Lod6lSn519oZTA==''; 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/"9816e3f5c9612e7a311f7f27c514202f" + - W/"f56dd4acf7c0c299e1d42a2d7c0c520b" 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: - - 7834d476-f1f1-4d02-905f-2fc240350a1a + - bcf3dbcf-4cda-48ef-adc5-489456f51686 X-Runtime: - - '0.014113' + - '0.014456' 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/109336623096259500/unpin + uri: http://localhost:3000/api/v1/accounts/109336898971915318/unpin 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-e5MNaBiMwVLVdEC6FhhAbA==''; + style-src ''self'' http://localhost:3000 ''nonce-6BaAgH5apD1wKRzbLKWDWQ==''; 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/"3db6c93f2af18b52d1b291d211927fba" + - W/"0c6748228fe729d68e4376f765e96f2f" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -357,9 +357,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - fb796ad0-1aa5-4dac-82cc-cf7e50b7a7d9 + - e22aad44-3ad4-46c0-82a6-167d326df0fe X-Runtime: - - '0.012627' + - '0.014781' 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-cHccJn5u6nSdL5bTdF/etg==''; + style-src ''self'' http://localhost:3000 ''nonce-6IR+YkQLeE/77Bn5lUirqA==''; 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: - - b405ef57-8c53-40b5-b9ab-29d77f8b512c + - b6368e85-4411-4355-87ef-8de8e5ab60ae X-Runtime: - - '0.007577' + - '0.008099' 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/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-lqn5+38fC70eZqC7ZWeA1Q==''; + style-src ''self'' http://localhost:3000 ''nonce-vuyvLNvDt0rE+m9otgOskA==''; 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/"945f7c7731010ff2bfa8f3f3889c235c" + - W/"b9dd6d5b54697012fa8e870d86d958d3" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -475,9 +475,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 77b31ab0-a9f9-437e-aff5-219943a1f126 + - 95028ae8-89fb-41ed-a4ea-4647aa41d53a X-Runtime: - - '0.019207' + - '0.021409' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3