Mastodon.py/tests/cassettes/test_push_delete.yaml
2023-06-23 23:16:44 +03:00

157 lines
3.9 KiB
YAML

interactions:
- request:
body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BJqwP1ifKh4AR9dRzN8h7QDXQIm6CjR6xjaLor9ixQUctgz8nJoaq%2BULAQYYBiKwaeFgK4B3JXwLbCTx2%2BcHFzQ%3D&subscription%5Bkeys%5D%5Bauth%5D=rZYp38jVD7gzdbkomJfy%2Fg%3D%3D&policy=all
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '257'
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":3,"endpoint":"https://example.com","alerts":{},"server_key":"BFq8_sg614eyBL-mXiONoBFN8xuwp6gACRnn7kkoKidg3TkHAfoSQCSMLlpDjR-3vOBpF8wTeVBM0GFFJNQLUJo=","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/"c6c0992b3eed7ec7fd85d32db4b81830"
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:
- 09bb7d12-655b-4748-91e6-14bb1929c1be
X-Runtime:
- '0.025627'
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
Content-Length:
- '0'
User-Agent:
- tests/v311
method: DELETE
uri: http://localhost:3000/api/v1/push/subscription
response:
body:
string: '{}'
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/"44136fa355b3678a1146ad16f7e8649e"
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:
- 5edff8d3-98e0-499d-aec4-e5b3d57c2981
X-Runtime:
- '0.013531'
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: '{"error":"Not Found"}'
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
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:
- ce53b15f-3600-45ea-a70c-1ed1da8decdf
X-Runtime:
- '0.007941'
X-XSS-Protection:
- 1; mode=block
status:
code: 404
message: Not Found
version: 1