From b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 13 Nov 2022 15:33:10 +0200 Subject: Add support for timed mutes, fix tests to actually pass with new setup --- tests/cassettes/test_push_update.yaml | 64 +++++++++++++++++------------------ 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'tests/cassettes/test_push_update.yaml') 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 @@ interactions: - request: - 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 + 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 headers: Accept: - '*/*' @@ -11,7 +11,7 @@ interactions: Connection: - keep-alive Content-Length: - - '368' + - '376' Content-Type: - application/x-www-form-urlencoded User-Agent: @@ -20,14 +20,14 @@ interactions: uri: http://localhost:3000/api/v1/push/subscription response: body: - string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' + string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-dtAjo4nPQtWOILRZkBVHag==''; + style-src ''self'' http://localhost:3000 ''nonce-5u7qUEi8hLI4A76/3sOj/w==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -37,7 +37,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" + - W/"4ef26ec5cc06120fec57395a4bc6e020" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -53,9 +53,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 9bf49a81-2b6e-46f1-9be7-446c5b218440 + - 6707a574-d97c-4c8a-a8bf-f58fcb5dbde9 X-Runtime: - - '0.022528' + - '0.015890' X-XSS-Protection: - 1; mode=block status: @@ -82,14 +82,14 @@ interactions: uri: http://localhost:3000/api/v1/push/subscription response: body: - string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' + string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-Sx2Oj8kDfwt9QJNKwsuVcA==''; + style-src ''self'' http://localhost:3000 ''nonce-fS4ASM2BF2yj/eutIQx7mw==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -99,7 +99,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"11d6dbe485a001e7404531a19a22c388" + - W/"0d728013081c5499d4fe43a8bebdb3ec" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -115,9 +115,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 2a820fe0-6842-46a1-86f9-7a9fe419f11e + - 05cd8403-fe6f-48e2-87e0-d7a074d07580 X-Runtime: - - '0.010899' + - '0.012628' X-XSS-Protection: - 1; mode=block status: @@ -140,14 +140,14 @@ interactions: uri: http://localhost:3000/api/v1/push/subscription response: body: - string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' + string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":true,"reblog":true,"follow":true,"favourite":true},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-Q5hw0wiZzqeNtRSMrUUZ9A==''; + style-src ''self'' http://localhost:3000 ''nonce-ghoRRsiBaBnBeQLro/FXrA==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -157,7 +157,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"11d6dbe485a001e7404531a19a22c388" + - W/"0d728013081c5499d4fe43a8bebdb3ec" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -173,9 +173,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - a3d05117-54ad-47e1-8c7d-67fd815c5563 + - 9c30798d-28a8-484a-bfe7-f509912feaeb X-Runtime: - - '0.008378' + - '0.007718' X-XSS-Protection: - 1; mode=block status: @@ -202,14 +202,14 @@ interactions: uri: http://localhost:3000/api/v1/push/subscription response: body: - string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' + string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-Vw+8US2CPbzjBeuVmNuo3Q==''; + style-src ''self'' http://localhost:3000 ''nonce-Y9nP2Gx+x6CXHMripnMdsg==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -219,7 +219,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" + - W/"4ef26ec5cc06120fec57395a4bc6e020" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -235,9 +235,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 147b7caa-c559-44f3-b6e6-8d66bd96d0ff + - d83f3501-3d3a-440d-96be-520db4193fe5 X-Runtime: - - '0.011152' + - '0.010944' X-XSS-Protection: - 1; mode=block status: @@ -260,14 +260,14 @@ interactions: uri: http://localhost:3000/api/v1/push/subscription response: body: - string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' + string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-AVSZyIBBuWLdZUNyJ+tLBA==''; + style-src ''self'' http://localhost:3000 ''nonce-kZO2aTGvthBaeyN9bjlnkg==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -277,7 +277,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" + - W/"4ef26ec5cc06120fec57395a4bc6e020" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -293,9 +293,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - aa1429bd-fd88-4311-a0b9-6fe1303aa75b + - 402edc1d-ea04-43e6-8fce-da2fdcfd7724 X-Runtime: - - '0.007709' + - '0.007620' X-XSS-Protection: - 1; mode=block status: @@ -318,14 +318,14 @@ interactions: uri: http://localhost:3000/api/v1/push/subscription response: body: - string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}' + string: '{"id":2,"endpoint":"https://example.com","alerts":{"mention":false,"reblog":false,"follow":false,"favourite":false},"server_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-Dy8mwK8CsCGGo8lV/FhbHg==''; + style-src ''self'' http://localhost:3000 ''nonce-ZbZoP5IDoi6z0tP0HafwHg==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -335,7 +335,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"b7f5c9cdba03977ec4af45b88cc3c6cc" + - W/"4ef26ec5cc06120fec57395a4bc6e020" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -351,9 +351,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - c8813294-4e96-49e4-83f0-cea347fe30df + - 4e29f655-9397-41b1-9cbb-0df0e30471c2 X-Runtime: - - '0.007939' + - '0.006763' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3