diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-07 23:11:30 +0200 |
commit | 3277ca777821e76955fb26d80788939a311db9db (patch) | |
tree | bef0749a451464d00e59fb3c685e6eb6d69a8a78 /tests/cassettes/test_stream_healthy.yaml | |
parent | 33d1e17e2e75884abd6e0a8a3e4a4da388e97e55 (diff) | |
download | mastodon.py-3277ca777821e76955fb26d80788939a311db9db.tar.gz |
Initial test fixing pass. Four tests still fail.
Diffstat (limited to 'tests/cassettes/test_stream_healthy.yaml')
-rw-r--r-- | tests/cassettes/test_stream_healthy.yaml | 120 |
1 files changed, 84 insertions, 36 deletions
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: | |||
2 | - request: | 2 | - request: |
3 | body: null | 3 | body: null |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | - '*/*' |
7 | Connection: [keep-alive] | 7 | Accept-Encoding: |
8 | User-Agent: [python-requests/2.18.4] | 8 | - gzip, deflate |
9 | Connection: | ||
10 | - keep-alive | ||
11 | User-Agent: | ||
12 | - tests/v311 | ||
9 | method: GET | 13 | method: GET |
10 | uri: http://localhost:3000/api/v1/instance/ | 14 | uri: http://localhost:3000/api/v1/instance/ |
11 | response: | 15 | response: |
12 | 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}'} | 16 | body: |
17 | 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":[]}' | ||
13 | headers: | 18 | headers: |
14 | Cache-Control: ['max-age=180, public'] | 19 | Cache-Control: |
15 | Content-Type: [application/json; charset=utf-8] | 20 | - max-age=180, public |
16 | Date: ['Sat, 22 Feb 2020 19:30:50 GMT'] | 21 | Content-Security-Policy: |
17 | ETag: [W/"ae0b9ebba044d7ce36cd1878a0f486f0"] | 22 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
18 | Referrer-Policy: [strict-origin-when-cross-origin] | 23 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
19 | Transfer-Encoding: [chunked] | 24 | style-src ''self'' http://localhost:3000 ''nonce-IFylbF4oDsaIfFAG2GYmog==''; |
20 | Vary: ['Accept-Encoding, Origin'] | 25 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
21 | X-Content-Type-Options: [nosniff] | 26 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
22 | X-Download-Options: [noopen] | 27 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
23 | X-Frame-Options: [SAMEORIGIN] | 28 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
24 | X-Permitted-Cross-Domain-Policies: [none] | 29 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
25 | X-Request-Id: [59c55c0b-7c64-4cbf-8a8a-6323e4b30998] | 30 | worker-src ''self'' blob: http://localhost:3000' |
26 | X-Runtime: ['0.047892'] | 31 | Content-Type: |
27 | X-XSS-Protection: [1; mode=block] | 32 | - application/json; charset=utf-8 |
28 | content-length: ['397'] | 33 | Date: |
29 | status: {code: 200, message: OK} | 34 | - Mon, 07 Nov 2022 20:00:46 GMT |
35 | ETag: | ||
36 | - W/"a7bf7a9cf56db01ebceec16e6ad68b76" | ||
37 | Referrer-Policy: | ||
38 | - strict-origin-when-cross-origin | ||
39 | Transfer-Encoding: | ||
40 | - chunked | ||
41 | Vary: | ||
42 | - Accept, Origin | ||
43 | X-Content-Type-Options: | ||
44 | - nosniff | ||
45 | X-Download-Options: | ||
46 | - noopen | ||
47 | X-Frame-Options: | ||
48 | - SAMEORIGIN | ||
49 | X-Permitted-Cross-Domain-Policies: | ||
50 | - none | ||
51 | X-Request-Id: | ||
52 | - 4010ac00-ded5-4d20-9a76-a513f3d741b3 | ||
53 | X-Runtime: | ||
54 | - '0.013582' | ||
55 | X-XSS-Protection: | ||
56 | - 1; mode=block | ||
57 | status: | ||
58 | code: 200 | ||
59 | message: OK | ||
30 | - request: | 60 | - request: |
31 | body: null | 61 | body: null |
32 | headers: | 62 | headers: |
33 | Accept: ['*/*'] | 63 | Accept: |
34 | Accept-Encoding: ['gzip, deflate'] | 64 | - '*/*' |
35 | Connection: [keep-alive] | 65 | Accept-Encoding: |
36 | User-Agent: [python-requests/2.18.4] | 66 | - gzip, deflate |
67 | Connection: | ||
68 | - keep-alive | ||
69 | User-Agent: | ||
70 | - tests/v311 | ||
37 | method: GET | 71 | method: GET |
38 | uri: http://localhost:4000/api/v1/streaming/health | 72 | uri: http://localhost:4000/api/v1/streaming/health |
39 | response: | 73 | response: |
40 | body: {string: OK} | 74 | body: |
75 | string: OK | ||
41 | headers: | 76 | headers: |
42 | Access-Control-Allow-Headers: ['Authorization, Accept, Cache-Control'] | 77 | Access-Control-Allow-Headers: |
43 | Access-Control-Allow-Methods: ['GET, OPTIONS'] | 78 | - Authorization, Accept, Cache-Control |
44 | Access-Control-Allow-Origin: ['*'] | 79 | Access-Control-Allow-Methods: |
45 | Connection: [keep-alive] | 80 | - GET, OPTIONS |
46 | Content-Type: [text/plain] | 81 | Access-Control-Allow-Origin: |
47 | Date: ['Sat, 22 Feb 2020 19:30:50 GMT'] | 82 | - '*' |
48 | Transfer-Encoding: [chunked] | 83 | Connection: |
49 | X-Powered-By: [Express] | 84 | - keep-alive |
50 | X-Request-Id: [d9f58845-c03e-4e2b-b9ef-ecc189f6de53] | 85 | Content-Type: |
51 | status: {code: 200, message: OK} | 86 | - text/plain |
87 | Date: | ||
88 | - Mon, 07 Nov 2022 20:00:46 GMT | ||
89 | Keep-Alive: | ||
90 | - timeout=5 | ||
91 | Transfer-Encoding: | ||
92 | - chunked | ||
93 | X-Powered-By: | ||
94 | - Express | ||
95 | X-Request-Id: | ||
96 | - d7132c56-20ae-448e-941c-e6cc2f8949dd | ||
97 | status: | ||
98 | code: 200 | ||
99 | message: OK | ||
52 | version: 1 | 100 | version: 1 |