aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_instance.yaml')
-rw-r--r--tests/cassettes/test_instance.yaml75
1 files changed, 53 insertions, 22 deletions
diff --git a/tests/cassettes/test_instance.yaml b/tests/cassettes/test_instance.yaml
index 3ac14fb..b291b30 100644
--- a/tests/cassettes/test_instance.yaml
+++ b/tests/cassettes/test_instance.yaml
@@ -2,30 +2,61 @@ 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":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":[]}'
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:40 GMT'] 23 Content-Security-Policy:
18 ETag: [W/"e6a3f8f16db0610d592698c7154a8eb3"] 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-I4rJ+5en3rRyZ0sFVzLK8Q=='';
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: [eb9c6490-fbfd-4b41-8599-42180c466adb] 32 worker-src ''self'' blob: http://localhost:3000'
27 X-Runtime: ['0.044979'] 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:43 GMT
37 ETag:
38 - W/"a7bf7a9cf56db01ebceec16e6ad68b76"
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 - 0542e230-c562-4457-ad0d-8a16987e3e0e
55 X-Runtime:
56 - '0.014146'
57 X-XSS-Protection:
58 - 1; mode=block
59 status:
60 code: 200
61 message: OK
31version: 1 62version: 1
Powered by cgit v1.2.3 (git 2.41.0)