aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_media_post_file.yaml')
-rw-r--r--tests/cassettes/test_media_post_file.yaml82
1 files changed, 11 insertions, 71 deletions
diff --git a/tests/cassettes/test_media_post_file.yaml b/tests/cassettes/test_media_post_file.yaml
index 057466d..5c8f911 100644
--- a/tests/cassettes/test_media_post_file.yaml
+++ b/tests/cassettes/test_media_post_file.yaml
@@ -1,69 +1,9 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: null
4 headers:
5 Accept:
6 - '*/*'
7 Accept-Encoding:
8 - gzip, deflate
9 Authorization:
10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
11 Connection:
12 - keep-alive
13 User-Agent:
14 - tests/v311
15 method: GET
16 uri: http://localhost:3000/api/v1/instance/
17 response:
18 body:
19 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":[]}'
20 headers:
21 Cache-Control:
22 - max-age=180, public
23 Content-Security-Policy:
24 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
25 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
26 style-src ''self'' http://localhost:3000 ''nonce-zQCweWlsx12J0nH8fhE0xw=='';
27 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
28 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
29 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
30 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
31 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
32 worker-src ''self'' blob: http://localhost:3000'
33 Content-Type:
34 - application/json; charset=utf-8
35 Date:
36 - Sun, 13 Nov 2022 16:30:38 GMT
37 ETag:
38 - W/"bf317ffab393d8d1da7195269f28968a"
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 - 75fbee3e-337f-4b06-a883-00f85c5bada2
55 X-Runtime:
56 - '0.014304'
57 X-XSS-Protection:
58 - 1; mode=block
59 status:
60 code: 200
61 message: OK
62- request:
63 body: !!binary | 3 body: !!binary |
64 LS1lNjBlYzhjYWFmNmM2YTZjYWNjOTdkNmEwMjI3NzY1OA0KQ29udGVudC1EaXNwb3NpdGlvbjog 4 LS01OTc5OTNiODc2MGM0ZWQ0NWRiNmU1ZDUyNGVkZTI0Mg0KQ29udGVudC1EaXNwb3NpdGlvbjog
65 Zm9ybS1kYXRhOyBuYW1lPSJmaWxlIjsgZmlsZW5hbWU9Im1hc3RvZG9ucHl1cGxvYWRfMTY2ODM1 5 Zm9ybS1kYXRhOyBuYW1lPSJmaWxlIjsgZmlsZW5hbWU9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wEky3zs 941 dtqVKgaCiiCrnK5pkwMTGX4pUqBTtsYnLjJ4xUrWDGZB1d1z+KVKguWW3ctzMCb7u1NAIwEky3zs
1002 vWlSoIzwuWI/YpgkyI8qxk4wZ/WlSoGNPcbo46Oebs70qVKg/9kNCi0tZTYwZWM4Y2FhZjZjNmE2 942 vWlSoIzwuWI/YpgkyI8qxk4wZ/WlSoGNPcbo46Oebs70qVKg/9kNCi0tNTk3OTkzYjg3NjBjNGVk
1003 Y2FjYzk3ZDZhMDIyNzc2NTgtLQ0K 943 NDVkYjZlNWQ1MjRlZGUyNDItLQ0K
1004 headers: 944 headers:
1005 Accept: 945 Accept:
1006 - '*/*' 946 - '*/*'
@@ -1013,21 +953,21 @@ interactions:
1013 Content-Length: 953 Content-Length:
1014 - '53544' 954 - '53544'
1015 Content-Type: 955 Content-Type:
1016 - multipart/form-data; boundary=e60ec8caaf6c6a6cacc97d6a02277658 956 - multipart/form-data; boundary=597993b8760c4ed45db6e5d524ede242
1017 User-Agent: 957 User-Agent:
1018 - tests/v311 958 - tests/v311
1019 method: POST 959 method: POST
1020 uri: http://localhost:3000/api/v2/media 960 uri: http://localhost:3000/api/v2/media
1021 response: 961 response:
1022 body: 962 body:
1023 string: '{"id":"109337446888883292","type":"image","url":"http://localhost:3000/system/media_attachments/files/109/337/446/888/883/292/original/d841d2f1b363926a.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/109/337/446/888/883/292/small/d841d2f1b363926a.jpg","remote_url":null,"preview_remote_url":null,"text_url":null,"meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":480,"height":480,"size":"480x480","aspect":1.0}},"description":null,"blurhash":"UGD9YhIn00j[NFofR%M{IURj%Ms;D%of%MR%"}' 963 string: '{"id":"109367696637489117","type":"image","url":"http://localhost:3000/system/media_attachments/files/109/367/696/637/489/117/original/e56d7df42a964500.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/109/367/696/637/489/117/small/e56d7df42a964500.jpg","remote_url":null,"preview_remote_url":null,"text_url":null,"meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":480,"height":480,"size":"480x480","aspect":1.0}},"description":null,"blurhash":"UGD9YhIn00j[NFofR%M{IURj%Ms;D%of%MR%"}'
1024 headers: 964 headers:
1025 Cache-Control: 965 Cache-Control:
1026 - no-store 966 - no-store
1027 Content-Security-Policy: 967 Content-Security-Policy:
1028 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 968 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
1029 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 969 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
1030 style-src ''self'' http://localhost:3000 ''nonce-W4C6Aqv9meKkbM2s2SjhzA==''; 970 style-src ''self'' http://localhost:3000 ''nonce-LlrIvM/0/CcP5OwEzNCe4A=='';
1031 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 971 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
1032 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 972 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
1033 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 973 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -1037,7 +977,7 @@ interactions:
1037 Content-Type: 977 Content-Type:
1038 - application/json; charset=utf-8 978 - application/json; charset=utf-8
1039 ETag: 979 ETag:
1040 - W/"72145de6b98ec187b066bc370442ffb3" 980 - W/"71a29db36eb82c13b3df6f6bcf8a026f"
1041 Referrer-Policy: 981 Referrer-Policy:
1042 - strict-origin-when-cross-origin 982 - strict-origin-when-cross-origin
1043 Transfer-Encoding: 983 Transfer-Encoding:
@@ -1053,9 +993,9 @@ interactions:
1053 X-Permitted-Cross-Domain-Policies: 993 X-Permitted-Cross-Domain-Policies:
1054 - none 994 - none
1055 X-Request-Id: 995 X-Request-Id:
1056 - c08712b2-b1bd-4588-ae7f-a3c1f4173fed 996 - 94968497-1d3c-4858-bd67-4fa39d320883
1057 X-Runtime: 997 X-Runtime:
1058 - '0.136687' 998 - '0.142103'
1059 X-XSS-Protection: 999 X-XSS-Protection:
1060 - 1; mode=block 1000 - 1; mode=block
1061 status: 1001 status:
Powered by cgit v1.2.3 (git 2.41.0)