aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
commitb1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 (patch)
tree3ecf530456b311057658b3b2e749ad017074455b /tests/cassettes/test_push_update.yaml
parenta17b20cfa142469019cd5982ba200510afc1f884 (diff)
downloadmastodon.py-b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2.tar.gz
Add support for timed mutes, fix tests to actually pass with new setup
Diffstat (limited to 'tests/cassettes/test_push_update.yaml')
-rw-r--r--tests/cassettes/test_push_update.yaml64
1 files changed, 32 insertions, 32 deletions
diff --git a/tests/cassettes/test_push_update.yaml b/tests/cassettes/test_push_update.yaml
index a763fea..a1a74ea 100644
--- a/tests/cassettes/test_push_update.yaml
+++ b/tests/cassettes/test_push_update.yaml
@@ -1,6 +1,6 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BKxwCXGxFgdUBy37k4Swt2l6iGFfuidAoCWWRYKno6YwUyMFMjiyoSzYZUU7TLmUItIVP1yREGW0c0tdktzNtf4%3D&subscription%5Bkeys%5D%5Bauth%5D=dD4vutRTLYUiXPBxqQkxcw%3D%3D&data%5Balerts%5D%5Bfollow%5D=0&data%5Balerts%5D%5Bfavourite%5D=0&data%5Balerts%5D%5Breblog%5D=0&data%5Balerts%5D%5Bmention%5D=0 3 body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BPEWY%2B88gq8yoISfu9Yt6wZ%2BvM5gp6KVQAjkzxmh%2F9h%2B7Z4HMSOTkx57dcdbnLsD0voN2GSYRQob1dDIEJ2y8jM%3D&subscription%5Bkeys%5D%5Bauth%5D=kfx8cT58M1C4z0WqtgVpiA%3D%3D&data%5Balerts%5D%5Bfollow%5D=0&data%5Balerts%5D%5Bfavourite%5D=0&data%5Balerts%5D%5Breblog%5D=0&data%5Balerts%5D%5Bmention%5D=0
4 headers: 4 headers:
5 Accept: 5 Accept:
6 - '*/*' 6 - '*/*'
@@ -11,7 +11,7 @@ interactions:
11 Connection: 11 Connection:
12 - keep-alive 12 - keep-alive
13 Content-Length: 13 Content-Length:
14 - '368' 14 - '376'
15 Content-Type: 15 Content-Type:
16 - application/x-www-form-urlencoded 16 - application/x-www-form-urlencoded
17 User-Agent: 17 User-Agent:
@@ -20,14 +20,14 @@ interactions:
20 uri: http://localhost:3000/api/v1/push/subscription 20 uri: http://localhost:3000/api/v1/push/subscription
21 response: 21 response:
22 body: 22 body:
23 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' 23 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}'
24 headers: 24 headers:
25 Cache-Control: 25 Cache-Control:
26 - no-store 26 - no-store
27 Content-Security-Policy: 27 Content-Security-Policy:
28 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 28 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
29 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 29 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
30 style-src ''self'' http://localhost:3000 ''nonce-dtAjo4nPQtWOILRZkBVHag==''; 30 style-src ''self'' http://localhost:3000 ''nonce-5u7qUEi8hLI4A76/3sOj/w=='';
31 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 31 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
32 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 32 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
33 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 33 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -37,7 +37,7 @@ interactions:
37 Content-Type: 37 Content-Type:
38 - application/json; charset=utf-8 38 - application/json; charset=utf-8
39 ETag: 39 ETag:
40 - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" 40 - W/"4ef26ec5cc06120fec57395a4bc6e020"
41 Referrer-Policy: 41 Referrer-Policy:
42 - strict-origin-when-cross-origin 42 - strict-origin-when-cross-origin
43 Transfer-Encoding: 43 Transfer-Encoding:
@@ -53,9 +53,9 @@ interactions:
53 X-Permitted-Cross-Domain-Policies: 53 X-Permitted-Cross-Domain-Policies:
54 - none 54 - none
55 X-Request-Id: 55 X-Request-Id:
56 - 9bf49a81-2b6e-46f1-9be7-446c5b218440 56 - 6707a574-d97c-4c8a-a8bf-f58fcb5dbde9
57 X-Runtime: 57 X-Runtime:
58 - '0.022528' 58 - '0.015890'
59 X-XSS-Protection: 59 X-XSS-Protection:
60 - 1; mode=block 60 - 1; mode=block
61 status: 61 status:
@@ -82,14 +82,14 @@ interactions:
82 uri: http://localhost:3000/api/v1/push/subscription 82 uri: http://localhost:3000/api/v1/push/subscription
83 response: 83 response:
84 body: 84 body:
85 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' 85 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}'
86 headers: 86 headers:
87 Cache-Control: 87 Cache-Control:
88 - no-store 88 - no-store
89 Content-Security-Policy: 89 Content-Security-Policy:
90 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 90 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
91 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 91 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
92 style-src ''self'' http://localhost:3000 ''nonce-Sx2Oj8kDfwt9QJNKwsuVcA==''; 92 style-src ''self'' http://localhost:3000 ''nonce-fS4ASM2BF2yj/eutIQx7mw=='';
93 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 93 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
94 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 94 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
95 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 95 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -99,7 +99,7 @@ interactions:
99 Content-Type: 99 Content-Type:
100 - application/json; charset=utf-8 100 - application/json; charset=utf-8
101 ETag: 101 ETag:
102 - W/"11d6dbe485a001e7404531a19a22c388" 102 - W/"0d728013081c5499d4fe43a8bebdb3ec"
103 Referrer-Policy: 103 Referrer-Policy:
104 - strict-origin-when-cross-origin 104 - strict-origin-when-cross-origin
105 Transfer-Encoding: 105 Transfer-Encoding:
@@ -115,9 +115,9 @@ interactions:
115 X-Permitted-Cross-Domain-Policies: 115 X-Permitted-Cross-Domain-Policies:
116 - none 116 - none
117 X-Request-Id: 117 X-Request-Id:
118 - 2a820fe0-6842-46a1-86f9-7a9fe419f11e 118 - 05cd8403-fe6f-48e2-87e0-d7a074d07580
119 X-Runtime: 119 X-Runtime:
120 - '0.010899' 120 - '0.012628'
121 X-XSS-Protection: 121 X-XSS-Protection:
122 - 1; mode=block 122 - 1; mode=block
123 status: 123 status:
@@ -140,14 +140,14 @@ interactions:
140 uri: http://localhost:3000/api/v1/push/subscription 140 uri: http://localhost:3000/api/v1/push/subscription
141 response: 141 response:
142 body: 142 body:
143 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' 143 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}'
144 headers: 144 headers:
145 Cache-Control: 145 Cache-Control:
146 - no-store 146 - no-store
147 Content-Security-Policy: 147 Content-Security-Policy:
148 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 148 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
149 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 149 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
150 style-src ''self'' http://localhost:3000 ''nonce-Q5hw0wiZzqeNtRSMrUUZ9A==''; 150 style-src ''self'' http://localhost:3000 ''nonce-ghoRRsiBaBnBeQLro/FXrA=='';
151 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 151 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
152 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 152 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
153 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 153 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -157,7 +157,7 @@ interactions:
157 Content-Type: 157 Content-Type:
158 - application/json; charset=utf-8 158 - application/json; charset=utf-8
159 ETag: 159 ETag:
160 - W/"11d6dbe485a001e7404531a19a22c388" 160 - W/"0d728013081c5499d4fe43a8bebdb3ec"
161 Referrer-Policy: 161 Referrer-Policy:
162 - strict-origin-when-cross-origin 162 - strict-origin-when-cross-origin
163 Transfer-Encoding: 163 Transfer-Encoding:
@@ -173,9 +173,9 @@ interactions:
173 X-Permitted-Cross-Domain-Policies: 173 X-Permitted-Cross-Domain-Policies:
174 - none 174 - none
175 X-Request-Id: 175 X-Request-Id:
176 - a3d05117-54ad-47e1-8c7d-67fd815c5563 176 - 9c30798d-28a8-484a-bfe7-f509912feaeb
177 X-Runtime: 177 X-Runtime:
178 - '0.008378' 178 - '0.007718'
179 X-XSS-Protection: 179 X-XSS-Protection:
180 - 1; mode=block 180 - 1; mode=block
181 status: 181 status:
@@ -202,14 +202,14 @@ interactions:
202 uri: http://localhost:3000/api/v1/push/subscription 202 uri: http://localhost:3000/api/v1/push/subscription
203 response: 203 response:
204 body: 204 body:
205 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' 205 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}'
206 headers: 206 headers:
207 Cache-Control: 207 Cache-Control:
208 - no-store 208 - no-store
209 Content-Security-Policy: 209 Content-Security-Policy:
210 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 210 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
211 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 211 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
212 style-src ''self'' http://localhost:3000 ''nonce-Vw+8US2CPbzjBeuVmNuo3Q==''; 212 style-src ''self'' http://localhost:3000 ''nonce-Y9nP2Gx+x6CXHMripnMdsg=='';
213 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 213 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
214 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 214 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
215 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 215 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -219,7 +219,7 @@ interactions:
219 Content-Type: 219 Content-Type:
220 - application/json; charset=utf-8 220 - application/json; charset=utf-8
221 ETag: 221 ETag:
222 - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" 222 - W/"4ef26ec5cc06120fec57395a4bc6e020"
223 Referrer-Policy: 223 Referrer-Policy:
224 - strict-origin-when-cross-origin 224 - strict-origin-when-cross-origin
225 Transfer-Encoding: 225 Transfer-Encoding:
@@ -235,9 +235,9 @@ interactions:
235 X-Permitted-Cross-Domain-Policies: 235 X-Permitted-Cross-Domain-Policies:
236 - none 236 - none
237 X-Request-Id: 237 X-Request-Id:
238 - 147b7caa-c559-44f3-b6e6-8d66bd96d0ff 238 - d83f3501-3d3a-440d-96be-520db4193fe5
239 X-Runtime: 239 X-Runtime:
240 - '0.011152' 240 - '0.010944'
241 X-XSS-Protection: 241 X-XSS-Protection:
242 - 1; mode=block 242 - 1; mode=block
243 status: 243 status:
@@ -260,14 +260,14 @@ interactions:
260 uri: http://localhost:3000/api/v1/push/subscription 260 uri: http://localhost:3000/api/v1/push/subscription
261 response: 261 response:
262 body: 262 body:
263 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' 263 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}'
264 headers: 264 headers:
265 Cache-Control: 265 Cache-Control:
266 - no-store 266 - no-store
267 Content-Security-Policy: 267 Content-Security-Policy:
268 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 268 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
269 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 269 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
270 style-src ''self'' http://localhost:3000 ''nonce-AVSZyIBBuWLdZUNyJ+tLBA==''; 270 style-src ''self'' http://localhost:3000 ''nonce-kZO2aTGvthBaeyN9bjlnkg=='';
271 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 271 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
272 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 272 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
273 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 273 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -277,7 +277,7 @@ interactions:
277 Content-Type: 277 Content-Type:
278 - application/json; charset=utf-8 278 - application/json; charset=utf-8
279 ETag: 279 ETag:
280 - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" 280 - W/"4ef26ec5cc06120fec57395a4bc6e020"
281 Referrer-Policy: 281 Referrer-Policy:
282 - strict-origin-when-cross-origin 282 - strict-origin-when-cross-origin
283 Transfer-Encoding: 283 Transfer-Encoding:
@@ -293,9 +293,9 @@ interactions:
293 X-Permitted-Cross-Domain-Policies: 293 X-Permitted-Cross-Domain-Policies:
294 - none 294 - none
295 X-Request-Id: 295 X-Request-Id:
296 - aa1429bd-fd88-4311-a0b9-6fe1303aa75b 296 - 402edc1d-ea04-43e6-8fce-da2fdcfd7724
297 X-Runtime: 297 X-Runtime:
298 - '0.007709' 298 - '0.007620'
299 X-XSS-Protection: 299 X-XSS-Protection:
300 - 1; mode=block 300 - 1; mode=block
301 status: 301 status:
@@ -318,14 +318,14 @@ interactions:
318 uri: http://localhost:3000/api/v1/push/subscription 318 uri: http://localhost:3000/api/v1/push/subscription
319 response: 319 response:
320 body: 320 body:
321 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' 321 string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}'
322 headers: 322 headers:
323 Cache-Control: 323 Cache-Control:
324 - no-store 324 - no-store
325 Content-Security-Policy: 325 Content-Security-Policy:
326 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 326 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
327 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 327 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
328 style-src ''self'' http://localhost:3000 ''nonce-Dy8mwK8CsCGGo8lV/FhbHg==''; 328 style-src ''self'' http://localhost:3000 ''nonce-ZbZoP5IDoi6z0tP0HafwHg=='';
329 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 329 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
330 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 330 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
331 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 331 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -335,7 +335,7 @@ interactions:
335 Content-Type: 335 Content-Type:
336 - application/json; charset=utf-8 336 - application/json; charset=utf-8
337 ETag: 337 ETag:
338 - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" 338 - W/"4ef26ec5cc06120fec57395a4bc6e020"
339 Referrer-Policy: 339 Referrer-Policy:
340 - strict-origin-when-cross-origin 340 - strict-origin-when-cross-origin
341 Transfer-Encoding: 341 Transfer-Encoding:
@@ -351,9 +351,9 @@ interactions:
351 X-Permitted-Cross-Domain-Policies: 351 X-Permitted-Cross-Domain-Policies:
352 - none 352 - none
353 X-Request-Id: 353 X-Request-Id:
354 - c8813294-4e96-49e4-83f0-cea347fe30df 354 - 4e29f655-9397-41b1-9cbb-0df0e30471c2
355 X-Runtime: 355 X-Runtime:
356 - '0.007939' 356 - '0.006763'
357 X-XSS-Protection: 357 X-XSS-Protection:
358 - 1; mode=block 358 - 1; mode=block
359 status: 359 status:
Powered by cgit v1.2.3 (git 2.41.0)