Mastodonplus.py/tests/cassettes/test_push_set.yaml

61 líneas
2,6 KiB
YAML
Original Vista normal Històric

2018-06-05 22:52:18 +02:00
interactions:
- request:
2018-07-14 01:07:26 +02:00
body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BPwT72%2B%2B9J7XGiqVhdm3LquHsyG6hK7Cjq%2BavT2g0RWi5a12OfcnL3A9mh990xY00rbX6NrxuJOVTeUqp9Mhq9E%3D&subscription%5Bkeys%5D%5Bauth%5D=G%2Bdd5UEOghWDuZeFp%2Bl5jw%3D%3D
2018-06-05 22:52:18 +02:00
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
2018-07-14 01:07:26 +02:00
Content-Length: ['250']
2018-06-05 22:52:18 +02:00
Content-Type: [application/x-www-form-urlencoded]
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-06-05 22:52:18 +02:00
method: POST
uri: http://localhost:3000/api/v1/push/subscription
response:
2018-07-14 01:07:26 +02:00
body: {string: '{"id":4,"endpoint":"https://example.com","alerts":{},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'}
2018-06-05 22:52:18 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-07-14 01:07:26 +02:00
ETag: [W/"23584644aa648ce29b03b04777f9f26a"]
2018-06-05 22:52:18 +02:00
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]
2018-07-14 01:07:26 +02:00
X-Request-Id: [53d68e44-a881-48a0-9198-3a8548d7076b]
X-Runtime: ['0.019739']
2018-06-05 22:52:18 +02:00
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]
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-06-05 22:52:18 +02:00
method: GET
uri: http://localhost:3000/api/v1/push/subscription
response:
2018-07-14 01:07:26 +02:00
body: {string: '{"id":4,"endpoint":"https://example.com","alerts":{},"server_key":"BC0l_ldr_Wvytg6fB3PdfeZx8NNB0E0UL2xIOtLfwumKtHTby9zdL0UdeqEQQJcKI6ZGqWoFD6OSkT7aRHKJmX8="}'}
2018-06-05 22:52:18 +02:00
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-07-14 01:07:26 +02:00
ETag: [W/"23584644aa648ce29b03b04777f9f26a"]
2018-06-05 22:52:18 +02:00
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]
2018-07-14 01:07:26 +02:00
X-Request-Id: [12d13f3b-fe78-4a42-983c-79c2beec2b1f]
X-Runtime: ['0.019785']
2018-06-05 22:52:18 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['157']
status: {code: 200, message: OK}
version: 1