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_app_account_create.yaml | 52 ++++++++++++++-------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'tests/cassettes/test_app_account_create.yaml') diff --git a/tests/cassettes/test_app_account_create.yaml b/tests/cassettes/test_app_account_create.yaml index 1478f52..024db62 100644 --- a/tests/cassettes/test_app_account_create.yaml +++ b/tests/cassettes/test_app_account_create.yaml @@ -18,14 +18,14 @@ interactions: uri: http://localhost:3000/api/v1/apps response: body: - string: '{"id":"2","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"y1kQMo51iTqe-Qn5OSp4DcAkyGhRx6gN8c7kX0GvlVU","client_secret":"vUkylcdbR0cyzGi_ufOBAvHG62J1ylhSAU9tn_en96E","vapid_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' + string: '{"id":"2","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"GyGwG_h92z1F61g-fZEoz2PLVS6FINeOtwKYs2nsy0w","client_secret":"zvpc74o82B7RgdORoWoYo0nxC8CDtoXds_ZvT9Px4fY","vapid_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}' 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-Z7I2rE1EEPiaowZZKSxSNQ==''; + style-src ''self'' http://localhost:3000 ''nonce-/d1v4DqcK5/TgWX7GNHjVQ==''; 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 @@ -35,7 +35,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"55aed2ae4f7388e3a3d1ad231530cb80" + - W/"4ce9809dcd86cc16beb029986d717234" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -51,9 +51,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - c5b53619-b3de-4324-8802-3e5179eb6217 + - e1af1699-1f16-46b3-bffc-725af31bab1c X-Runtime: - - '0.012107' + - '0.014188' X-XSS-Protection: - 1; mode=block status: @@ -74,14 +74,14 @@ interactions: uri: http://localhost:3000/api/v1/instance/ response: body: - string: '{"uri":"localhost:3000","title":"Mastodon","short_description":"","description":"","email":"","version":"4.0.0rc1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":0,"domain_count":0},"thumbnail":"http://localhost:3000/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png","languages":["en"],"registrations":true,"approval_required":false,"invites_enabled":true,"configuration":{"accounts":{"max_featured_tags":10},"statuses":{"max_characters":500,"max_media_attachments":4,"characters_reserved_per_url":23},"media_attachments":{"supported_mime_types":["image/jpeg","image/png","image/gif","image/heic","image/heif","image/webp","image/avif","video/webm","video/mp4","video/quicktime","video/ogg","audio/wave","audio/wav","audio/x-wav","audio/x-pn-wave","audio/vnd.wave","audio/ogg","audio/vorbis","audio/mpeg","audio/mp3","audio/webm","audio/flac","audio/aac","audio/m4a","audio/x-m4a","audio/mp4","audio/3gpp","video/x-ms-asf"],"image_size_limit":10485760,"image_matrix_limit":16777216,"video_size_limit":41943040,"video_frame_rate_limit":60,"video_matrix_limit":2304000},"polls":{"max_options":4,"max_characters_per_option":50,"min_expiration":300,"max_expiration":2629746}},"contact_account":null,"rules":[]}' + string: '{"uri":"localhost:3000","title":"Mastodon","short_description":"","description":"","email":"","version":"4.0.0rc2","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":1,"domain_count":0},"thumbnail":"http://localhost:3000/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png","languages":["en"],"registrations":true,"approval_required":false,"invites_enabled":true,"configuration":{"accounts":{"max_featured_tags":10},"statuses":{"max_characters":500,"max_media_attachments":4,"characters_reserved_per_url":23},"media_attachments":{"supported_mime_types":["image/jpeg","image/png","image/gif","image/heic","image/heif","image/webp","image/avif","video/webm","video/mp4","video/quicktime","video/ogg","audio/wave","audio/wav","audio/x-wav","audio/x-pn-wave","audio/vnd.wave","audio/ogg","audio/vorbis","audio/mpeg","audio/mp3","audio/webm","audio/flac","audio/aac","audio/m4a","audio/x-m4a","audio/mp4","audio/3gpp","video/x-ms-asf"],"image_size_limit":10485760,"image_matrix_limit":16777216,"video_size_limit":41943040,"video_frame_rate_limit":60,"video_matrix_limit":2304000},"polls":{"max_options":4,"max_characters_per_option":50,"min_expiration":300,"max_expiration":2629746}},"contact_account":null,"rules":[]}' headers: Cache-Control: - max-age=180, public 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-zDrB5n/9fTsJOKEzD8wy6Q==''; + style-src ''self'' http://localhost:3000 ''nonce-a0+4u/npIPiF7Sn8xwZI9Q==''; 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 @@ -91,9 +91,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 07 Nov 2022 19:54:35 GMT + - Sun, 13 Nov 2022 13:14:46 GMT ETag: - - W/"45319ebd79e4bcdb5bf907c47f95d0a1" + - W/"bf317ffab393d8d1da7195269f28968a" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -109,16 +109,16 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 1f49f4cd-3eac-4680-9e73-abc5860a2c68 + - a68915f9-8e74-4a79-b071-bbf2b04e7b3b X-Runtime: - - '0.012674' + - '0.020083' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: - body: scope=read+write+follow+push&client_id=y1kQMo51iTqe-Qn5OSp4DcAkyGhRx6gN8c7kX0GvlVU&client_secret=vUkylcdbR0cyzGi_ufOBAvHG62J1ylhSAU9tn_en96E&grant_type=client_credentials + body: scope=read+write+follow+push&client_id=GyGwG_h92z1F61g-fZEoz2PLVS6FINeOtwKYs2nsy0w&client_secret=zvpc74o82B7RgdORoWoYo0nxC8CDtoXds_ZvT9Px4fY&grant_type=client_credentials headers: Accept: - '*/*' @@ -136,15 +136,15 @@ interactions: uri: http://localhost:3000/oauth/token response: body: - string: '{"access_token":"L1hGcfjMpk7cEduCSOvsW0AxG4F69vsOKBlVjwc7qGc","token_type":"Bearer","scope":"read - write follow push","created_at":1667850875}' + string: '{"access_token":"OhQ7OweaS7DciM3k2qxfLos1wELLcGHqzTsok348V9k","token_type":"Bearer","scope":"read + write follow push","created_at":1668345286}' 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-QhneeHlWNQGN4ZzPo5AGlA==''; + style-src ''self'' http://localhost:3000 ''nonce-zE4IY+Oi76RxjNHXAeLT4Q==''; 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 @@ -154,7 +154,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"7af583cf906052620174ef9d3333f6a2" + - W/"74caf241dcf699e68305f47ae4262e1a" Pragma: - no-cache Referrer-Policy: @@ -172,23 +172,23 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 3567251f-9195-4b80-808d-1964781011df + - dc842b73-48f2-4441-8ce7-867ca25cf22c X-Runtime: - - '0.011005' + - '0.011696' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: - body: username=coolguy75493&password=swordfish&email=email%40localhost75493&agreement=1&locale=en&client_id=y1kQMo51iTqe-Qn5OSp4DcAkyGhRx6gN8c7kX0GvlVU&client_secret=vUkylcdbR0cyzGi_ufOBAvHG62J1ylhSAU9tn_en96E + body: username=coolguy07523&password=swordfish&email=email%40localhost07523&agreement=1&locale=en&client_id=GyGwG_h92z1F61g-fZEoz2PLVS6FINeOtwKYs2nsy0w&client_secret=zvpc74o82B7RgdORoWoYo0nxC8CDtoXds_ZvT9Px4fY headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - - Bearer L1hGcfjMpk7cEduCSOvsW0AxG4F69vsOKBlVjwc7qGc + - Bearer OhQ7OweaS7DciM3k2qxfLos1wELLcGHqzTsok348V9k Connection: - keep-alive Content-Length: @@ -201,15 +201,15 @@ interactions: uri: http://localhost:3000/api/v1/accounts response: body: - string: '{"access_token":"aSBIxEzhi5SpWsN9R7BWUz56MR4ifrZ2Yc0U6tW5N-g","token_type":"Bearer","scope":"read - write follow push","created_at":1667850875}' + string: '{"access_token":"2ltccxbHFUzKDV7zqkhxy1--rWG-VQqksA6fx5zHhmI","token_type":"Bearer","scope":"read + write follow push","created_at":1668345287}' 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-58qKmLv+dPNf3iXu/e/mBA==''; + style-src ''self'' http://localhost:3000 ''nonce-cs2mopakGd+1T5g8G2rWOw==''; 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/"fbe8aae776b4d8aa4b8c694b1a167bd4" + - W/"84fdf4bd08fce20526078de13709e42a" Pragma: - no-cache Referrer-Policy: @@ -237,9 +237,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - cf9f9be6-b1f4-46e8-99da-ab0d71e7e5d1 + - ba6977db-6d4a-4873-a9d2-ca7568587a99 X-Runtime: - - '0.097053' + - '0.079864' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3