From b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 15:33:10 +0200 Subject: Add support for timed mutes, fix tests to actually pass with new setup --- 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 85e10f1..56153f2 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":"109304268902557892","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00: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":"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}}' 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-N6/TvMWNk+BHdyhPWnKQiQ==''; + style-src ''self'' http://localhost:3000 ''nonce-4rNasD0GoXAZUhQrEBsCQA==''; 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/"2806d276d8ca861b8ad4afe38233637f" + - W/"045b82c55c495fceaaae2b0dc2b6d8db" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -49,16 +49,16 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 3d3ad8f8-d333-4cd7-befa-4a1a93e1bc69 + - b0beba31-4110-411e-be49-3c45e52af8bb X-Runtime: - - '0.020527' + - '0.012161' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: - body: id=109304268902557892&reblogs=1 + body: id=109336623096259500&reblogs=1 headers: Accept: - '*/*' @@ -75,17 +75,17 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/109304268902557892/follow + uri: http://localhost:3000/api/v1/accounts/109336623096259500/follow response: body: - string: '{"id":"109304268902557892","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":"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":""}' 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-9NoJtItuzoGmniDSY75JYQ==''; + style-src ''self'' http://localhost:3000 ''nonce-A0sMvmidqYpkLPoSQBA89g==''; 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/"328aa28d0debfcbfaef3df0c7630cbd8" + - W/"3db6c93f2af18b52d1b291d211927fba" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -115,11 +115,11 @@ interactions: X-RateLimit-Remaining: - '397' X-RateLimit-Reset: - - '2022-11-08T00:00:00.650878Z' + - '2022-11-14T00:00:00.303722Z' X-Request-Id: - - 0e7baeb8-bd2d-4657-a32c-179c783fc7c2 + - 3990331e-a4d1-4ba7-ba1c-88440b1993c8 X-Runtime: - - '0.021584' + - '0.021870' 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/109304268902557892/unpin + uri: http://localhost:3000/api/v1/accounts/109336623096259500/unpin response: body: - string: '{"id":"109304268902557892","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":"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":""}' 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-j+YOJ7CK2GWU1Sv/5zoTjA==''; + style-src ''self'' http://localhost:3000 ''nonce-CZ1BkhCKde48LUfHBzJRWw==''; 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/"328aa28d0debfcbfaef3df0c7630cbd8" + - W/"3db6c93f2af18b52d1b291d211927fba" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -177,9 +177,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - a018e317-f0e0-47a3-b902-eb0b7d3313d8 + - 3dea7b23-a61c-49f8-be7d-abafb517f938 X-Runtime: - - '0.013292' + - '0.014522' 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/109304268902557892/pin + uri: http://localhost:3000/api/v1/accounts/109336623096259500/pin response: body: - string: '{"id":"109304268902557892","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":"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":""}' 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-TvAbYEMkpE4Sr20jqGoi/A==''; + style-src ''self'' http://localhost:3000 ''nonce-wJFxh4rrPmN3wNNzK+P6TA==''; 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/"f48874e2fd96b9bad6a6f1c14c17a01b" + - W/"106fb1e0d1df170beba8d9e0e6bf5848" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -237,9 +237,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 82d0f70b-e45b-4837-ad3c-bc6d500651d5 + - 460d3178-f034-4602-956b-9ddb11f1da48 X-Runtime: - - '0.015320' + - '0.023626' X-XSS-Protection: - 1; mode=block status: @@ -262,14 +262,14 @@ interactions: uri: http://localhost:3000/api/v1/endorsements response: body: - string: '[{"id":"109304268902557892","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00: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":"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":[]}]' 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-NNrf8oVgZUxvY+9FZ1rUQQ==''; + style-src ''self'' http://localhost:3000 ''nonce-dsTeHUXbJ701M4acFAaJ5g==''; 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/"556f11080e4d8472f8e5c4076996220f" + - W/"9816e3f5c9612e7a311f7f27c514202f" 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: - - 5849680a-06f9-4886-b4ce-8bfd69613285 + - 7834d476-f1f1-4d02-905f-2fc240350a1a X-Runtime: - - '0.013298' + - '0.014113' 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/109304268902557892/unpin + uri: http://localhost:3000/api/v1/accounts/109336623096259500/unpin response: body: - string: '{"id":"109304268902557892","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":"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":""}' 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-+EnllbPkEKp6NZviFhVMwQ==''; + style-src ''self'' http://localhost:3000 ''nonce-e5MNaBiMwVLVdEC6FhhAbA==''; 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/"328aa28d0debfcbfaef3df0c7630cbd8" + - W/"3db6c93f2af18b52d1b291d211927fba" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -357,9 +357,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - d9104e32-b972-447e-a712-dc44cccb0ef0 + - fb796ad0-1aa5-4dac-82cc-cf7e50b7a7d9 X-Runtime: - - '0.012262' + - '0.012627' 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-kAn0b4rZfa2UGuBQPJPkTA==''; + style-src ''self'' http://localhost:3000 ''nonce-cHccJn5u6nSdL5bTdF/etg==''; 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: - - ad3b7aba-7537-4752-a780-4f3585f1cfbe + - b405ef57-8c53-40b5-b9ab-29d77f8b512c X-Runtime: - - '0.006849' + - '0.007577' 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/109304268902557892/unfollow + uri: http://localhost:3000/api/v1/accounts/109336623096259500/unfollow response: body: - string: '{"id":"109304268902557892","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":"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":""}' 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-bAGUyGXC9nPaVWf0oPyd+w==''; + style-src ''self'' http://localhost:3000 ''nonce-lqn5+38fC70eZqC7ZWeA1Q==''; 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/"8d8caa68e50963507d45a12d820e86b0" + - W/"945f7c7731010ff2bfa8f3f3889c235c" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -475,9 +475,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - a67ef265-9f7e-44e9-98c6-0eb4d47c4c3a + - 77b31ab0-a9f9-437e-aff5-219943a1f126 X-Runtime: - - '0.019740' + - '0.019207' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3