diff options
Diffstat (limited to 'tests/cassettes/test_verify_version.yaml')
-rw-r--r-- | tests/cassettes/test_verify_version.yaml | 225 |
1 files changed, 159 insertions, 66 deletions
diff --git a/tests/cassettes/test_verify_version.yaml b/tests/cassettes/test_verify_version.yaml index a165268..b09c74d 100644 --- a/tests/cassettes/test_verify_version.yaml +++ b/tests/cassettes/test_verify_version.yaml | |||
@@ -2,88 +2,181 @@ 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 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 7 | Accept-Encoding: |
8 | Connection: [keep-alive] | 8 | - gzip, deflate |
9 | User-Agent: [python-requests/2.18.4] | 9 | Authorization: |
10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
11 | Connection: | ||
12 | - keep-alive | ||
13 | User-Agent: | ||
14 | - tests/v311 | ||
10 | method: GET | 15 | method: GET |
11 | uri: http://localhost:3000/api/v1/instance/ | 16 | uri: http://localhost:3000/api/v1/instance/ |
12 | response: | 17 | response: |
13 | 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":1,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} | 18 | body: |
19 | 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":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":[]}' | ||
14 | headers: | 20 | headers: |
15 | Cache-Control: ['max-age=180, public'] | 21 | Cache-Control: |
16 | Content-Type: [application/json; charset=utf-8] | 22 | - max-age=180, public |
17 | Date: ['Sat, 22 Feb 2020 19:28:14 GMT'] | 23 | Content-Security-Policy: |
18 | ETag: [W/"7ac51e4e7519042ec38c63400c9f91c7"] | 24 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
19 | Referrer-Policy: [strict-origin-when-cross-origin] | 25 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
20 | Transfer-Encoding: [chunked] | 26 | style-src ''self'' http://localhost:3000 ''nonce-RgSFz9cl6nZQNkufT7V0lw==''; |
21 | Vary: ['Accept-Encoding, Origin'] | 27 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
22 | X-Content-Type-Options: [nosniff] | 28 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
23 | X-Download-Options: [noopen] | 29 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
24 | X-Frame-Options: [SAMEORIGIN] | 30 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
25 | X-Permitted-Cross-Domain-Policies: [none] | 31 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
26 | X-Request-Id: [f0701b15-f950-4643-a2b9-f3acbe931b53] | 32 | worker-src ''self'' blob: http://localhost:3000' |
27 | X-Runtime: ['0.070816'] | 33 | Content-Type: |
28 | X-XSS-Protection: [1; mode=block] | 34 | - application/json; charset=utf-8 |
29 | content-length: ['397'] | 35 | Date: |
30 | status: {code: 200, message: OK} | 36 | - Mon, 07 Nov 2022 19:54:35 GMT |
37 | ETag: | ||
38 | - W/"a17de89b698f0c42f267e69340e11e47" | ||
39 | Referrer-Policy: | ||
40 | - strict-origin-when-cross-origin | ||
41 | Transfer-Encoding: | ||
42 | - chunked | ||
43 | Vary: | ||
44 | - Accept, Origin | ||
45 | X-Content-Type-Options: | ||
46 | - nosniff | ||
47 | X-Download-Options: | ||
48 | - noopen | ||
49 | X-Frame-Options: | ||
50 | - SAMEORIGIN | ||
51 | X-Permitted-Cross-Domain-Policies: | ||
52 | - none | ||
53 | X-Request-Id: | ||
54 | - ce88fecc-e537-4cd5-b26c-4c5f4ab19339 | ||
55 | X-Runtime: | ||
56 | - '0.022573' | ||
57 | X-XSS-Protection: | ||
58 | - 1; mode=block | ||
59 | status: | ||
60 | code: 200 | ||
61 | message: OK | ||
31 | - request: | 62 | - request: |
32 | body: null | 63 | body: null |
33 | headers: | 64 | headers: |
34 | Accept: ['*/*'] | 65 | Accept: |
35 | Accept-Encoding: ['gzip, deflate'] | 66 | - '*/*' |
36 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 67 | Accept-Encoding: |
37 | Connection: [keep-alive] | 68 | - gzip, deflate |
38 | User-Agent: [python-requests/2.18.4] | 69 | Authorization: |
70 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
71 | Connection: | ||
72 | - keep-alive | ||
73 | User-Agent: | ||
74 | - tests/v311 | ||
39 | method: GET | 75 | method: GET |
40 | uri: http://localhost:3000/api/v1/instance/ | 76 | uri: http://localhost:3000/api/v1/instance/ |
41 | response: | 77 | response: |
42 | 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":1,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} | 78 | body: |
79 | 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":[]}' | ||
43 | headers: | 80 | headers: |
44 | Cache-Control: ['max-age=180, public'] | 81 | Cache-Control: |
45 | Content-Type: [application/json; charset=utf-8] | 82 | - max-age=180, public |
46 | Date: ['Sat, 22 Feb 2020 19:28:14 GMT'] | 83 | Content-Security-Policy: |
47 | ETag: [W/"7ac51e4e7519042ec38c63400c9f91c7"] | 84 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
48 | Referrer-Policy: [strict-origin-when-cross-origin] | 85 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
49 | Transfer-Encoding: [chunked] | 86 | style-src ''self'' http://localhost:3000 ''nonce-xqvdMYtGIS/iJz+zCLvGZQ==''; |
50 | Vary: ['Accept-Encoding, Origin'] | 87 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
51 | X-Content-Type-Options: [nosniff] | 88 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
52 | X-Download-Options: [noopen] | 89 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
53 | X-Frame-Options: [SAMEORIGIN] | 90 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
54 | X-Permitted-Cross-Domain-Policies: [none] | 91 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
55 | X-Request-Id: [cdad7c77-1ce4-4ca9-be29-c66f54d5d5b3] | 92 | worker-src ''self'' blob: http://localhost:3000' |
56 | X-Runtime: ['0.044544'] | 93 | Content-Type: |
57 | X-XSS-Protection: [1; mode=block] | 94 | - application/json; charset=utf-8 |
58 | content-length: ['397'] | 95 | Date: |
59 | status: {code: 200, message: OK} | 96 | - Mon, 07 Nov 2022 19:54:35 GMT |
97 | ETag: | ||
98 | - W/"45319ebd79e4bcdb5bf907c47f95d0a1" | ||
99 | Referrer-Policy: | ||
100 | - strict-origin-when-cross-origin | ||
101 | Transfer-Encoding: | ||
102 | - chunked | ||
103 | Vary: | ||
104 | - Accept, Origin | ||
105 | X-Content-Type-Options: | ||
106 | - nosniff | ||
107 | X-Download-Options: | ||
108 | - noopen | ||
109 | X-Frame-Options: | ||
110 | - SAMEORIGIN | ||
111 | X-Permitted-Cross-Domain-Policies: | ||
112 | - none | ||
113 | X-Request-Id: | ||
114 | - 756a2fe2-23b0-4424-8062-d48dc6c4c327 | ||
115 | X-Runtime: | ||
116 | - '0.013092' | ||
117 | X-XSS-Protection: | ||
118 | - 1; mode=block | ||
119 | status: | ||
120 | code: 200 | ||
121 | message: OK | ||
60 | - request: | 122 | - request: |
61 | body: null | 123 | body: null |
62 | headers: | 124 | headers: |
63 | Accept: ['*/*'] | 125 | Accept: |
64 | Accept-Encoding: ['gzip, deflate'] | 126 | - '*/*' |
65 | Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] | 127 | Accept-Encoding: |
66 | Connection: [keep-alive] | 128 | - gzip, deflate |
67 | User-Agent: [python-requests/2.18.4] | 129 | Authorization: |
130 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN | ||
131 | Connection: | ||
132 | - keep-alive | ||
133 | User-Agent: | ||
134 | - tests/v311 | ||
68 | method: GET | 135 | method: GET |
69 | uri: http://localhost:3000/api/v1/instance/ | 136 | uri: http://localhost:3000/api/v1/instance/ |
70 | response: | 137 | response: |
71 | 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":1,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} | 138 | body: |
139 | 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":[]}' | ||
72 | headers: | 140 | headers: |
73 | Cache-Control: ['max-age=180, public'] | 141 | Cache-Control: |
74 | Content-Type: [application/json; charset=utf-8] | 142 | - max-age=180, public |
75 | Date: ['Sat, 22 Feb 2020 19:28:14 GMT'] | 143 | Content-Security-Policy: |
76 | ETag: [W/"7ac51e4e7519042ec38c63400c9f91c7"] | 144 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
77 | Referrer-Policy: [strict-origin-when-cross-origin] | 145 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
78 | Transfer-Encoding: [chunked] | 146 | style-src ''self'' http://localhost:3000 ''nonce-KEzmb7ccvrBzEsOHFG8BiQ==''; |
79 | Vary: ['Accept-Encoding, Origin'] | 147 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
80 | X-Content-Type-Options: [nosniff] | 148 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
81 | X-Download-Options: [noopen] | 149 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
82 | X-Frame-Options: [SAMEORIGIN] | 150 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' |
83 | X-Permitted-Cross-Domain-Policies: [none] | 151 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; |
84 | X-Request-Id: [6e2b4633-ca82-47a3-bcaf-18dcdc8f67b1] | 152 | worker-src ''self'' blob: http://localhost:3000' |
85 | X-Runtime: ['0.046345'] | 153 | Content-Type: |
86 | X-XSS-Protection: [1; mode=block] | 154 | - application/json; charset=utf-8 |
87 | content-length: ['397'] | 155 | Date: |
88 | status: {code: 200, message: OK} | 156 | - Mon, 07 Nov 2022 19:54:35 GMT |
157 | ETag: | ||
158 | - W/"45319ebd79e4bcdb5bf907c47f95d0a1" | ||
159 | Referrer-Policy: | ||
160 | - strict-origin-when-cross-origin | ||
161 | Transfer-Encoding: | ||
162 | - chunked | ||
163 | Vary: | ||
164 | - Accept, Origin | ||
165 | X-Content-Type-Options: | ||
166 | - nosniff | ||
167 | X-Download-Options: | ||
168 | - noopen | ||
169 | X-Frame-Options: | ||
170 | - SAMEORIGIN | ||
171 | X-Permitted-Cross-Domain-Policies: | ||
172 | - none | ||
173 | X-Request-Id: | ||
174 | - ba0a010f-2e94-4cb4-8a0f-e3489f5fae24 | ||
175 | X-Runtime: | ||
176 | - '0.018419' | ||
177 | X-XSS-Protection: | ||
178 | - 1; mode=block | ||
179 | status: | ||
180 | code: 200 | ||
181 | message: OK | ||
89 | version: 1 | 182 | version: 1 |