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

107 lines
3.4 KiB
YAML

interactions:
- request:
body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BE5oXEVKOmY3jFYGbtuacAejHu1ZkKXEThQkqR4uP694mQ9ER%2FF9GGh5W%2BQbIiB5Ngwkcjh%2FSkC1OgDnWV1VvDQ%3D&subscription%5Bkeys%5D%5Bauth%5D=KU8FkSbIOTpf%2BatDdCFWIA%3D%3D&policy=none&data%5Balerts%5D%5Bfollow%5D=1&data%5Balerts%5D%5Bfavourite%5D=1&data%5Balerts%5D%5Breblog%5D=1&data%5Balerts%5D%5Bmention%5D=1&data%5Balerts%5D%5Bpoll%5D=1&data%5Balerts%5D%5Bfollow_request%5D=1&data%5Balerts%5D%5Bstatus%5D=1
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '487'
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":1,"endpoint":"https://example.com","alerts":{"mention":true,"status":true,"reblog":true,"follow":true,"follow_request":true,"favourite":true,"poll":true},"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/"d567e7b90a1c13da2d1f5e5a85c6e469"
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:
- 74bf8a9f-98e5-4ffe-baa1-1d471d1efa9a
X-Runtime:
- '0.023641'
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":1,"endpoint":"https://example.com","alerts":{"mention":true,"status":true,"reblog":true,"follow":true,"follow_request":true,"favourite":true,"poll":true},"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/"d567e7b90a1c13da2d1f5e5a85c6e469"
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:
- a6dbf88f-a0ef-4dea-997c-03110a360ebf
X-Runtime:
- '0.018155'
X-XSS-Protection:
- 1; mode=block
status:
code: 200
message: OK
version: 1