Mastodonplus.py/tests/cassettes/test_push_delete.yaml

87 líneas
3,3 KiB
YAML
Original Vista normal Històric

2018-06-05 22:52:18 +02:00
interactions:
- request:
2019-06-22 15:28:27 +02:00
body: subscription%5Bendpoint%5D=https%3A%2F%2Fexample.com&subscription%5Bkeys%5D%5Bp256dh%5D=BMlrkErTM2M6bNEzb8k9wGH2nlmDbBn%2Fl7%2BZ0gCzWUYpP817a9NPt7OWTgNe7jrGEAOIfbFPLT0n94jvypNC0vE%3D&subscription%5Bkeys%5D%5Bauth%5D=fQmT60SBddqRsYrmSyNKcw%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]
2019-06-22 15:28:27 +02:00
Content-Length: ['244']
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:
2019-06-22 15:28:27 +02:00
body: {string: '{"id":3,"endpoint":"https://example.com","alerts":{},"server_key":"BDoiaZnI8zQeheo5OzO3lDE5gn63dlzoaHrLTP7tctyKW-hj8yFIvIfWyCp8e-dT8kpJd9Ru7Sd-TTO2DXYgvwI="}'}
2018-06-05 22:52:18 +02:00
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-06-05 22:52:18 +02:00
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]
2019-06-22 15:28:27 +02:00
X-Request-Id: [c84a6c62-4994-4912-b969-b11a6e631950]
X-Runtime: ['0.027850']
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]
Content-Length: ['0']
2018-07-14 01:07:26 +02:00
User-Agent: [python-requests/2.18.4]
2018-06-05 22:52:18 +02:00
method: DELETE
uri: http://localhost:3000/api/v1/push/subscription
response:
body: {string: '{}'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-06-05 22:52:18 +02:00
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]
2019-06-22 15:28:27 +02:00
X-Request-Id: [d916def9-70dc-4cc9-b4cb-d58ec7ba3c2b]
X-Runtime: ['0.026985']
2018-06-05 22:52:18 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
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:
body: {string: '{"error":"Record not found"}'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2018-06-05 22:52:18 +02:00
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]
2019-06-22 15:28:27 +02:00
X-Request-Id: [9abe8dd7-e3d2-453f-9050-c40e8847ac69]
X-Runtime: ['0.014339']
2018-06-05 22:52:18 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['28']
status: {code: 404, message: Not Found}
version: 1