aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-19 00:15:54 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-19 00:15:54 +0200
commit31a00f07c19bf057bca0834f541eae581cd80a0c (patch)
treeb175f341a9d42b6bbc170116c30ef5f97ae06082 /tests/cassettes_special/test_scheduled_status_long_part1.yaml
parente49cd0d53030085eea211eea8d840184f06f9ce0 (diff)
downloadmastodon.py-31a00f07c19bf057bca0834f541eae581cd80a0c.tar.gz
some more tests
Diffstat (limited to 'tests/cassettes_special/test_scheduled_status_long_part1.yaml')
-rw-r--r--tests/cassettes_special/test_scheduled_status_long_part1.yaml133
1 files changed, 133 insertions, 0 deletions
diff --git a/tests/cassettes_special/test_scheduled_status_long_part1.yaml b/tests/cassettes_special/test_scheduled_status_long_part1.yaml
new file mode 100644
index 0000000..0d83523
--- /dev/null
+++ b/tests/cassettes_special/test_scheduled_status_long_part1.yaml
@@ -0,0 +1,133 @@
1interactions:
2- request:
3 body: status=please+ensure+maximum+headroom+at+2022-11-19+00%3A13%3A28.641336&scheduled_at=2022-11-18T22%3A13%3A28%2B00%3A00
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 Content-Length:
14 - '118'
15 Content-Type:
16 - application/x-www-form-urlencoded
17 User-Agent:
18 - tests/v311
19 method: POST
20 uri: http://localhost:3000/api/v1/statuses
21 response:
22 body:
23 string: '{"id":"5","scheduled_at":"2022-11-18T22:13:28.000Z","params":{"text":"please
24 ensure maximum headroom at 2022-11-19 00:13:28.641336","media_ids":null,"sensitive":null,"spoiler_text":null,"visibility":null,"language":null,"scheduled_at":null,"poll":null,"idempotency":null,"with_rate_limit":false,"in_reply_to_id":null,"application_id":1234567890123456},"media_attachments":[]}'
25 headers:
26 Cache-Control:
27 - no-store
28 Content-Security-Policy:
29 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
30 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
31 style-src ''self'' http://localhost:3000 ''nonce-oDT7L0vwLx8ThpkVmR2WkQ=='';
32 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
33 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
34 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
35 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
36 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
37 worker-src ''self'' blob: http://localhost:3000'
38 Content-Type:
39 - application/json; charset=utf-8
40 ETag:
41 - W/"961ec598899e68bf0f28ef2d0339120d"
42 Referrer-Policy:
43 - strict-origin-when-cross-origin
44 Transfer-Encoding:
45 - chunked
46 Vary:
47 - Accept, Origin
48 X-Content-Type-Options:
49 - nosniff
50 X-Download-Options:
51 - noopen
52 X-Frame-Options:
53 - SAMEORIGIN
54 X-Permitted-Cross-Domain-Policies:
55 - none
56 X-RateLimit-Limit:
57 - '300'
58 X-RateLimit-Remaining:
59 - '300'
60 X-RateLimit-Reset:
61 - '2022-11-19T00:00:00.671086Z'
62 X-Request-Id:
63 - 3ccd3249-4aa7-4366-8722-caaa9c427e6f
64 X-Runtime:
65 - '0.025260'
66 X-XSS-Protection:
67 - 1; mode=block
68 status:
69 code: 200
70 message: OK
71- request:
72 body: null
73 headers:
74 Accept:
75 - '*/*'
76 Accept-Encoding:
77 - gzip, deflate
78 Authorization:
79 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
80 Connection:
81 - keep-alive
82 User-Agent:
83 - tests/v311
84 method: GET
85 uri: http://localhost:3000/api/v1/scheduled_statuses
86 response:
87 body:
88 string: '[{"id":"5","scheduled_at":"2022-11-18T22:13:28.000Z","params":{"poll":null,"text":"please
89 ensure maximum headroom at 2022-11-19 00:13:28.641336","language":null,"media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null,"with_rate_limit":false},"media_attachments":[]},{"id":"4","scheduled_at":"2022-11-18T22:12:21.000Z","params":{"poll":null,"text":"please
90 ensure maximum headroom at 2022-11-19 00:12:21.805020","language":null,"media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null,"with_rate_limit":false},"media_attachments":[]}]'
91 headers:
92 Cache-Control:
93 - no-store
94 Content-Security-Policy:
95 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
96 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
97 style-src ''self'' http://localhost:3000 ''nonce-vlVvEXWNgaJdWW23jKfZqA=='';
98 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
99 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
100 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
101 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
102 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
103 worker-src ''self'' blob: http://localhost:3000'
104 Content-Type:
105 - application/json; charset=utf-8
106 ETag:
107 - W/"41f6a2d732beea8c5ef0286133506b91"
108 Link:
109 - <http://localhost:3000/api/v1/scheduled_statuses?min_id=5>; rel="prev"
110 Referrer-Policy:
111 - strict-origin-when-cross-origin
112 Transfer-Encoding:
113 - chunked
114 Vary:
115 - Accept, Origin
116 X-Content-Type-Options:
117 - nosniff
118 X-Download-Options:
119 - noopen
120 X-Frame-Options:
121 - SAMEORIGIN
122 X-Permitted-Cross-Domain-Policies:
123 - none
124 X-Request-Id:
125 - 8194fc5d-2433-4359-8d25-3a0446703c61
126 X-Runtime:
127 - '0.011068'
128 X-XSS-Protection:
129 - 1; mode=block
130 status:
131 code: 200
132 message: OK
133version: 1
Powered by cgit v1.2.3 (git 2.41.0)