Mastodonplus.py/tests/cassettes/test_push_set.yaml
2019-10-12 23:03:14 +02:00

59 líneas
2,5 KiB
YAML

interactions:
- request:
body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BBwseDakzm67TG3xDZXDTThf0CwVqMK1PaZuPnL%2Fz5G3VuVa2C6Hc7T%2B2bC8IB%2BiLn%2B7u6Fam9SdUE2yMj3CWwc%3D&subscription%5Bkeys%5D%5Bauth%5D=I1nJBlpE7bZ6L5aYnViooA%3D%3D
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['248']
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: POST
uri: http://localhost:3000/api/v1/push/subscription
response:
body: {string: '{"id":46,"endpoint":"https://example.com","alerts":{},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'}
headers:
Cache-Control: ['no-cache, no-store']
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [f689d5d3-6f02-41f7-a1d8-3329e8ea3802]
X-Runtime: ['0.022398']
X-XSS-Protection: [1; mode=block]
content-length: ['158']
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: [python-requests/2.18.4]
method: GET
uri: http://localhost:3000/api/v1/push/subscription
response:
body: {string: '{"id":46,"endpoint":"https://example.com","alerts":{},"server_key":"BAWt221FllE4MOQ_TNqrMrc32IW2XhCRR0WTPI0Ne0TzoNm6UeUdEDDs5FAn8nGtW8eiJyCmSMoJnUEFi1Cj1Rk="}'}
headers:
Cache-Control: ['no-cache, no-store']
Content-Type: [application/json; charset=utf-8]
Referrer-Policy: [strict-origin-when-cross-origin]
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Download-Options: [noopen]
X-Frame-Options: [SAMEORIGIN]
X-Permitted-Cross-Domain-Policies: [none]
X-Request-Id: [23fabb3a-3d95-472e-aef0-826294cd772e]
X-Runtime: ['0.014687']
X-XSS-Protection: [1; mode=block]
content-length: ['158']
status: {code: 200, message: OK}
version: 1