interactions: - request: body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BOgPFc0JK9kraxk%2F1wYfsiBbzuq7yCEsyWrd9rnEIiHimayjWSksiJ81XIRnxABWM74uOkFn7czgbZxj%2F7oBE8c%3D&subscription%5Bkeys%5D%5Bauth%5D=sdz7mmkn8Lmk9cBZWGAokQ%3D%3D&policy=all&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: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN Connection: - keep-alive Content-Length: - '383' Content-Type: - application/x-www-form-urlencoded User-Agent: - tests/v311 method: POST 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":"BFUhy7Am7hkYb7WSvLxKp_Vg2cdDKY3zX9SxxX-uMKGiFEr2DjHRuT3gv67bfJj-fxOPXMpV0FTFGCOh_1dmG4o=","policy":"all"}' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"ba8f66a5c08b0d9aa98ea63ee1d01770" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - 428767ac-be60-4b44-96f8-d8525ae2d405 X-Runtime: - '0.035680' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: body: data%5Balerts%5D%5Bfollow%5D=1&data%5Balerts%5D%5Bfavourite%5D=1&data%5Balerts%5D%5Breblog%5D=1&data%5Balerts%5D%5Bmention%5D=1 headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN Connection: - keep-alive Content-Length: - '127' Content-Type: - application/x-www-form-urlencoded User-Agent: - tests/v311 method: PUT 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":"BFUhy7Am7hkYb7WSvLxKp_Vg2cdDKY3zX9SxxX-uMKGiFEr2DjHRuT3gv67bfJj-fxOPXMpV0FTFGCOh_1dmG4o=","policy":"all"}' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"fa99fba1b6e4267c51d5d95bc44a3ae4" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - b20fd2d8-8f81-409e-a5c6-5685869a38c5 X-Runtime: - '0.017404' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: body: null headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN Connection: - keep-alive User-Agent: - tests/v311 method: GET 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":"BFUhy7Am7hkYb7WSvLxKp_Vg2cdDKY3zX9SxxX-uMKGiFEr2DjHRuT3gv67bfJj-fxOPXMpV0FTFGCOh_1dmG4o=","policy":"all"}' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"fa99fba1b6e4267c51d5d95bc44a3ae4" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - 5db10cbc-4be6-4d26-8f48-4734fd2797b3 X-Runtime: - '0.011890' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: body: 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: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN Connection: - keep-alive Content-Length: - '127' Content-Type: - application/x-www-form-urlencoded User-Agent: - tests/v311 method: PUT 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":"BFUhy7Am7hkYb7WSvLxKp_Vg2cdDKY3zX9SxxX-uMKGiFEr2DjHRuT3gv67bfJj-fxOPXMpV0FTFGCOh_1dmG4o=","policy":"all"}' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"ba8f66a5c08b0d9aa98ea63ee1d01770" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - 80cc93fe-baa0-4e23-9b29-fdb253a16249 X-Runtime: - '0.015188' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: body: null headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN Connection: - keep-alive User-Agent: - tests/v311 method: GET 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":"BFUhy7Am7hkYb7WSvLxKp_Vg2cdDKY3zX9SxxX-uMKGiFEr2DjHRuT3gv67bfJj-fxOPXMpV0FTFGCOh_1dmG4o=","policy":"all"}' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"ba8f66a5c08b0d9aa98ea63ee1d01770" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - c9419661-c919-4fff-a133-c09427124c11 X-Runtime: - '0.012434' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: body: null headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN Connection: - keep-alive User-Agent: - tests/v311 method: GET 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":"BFUhy7Am7hkYb7WSvLxKp_Vg2cdDKY3zX9SxxX-uMKGiFEr2DjHRuT3gv67bfJj-fxOPXMpV0FTFGCOh_1dmG4o=","policy":"all"}' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"ba8f66a5c08b0d9aa98ea63ee1d01770" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - 11993235-438c-4794-a898-39bddc777fc2 X-Runtime: - '0.010746' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK version: 1