Mastodonplus.py/tests/cassettes/test_push_set.yaml
2018-07-30 23:19:51 +02:00

61 líneas
2,6 KiB
YAML

interactions:
- request:
body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BLdR63oM75HukNQB3N1M2AbdFFAHWA4chrgP4rmLYKcwaNm3H88Fm3bpg%2BS2GvHezWWK7WSunnCW3LWDuQVFFTQ%3D&subscription%5Bkeys%5D%5Bauth%5D=tIutL3F6pKzylc7ikS09ww%3D%3D
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['242']
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":7,"endpoint":"https://example.com","alerts":{},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
ETag: [W/"848533b1ff5d11d2a46f1048177d9cb1"]
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: [53cd0aa6-7c00-4a85-aedc-11eba6936891]
X-Runtime: ['0.049083']
X-XSS-Protection: [1; mode=block]
content-length: ['157']
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":7,"endpoint":"https://example.com","alerts":{},"server_key":"BFUzywftzA81kLihlpi_bTniTwxuGp_D2gX9CHRq4qJQJgsKQUFyc8juKZ-fHMR6YxnA1A1qhgVvMTChH21CMhY="}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
ETag: [W/"848533b1ff5d11d2a46f1048177d9cb1"]
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: [00c21404-c626-4ecd-8071-f88804555dd8]
X-Runtime: ['0.024180']
X-XSS-Protection: [1; mode=block]
content-length: ['157']
status: {code: 200, message: OK}
version: 1