aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_list_update.yaml')
-rw-r--r--tests/cassettes/test_list_update.yaml441
1 files changed, 316 insertions, 125 deletions
diff --git a/tests/cassettes/test_list_update.yaml b/tests/cassettes/test_list_update.yaml
index e97dcf9..9b3ac43 100644
--- a/tests/cassettes/test_list_update.yaml
+++ b/tests/cassettes/test_list_update.yaml
@@ -2,168 +2,359 @@ interactions:
2- request: 2- request:
3 body: title=ham+burglars 3 body: title=ham+burglars
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 Content-Length: ['18'] 9 Authorization:
10 Content-Type: [application/x-www-form-urlencoded] 10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
11 User-Agent: [python-requests/2.18.4] 11 Connection:
12 - keep-alive
13 Content-Length:
14 - '18'
15 Content-Type:
16 - application/x-www-form-urlencoded
17 User-Agent:
18 - tests/v311
12 method: POST 19 method: POST
13 uri: http://localhost:3000/api/v1/lists 20 uri: http://localhost:3000/api/v1/lists
14 response: 21 response:
15 body: {string: '{"id":"2","title":"ham burglars"}'} 22 body:
23 string: '{"id":"2","title":"ham burglars","replies_policy":"list"}'
16 headers: 24 headers:
17 Cache-Control: ['no-cache, no-store'] 25 Cache-Control:
18 Content-Type: [application/json; charset=utf-8] 26 - no-store
19 Referrer-Policy: [strict-origin-when-cross-origin] 27 Content-Security-Policy:
20 Transfer-Encoding: [chunked] 28 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
21 Vary: ['Accept-Encoding, Origin'] 29 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
22 X-Content-Type-Options: [nosniff] 30 style-src ''self'' http://localhost:3000 ''nonce-Pv/GBuAAMa3qc7+XUIbROg=='';
23 X-Download-Options: [noopen] 31 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
24 X-Frame-Options: [SAMEORIGIN] 32 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
25 X-Permitted-Cross-Domain-Policies: [none] 33 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
26 X-Request-Id: [2d216ce4-d046-4ce6-8ffa-fe21b3a4207c] 34 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
27 X-Runtime: ['0.038249'] 35 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
28 X-XSS-Protection: [1; mode=block] 36 worker-src ''self'' blob: http://localhost:3000'
29 content-length: ['33'] 37 Content-Type:
30 status: {code: 200, message: OK} 38 - application/json; charset=utf-8
39 ETag:
40 - W/"42a091c59c624647f21590eedf10b9f2"
41 Referrer-Policy:
42 - strict-origin-when-cross-origin
43 Transfer-Encoding:
44 - chunked
45 Vary:
46 - Accept, Origin
47 X-Content-Type-Options:
48 - nosniff
49 X-Download-Options:
50 - noopen
51 X-Frame-Options:
52 - SAMEORIGIN
53 X-Permitted-Cross-Domain-Policies:
54 - none
55 X-Request-Id:
56 - 07d581b8-de83-4c12-a056-f8553099da32
57 X-Runtime:
58 - '0.010852'
59 X-XSS-Protection:
60 - 1; mode=block
61 status:
62 code: 200
63 message: OK
31- request: 64- request:
32 body: title=fry+kids 65 body: title=fry+kids
33 headers: 66 headers:
34 Accept: ['*/*'] 67 Accept:
35 Accept-Encoding: ['gzip, deflate'] 68 - '*/*'
36 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 69 Accept-Encoding:
37 Connection: [keep-alive] 70 - gzip, deflate
38 Content-Length: ['14'] 71 Authorization:
39 Content-Type: [application/x-www-form-urlencoded] 72 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
40 User-Agent: [python-requests/2.18.4] 73 Connection:
74 - keep-alive
75 Content-Length:
76 - '14'
77 Content-Type:
78 - application/x-www-form-urlencoded
79 User-Agent:
80 - tests/v311
41 method: PUT 81 method: PUT
42 uri: http://localhost:3000/api/v1/lists/2 82 uri: http://localhost:3000/api/v1/lists/2
43 response: 83 response:
44 body: {string: '{"id":"2","title":"fry kids"}'} 84 body:
85 string: '{"id":"2","title":"fry kids","replies_policy":"list"}'
45 headers: 86 headers:
46 Cache-Control: ['no-cache, no-store'] 87 Cache-Control:
47 Content-Type: [application/json; charset=utf-8] 88 - no-store
48 Referrer-Policy: [strict-origin-when-cross-origin] 89 Content-Security-Policy:
49 Transfer-Encoding: [chunked] 90 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
50 Vary: ['Accept-Encoding, Origin'] 91 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
51 X-Content-Type-Options: [nosniff] 92 style-src ''self'' http://localhost:3000 ''nonce-CgARDm4AQi1slKqs6UyEng=='';
52 X-Download-Options: [noopen] 93 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
53 X-Frame-Options: [SAMEORIGIN] 94 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
54 X-Permitted-Cross-Domain-Policies: [none] 95 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
55 X-Request-Id: [fa18b925-40e5-43c0-9ba7-01c2e1d9a10e] 96 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
56 X-Runtime: ['0.043739'] 97 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
57 X-XSS-Protection: [1; mode=block] 98 worker-src ''self'' blob: http://localhost:3000'
58 content-length: ['29'] 99 Content-Type:
59 status: {code: 200, message: OK} 100 - application/json; charset=utf-8
101 ETag:
102 - W/"f966a31518632a639685eefce6cd7355"
103 Referrer-Policy:
104 - strict-origin-when-cross-origin
105 Transfer-Encoding:
106 - chunked
107 Vary:
108 - Accept, Origin
109 X-Content-Type-Options:
110 - nosniff
111 X-Download-Options:
112 - noopen
113 X-Frame-Options:
114 - SAMEORIGIN
115 X-Permitted-Cross-Domain-Policies:
116 - none
117 X-Request-Id:
118 - 6cee9ad4-79f8-491c-a13e-90a9c11f077a
119 X-Runtime:
120 - '0.010563'
121 X-XSS-Protection:
122 - 1; mode=block
123 status:
124 code: 200
125 message: OK
60- request: 126- request:
61 body: null 127 body: null
62 headers: 128 headers:
63 Accept: ['*/*'] 129 Accept:
64 Accept-Encoding: ['gzip, deflate'] 130 - '*/*'
65 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 131 Accept-Encoding:
66 Connection: [keep-alive] 132 - gzip, deflate
67 User-Agent: [python-requests/2.18.4] 133 Authorization:
134 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
135 Connection:
136 - keep-alive
137 User-Agent:
138 - tests/v311
68 method: GET 139 method: GET
69 uri: http://localhost:3000/api/v1/lists 140 uri: http://localhost:3000/api/v1/lists
70 response: 141 response:
71 body: {string: '[{"id":"2","title":"fry kids"}]'} 142 body:
143 string: '[{"id":"2","title":"fry kids","replies_policy":"list"}]'
72 headers: 144 headers:
73 Cache-Control: ['no-cache, no-store'] 145 Cache-Control:
74 Content-Type: [application/json; charset=utf-8] 146 - no-store
75 Referrer-Policy: [strict-origin-when-cross-origin] 147 Content-Security-Policy:
76 Transfer-Encoding: [chunked] 148 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
77 Vary: ['Accept-Encoding, Origin'] 149 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
78 X-Content-Type-Options: [nosniff] 150 style-src ''self'' http://localhost:3000 ''nonce-nLDYG+KOklFefZRV370WBQ=='';
79 X-Download-Options: [noopen] 151 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
80 X-Frame-Options: [SAMEORIGIN] 152 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
81 X-Permitted-Cross-Domain-Policies: [none] 153 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
82 X-Request-Id: [8b237b32-479f-4a63-a3f8-1aa3a11687f6] 154 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
83 X-Runtime: ['0.037253'] 155 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
84 X-XSS-Protection: [1; mode=block] 156 worker-src ''self'' blob: http://localhost:3000'
85 content-length: ['31'] 157 Content-Type:
86 status: {code: 200, message: OK} 158 - application/json; charset=utf-8
159 ETag:
160 - W/"af675d882258dae9d8a4dd23e7e37ba2"
161 Referrer-Policy:
162 - strict-origin-when-cross-origin
163 Transfer-Encoding:
164 - chunked
165 Vary:
166 - Accept, Origin
167 X-Content-Type-Options:
168 - nosniff
169 X-Download-Options:
170 - noopen
171 X-Frame-Options:
172 - SAMEORIGIN
173 X-Permitted-Cross-Domain-Policies:
174 - none
175 X-Request-Id:
176 - c283c25e-5d5f-48fa-8546-7d6df80fbfed
177 X-Runtime:
178 - '0.006671'
179 X-XSS-Protection:
180 - 1; mode=block
181 status:
182 code: 200
183 message: OK
87- request: 184- request:
88 body: null 185 body: null
89 headers: 186 headers:
90 Accept: ['*/*'] 187 Accept:
91 Accept-Encoding: ['gzip, deflate'] 188 - '*/*'
92 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 189 Accept-Encoding:
93 Connection: [keep-alive] 190 - gzip, deflate
94 User-Agent: [python-requests/2.18.4] 191 Authorization:
192 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
193 Connection:
194 - keep-alive
195 User-Agent:
196 - tests/v311
95 method: GET 197 method: GET
96 uri: http://localhost:3000/api/v1/lists 198 uri: http://localhost:3000/api/v1/lists
97 response: 199 response:
98 body: {string: '[{"id":"2","title":"fry kids"}]'} 200 body:
201 string: '[{"id":"2","title":"fry kids","replies_policy":"list"}]'
99 headers: 202 headers:
100 Cache-Control: ['no-cache, no-store'] 203 Cache-Control:
101 Content-Type: [application/json; charset=utf-8] 204 - no-store
102 Referrer-Policy: [strict-origin-when-cross-origin] 205 Content-Security-Policy:
103 Transfer-Encoding: [chunked] 206 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
104 Vary: ['Accept-Encoding, Origin'] 207 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
105 X-Content-Type-Options: [nosniff] 208 style-src ''self'' http://localhost:3000 ''nonce-74FgNs3LKAEVtzPaovhYuQ=='';
106 X-Download-Options: [noopen] 209 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
107 X-Frame-Options: [SAMEORIGIN] 210 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
108 X-Permitted-Cross-Domain-Policies: [none] 211 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
109 X-Request-Id: [f167b8de-9e3c-4767-bef5-a7f7f378369c] 212 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
110 X-Runtime: ['0.030057'] 213 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
111 X-XSS-Protection: [1; mode=block] 214 worker-src ''self'' blob: http://localhost:3000'
112 content-length: ['31'] 215 Content-Type:
113 status: {code: 200, message: OK} 216 - application/json; charset=utf-8
217 ETag:
218 - W/"af675d882258dae9d8a4dd23e7e37ba2"
219 Referrer-Policy:
220 - strict-origin-when-cross-origin
221 Transfer-Encoding:
222 - chunked
223 Vary:
224 - Accept, Origin
225 X-Content-Type-Options:
226 - nosniff
227 X-Download-Options:
228 - noopen
229 X-Frame-Options:
230 - SAMEORIGIN
231 X-Permitted-Cross-Domain-Policies:
232 - none
233 X-Request-Id:
234 - 1d56d484-080d-4758-85d4-8954dd0c7818
235 X-Runtime:
236 - '0.007265'
237 X-XSS-Protection:
238 - 1; mode=block
239 status:
240 code: 200
241 message: OK
114- request: 242- request:
115 body: null 243 body: null
116 headers: 244 headers:
117 Accept: ['*/*'] 245 Accept:
118 Accept-Encoding: ['gzip, deflate'] 246 - '*/*'
119 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 247 Accept-Encoding:
120 Connection: [keep-alive] 248 - gzip, deflate
121 User-Agent: [python-requests/2.18.4] 249 Authorization:
250 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
251 Connection:
252 - keep-alive
253 User-Agent:
254 - tests/v311
122 method: GET 255 method: GET
123 uri: http://localhost:3000/api/v1/lists/2 256 uri: http://localhost:3000/api/v1/lists/2
124 response: 257 response:
125 body: {string: '{"id":"2","title":"fry kids"}'} 258 body:
259 string: '{"id":"2","title":"fry kids","replies_policy":"list"}'
126 headers: 260 headers:
127 Cache-Control: ['no-cache, no-store'] 261 Cache-Control:
128 Content-Type: [application/json; charset=utf-8] 262 - no-store
129 Referrer-Policy: [strict-origin-when-cross-origin] 263 Content-Security-Policy:
130 Transfer-Encoding: [chunked] 264 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
131 Vary: ['Accept-Encoding, Origin'] 265 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
132 X-Content-Type-Options: [nosniff] 266 style-src ''self'' http://localhost:3000 ''nonce-C600eAXuulX5vM65z+Ip8Q=='';
133 X-Download-Options: [noopen] 267 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
134 X-Frame-Options: [SAMEORIGIN] 268 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
135 X-Permitted-Cross-Domain-Policies: [none] 269 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
136 X-Request-Id: [09623f55-a23f-4a5f-8acc-5716aad61e2a] 270 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
137 X-Runtime: ['0.029697'] 271 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
138 X-XSS-Protection: [1; mode=block] 272 worker-src ''self'' blob: http://localhost:3000'
139 content-length: ['29'] 273 Content-Type:
140 status: {code: 200, message: OK} 274 - application/json; charset=utf-8
275 ETag:
276 - W/"f966a31518632a639685eefce6cd7355"
277 Referrer-Policy:
278 - strict-origin-when-cross-origin
279 Transfer-Encoding:
280 - chunked
281 Vary:
282 - Accept, Origin
283 X-Content-Type-Options:
284 - nosniff
285 X-Download-Options:
286 - noopen
287 X-Frame-Options:
288 - SAMEORIGIN
289 X-Permitted-Cross-Domain-Policies:
290 - none
291 X-Request-Id:
292 - a4a64c3c-4d26-4a75-8c82-a3b33dee6905
293 X-Runtime:
294 - '0.006897'
295 X-XSS-Protection:
296 - 1; mode=block
297 status:
298 code: 200
299 message: OK
141- request: 300- request:
142 body: null 301 body: null
143 headers: 302 headers:
144 Accept: ['*/*'] 303 Accept:
145 Accept-Encoding: ['gzip, deflate'] 304 - '*/*'
146 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN] 305 Accept-Encoding:
147 Connection: [keep-alive] 306 - gzip, deflate
148 Content-Length: ['0'] 307 Authorization:
149 User-Agent: [python-requests/2.18.4] 308 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
309 Connection:
310 - keep-alive
311 Content-Length:
312 - '0'
313 User-Agent:
314 - tests/v311
150 method: DELETE 315 method: DELETE
151 uri: http://localhost:3000/api/v1/lists/2 316 uri: http://localhost:3000/api/v1/lists/2
152 response: 317 response:
153 body: {string: '{}'} 318 body:
319 string: '{}'
154 headers: 320 headers:
155 Cache-Control: ['no-cache, no-store'] 321 Cache-Control:
156 Content-Type: [application/json; charset=utf-8] 322 - no-store
157 Referrer-Policy: [strict-origin-when-cross-origin] 323 Content-Security-Policy:
158 Transfer-Encoding: [chunked] 324 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
159 Vary: ['Accept-Encoding, Origin'] 325 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
160 X-Content-Type-Options: [nosniff] 326 style-src ''self'' http://localhost:3000 ''nonce-1k+4VhhChSutU9L/MpXtzQ=='';
161 X-Download-Options: [noopen] 327 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
162 X-Frame-Options: [SAMEORIGIN] 328 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
163 X-Permitted-Cross-Domain-Policies: [none] 329 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
164 X-Request-Id: [2bf940d2-85fd-43c1-9c75-f9c2f3fe83f7] 330 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
165 X-Runtime: ['0.052204'] 331 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
166 X-XSS-Protection: [1; mode=block] 332 worker-src ''self'' blob: http://localhost:3000'
167 content-length: ['2'] 333 Content-Type:
168 status: {code: 200, message: OK} 334 - application/json; charset=utf-8
335 ETag:
336 - W/"44136fa355b3678a1146ad16f7e8649e"
337 Referrer-Policy:
338 - strict-origin-when-cross-origin
339 Transfer-Encoding:
340 - chunked
341 Vary:
342 - Accept, Origin
343 X-Content-Type-Options:
344 - nosniff
345 X-Download-Options:
346 - noopen
347 X-Frame-Options:
348 - SAMEORIGIN
349 X-Permitted-Cross-Domain-Policies:
350 - none
351 X-Request-Id:
352 - e5c4008e-369e-430f-99da-d2c587181038
353 X-Runtime:
354 - '0.010613'
355 X-XSS-Protection:
356 - 1; mode=block
357 status:
358 code: 200
359 message: OK
169version: 1 360version: 1
Powered by cgit v1.2.3 (git 2.41.0)