From 6abaff55e7e78b83bd03af9f370a1256e7271b4a Mon Sep 17 00:00:00 2001 From: halcy Date: Mon, 21 Nov 2022 22:34:12 +0200 Subject: Refresh tests --- tests/cassettes/test_log_in_password_to_file.yaml | 84 +++++++++++++++++++---- 1 file changed, 72 insertions(+), 12 deletions(-) (limited to 'tests/cassettes/test_log_in_password_to_file.yaml') diff --git a/tests/cassettes/test_log_in_password_to_file.yaml b/tests/cassettes/test_log_in_password_to_file.yaml index 374eeba..4737119 100644 --- a/tests/cassettes/test_log_in_password_to_file.yaml +++ b/tests/cassettes/test_log_in_password_to_file.yaml @@ -18,15 +18,15 @@ interactions: uri: http://localhost:3000/oauth/token response: body: - string: '{"access_token":"L3IE4vYCARqnn0Lf-vw6cv25LgHQmkS3m2C7sXvLZUs","token_type":"Bearer","scope":"read - write follow push","created_at":1668818568}' + string: '{"access_token":"FqJVFO8ln66-Bii2Ck1VKZ_sbKE-rxp2TvTDE2eO9Ww","token_type":"Bearer","scope":"read + write follow push","created_at":1669062300}' 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-r79Uaxa3X0YlODhzLbACnA==''; + style-src ''self'' http://localhost:3000 ''nonce-gVPSd/S/57q5V6Iq10S5Yg==''; 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 @@ -36,7 +36,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"23b2ebff741ebeceacaa89e052573bff" + - W/"01955ddf3d96c9c9f4856825a0781218" Pragma: - no-cache Referrer-Policy: @@ -54,9 +54,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 96822ec3-748a-4610-9102-1fa70cee8638 + - 21d2203c-0c7c-495f-83a2-309ebec654cb X-Runtime: - - '0.071549' + - '0.055525' X-XSS-Protection: - 1; mode=block status: @@ -70,7 +70,67 @@ interactions: Accept-Encoding: - gzip, deflate Authorization: - - Bearer L3IE4vYCARqnn0Lf-vw6cv25LgHQmkS3m2C7sXvLZUs + - Bearer FqJVFO8ln66-Bii2Ck1VKZ_sbKE-rxp2TvTDE2eO9Ww + Connection: + - keep-alive + User-Agent: + - tests/v311 + method: GET + uri: http://localhost:3000/api/v1/instance/ + response: + body: + 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-HQspDM6YYUj7ry/sxtRwaA==''; + 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 + ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' + ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; + worker-src ''self'' blob: http://localhost:3000' + Content-Type: + - application/json; charset=utf-8 + Date: + - Mon, 21 Nov 2022 20:25:00 GMT + ETag: + - W/"bf317ffab393d8d1da7195269f28968a" + Referrer-Policy: + - strict-origin-when-cross-origin + Transfer-Encoding: + - chunked + Vary: + - Accept, Origin + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Frame-Options: + - SAMEORIGIN + X-Permitted-Cross-Domain-Policies: + - none + X-Request-Id: + - e53747bb-32a0-4a9f-815f-23f10ec82488 + X-Runtime: + - '0.018548' + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Authorization: + - Bearer FqJVFO8ln66-Bii2Ck1VKZ_sbKE-rxp2TvTDE2eO9Ww Connection: - keep-alive User-Agent: @@ -79,14 +139,14 @@ interactions: uri: http://localhost:3000/api/v1/accounts/verify_credentials response: body: - string: '{"id":"109367691345321436","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-19T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","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":"2022-11-19","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}' + string: '{"id":"109383665090212021","username":"mastodonpy_test_2","acct":"mastodonpy_test_2","display_name":"","locked":false,"bot":false,"discoverable":true,"group":false,"created_at":"2022-11-21T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test_2","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":"2022-11-21","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}' 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-KF0wN7zMxsZ3zX+iLMm56w==''; + style-src ''self'' http://localhost:3000 ''nonce-0wTXS9qor2G6JHhLgpDCKA==''; 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 @@ -96,7 +156,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"123660d8dcd4cce594a2575203716b01" + - W/"0de8ef1474de038f23bea37330c5b2b1" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -112,9 +172,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 8f6eef82-ea6c-47d5-86a5-b232f92110d7 + - 05d6111a-3743-4f42-9dca-0a5a7ecdc77e X-Runtime: - - '0.068169' + - '0.011463' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3