From 3277ca777821e76955fb26d80788939a311db9db Mon Sep 17 00:00:00 2001 From: halcy Date: Mon, 7 Nov 2022 23:11:30 +0200 Subject: Initial test fixing pass. Four tests still fail. --- tests/cassettes/test_stream_healthy.yaml | 120 +++++++++++++++++++++---------- 1 file changed, 84 insertions(+), 36 deletions(-) (limited to 'tests/cassettes/test_stream_healthy.yaml') diff --git a/tests/cassettes/test_stream_healthy.yaml b/tests/cassettes/test_stream_healthy.yaml index 1fec469..93bdd25 100644 --- a/tests/cassettes/test_stream_healthy.yaml +++ b/tests/cassettes/test_stream_healthy.yaml @@ -2,51 +2,99 @@ interactions: - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - tests/v311 method: GET uri: http://localhost:3000/api/v1/instance/ response: - body: {string: '{"uri":"localhost","title":"Mastodon","short_description":"","description":"","email":"","version":"3.1.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":5,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} + 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":5,"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-Type: [application/json; charset=utf-8] - Date: ['Sat, 22 Feb 2020 19:30:50 GMT'] - ETag: [W/"ae0b9ebba044d7ce36cd1878a0f486f0"] - Referrer-Policy: [strict-origin-when-cross-origin] - Transfer-Encoding: [chunked] - Vary: ['Accept-Encoding, Origin'] - X-Content-Type-Options: [nosniff] - X-Download-Options: [noopen] - X-Frame-Options: [SAMEORIGIN] - X-Permitted-Cross-Domain-Policies: [none] - X-Request-Id: [59c55c0b-7c64-4cbf-8a8a-6323e4b30998] - X-Runtime: ['0.047892'] - X-XSS-Protection: [1; mode=block] - content-length: ['397'] - status: {code: 200, message: OK} + 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-IFylbF4oDsaIfFAG2GYmog==''; + 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, 07 Nov 2022 20:00:46 GMT + ETag: + - W/"a7bf7a9cf56db01ebceec16e6ad68b76" + 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: + - 4010ac00-ded5-4d20-9a76-a513f3d741b3 + X-Runtime: + - '0.013582' + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK - request: body: null headers: - Accept: ['*/*'] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python-requests/2.18.4] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - tests/v311 method: GET uri: http://localhost:4000/api/v1/streaming/health response: - body: {string: OK} + body: + string: OK headers: - Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control'] - Access-Control-Allow-Methods: ['GET, OPTIONS'] - Access-Control-Allow-Origin: ['*'] - Connection: [keep-alive] - Content-Type: [text/plain] - Date: ['Sat, 22 Feb 2020 19:30:50 GMT'] - Transfer-Encoding: [chunked] - X-Powered-By: [Express] - X-Request-Id: [d9f58845-c03e-4e2b-b9ef-ecc189f6de53] - status: {code: 200, message: OK} + Access-Control-Allow-Headers: + - Authorization, Accept, Cache-Control + Access-Control-Allow-Methods: + - GET, OPTIONS + Access-Control-Allow-Origin: + - '*' + Connection: + - keep-alive + Content-Type: + - text/plain + Date: + - Mon, 07 Nov 2022 20:00:46 GMT + Keep-Alive: + - timeout=5 + Transfer-Encoding: + - chunked + X-Powered-By: + - Express + X-Request-Id: + - d7132c56-20ae-448e-941c-e6cc2f8949dd + status: + code: 200 + message: OK version: 1 -- cgit v1.2.3