Mastodonplus.py/tests/cassettes/test_scheduled_status.yaml

181 líneas
7,6 KiB
YAML
Original Vista normal Històric

2019-04-28 19:36:12 +02:00
interactions:
- request:
2019-04-28 19:46:20 +02:00
body: scheduled_at=4000-01-01T11%3A33%3A14%2B00%3A00&status=please+ensure+adequate+headroom
2019-04-28 19:36:12 +02:00
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
2019-04-28 19:46:20 +02:00
Content-Length: ['85']
2019-04-28 19:36:12 +02:00
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: POST
uri: http://localhost:3000/api/v1/statuses
response:
2019-04-28 20:38:49 +02:00
body: {string: '{"id":"19","scheduled_at":"4000-01-01T11:33:14.000Z","params":{"text":"please
2019-04-28 19:36:12 +02:00
ensure adequate headroom","media_ids":null,"sensitive":null,"spoiler_text":null,"visibility":null,"scheduled_at":null,"poll":null,"idempotency":null,"in_reply_to_id":null,"application_id":1234567890123456},"media_attachments":[]}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2019-04-28 20:38:49 +02:00
ETag: [W/"869b974553c558251472c898ce2b4b30"]
2019-04-28 19:36:12 +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]
2019-04-28 20:38:49 +02:00
X-Request-Id: [268bf716-1ca5-4e0a-a1bf-9c06b23b0c6f]
X-Runtime: ['0.064617']
2019-04-28 19:36:12 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['307']
status: {code: 200, message: OK}
- request:
2019-04-28 19:46:20 +02:00
body: scheduled_at=4000-01-01T11%3A23%3A14%2B00%3A00
2019-04-28 19:36:12 +02:00
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
2019-04-28 19:46:20 +02:00
Content-Length: ['46']
2019-04-28 19:36:12 +02:00
Content-Type: [application/x-www-form-urlencoded]
User-Agent: [python-requests/2.18.4]
method: PUT
2019-04-28 20:38:49 +02:00
uri: http://localhost:3000/api/v1/scheduled_statuses/19
2019-04-28 19:36:12 +02:00
response:
2019-04-28 20:38:49 +02:00
body: {string: '{"id":"19","scheduled_at":"4000-01-01T11:23:14.000Z","params":{"poll":null,"text":"please
2019-04-28 19:36:12 +02:00
ensure adequate headroom","media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null},"media_attachments":[]}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2019-04-28 20:38:49 +02:00
ETag: [W/"d0254474867b88e60e2a7d1754ab928c"]
2019-04-28 19:36:12 +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]
2019-04-28 20:38:49 +02:00
X-Request-Id: [dcd95b0e-7116-454a-9ba4-122de3a6913e]
X-Runtime: ['0.047892']
2019-04-28 19:36:12 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['307']
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/scheduled_statuses
response:
2019-04-28 20:38:49 +02:00
body: {string: '[{"id":"19","scheduled_at":"4000-01-01T11:23:14.000Z","params":{"poll":null,"text":"please
2019-04-28 19:36:12 +02:00
ensure adequate headroom","media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null},"media_attachments":[]}]'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2019-04-28 20:38:49 +02:00
ETag: [W/"f942fa659c7f711edf601fd02eb28f2f"]
Link: ['<http://localhost:3000/api/v1/scheduled_statuses?min_id=19>; rel="prev"']
2019-04-28 19:36:12 +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]
2019-04-28 20:38:49 +02:00
X-Request-Id: [97962c99-e4a1-4bd2-849d-51f48544c67c]
X-Runtime: ['0.022832']
2019-04-28 19:36:12 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['309']
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
2019-04-28 20:38:49 +02:00
uri: http://localhost:3000/api/v1/scheduled_statuses/19
2019-04-28 19:36:12 +02:00
response:
2019-04-28 20:38:49 +02:00
body: {string: '{"id":"19","scheduled_at":"4000-01-01T11:23:14.000Z","params":{"poll":null,"text":"please
2019-04-28 19:36:12 +02:00
ensure adequate headroom","media_ids":null,"sensitive":null,"visibility":null,"idempotency":null,"scheduled_at":null,"spoiler_text":null,"application_id":1234567890123456,"in_reply_to_id":null},"media_attachments":[]}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2019-04-28 20:38:49 +02:00
ETag: [W/"d0254474867b88e60e2a7d1754ab928c"]
2019-04-28 19:36:12 +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]
2019-04-28 20:38:49 +02:00
X-Request-Id: [f95378c9-b0c8-4c93-bf1e-f993db396b98]
X-Runtime: ['0.030762']
2019-04-28 19:36:12 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['307']
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']
User-Agent: [python-requests/2.18.4]
method: DELETE
2019-04-28 20:38:49 +02:00
uri: http://localhost:3000/api/v1/scheduled_statuses/19
2019-04-28 19:36:12 +02:00
response:
body: {string: '{}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2019-04-28 20:38:49 +02:00
ETag: [W/"0990eb85ee6e415913216239571d30e5"]
2019-04-28 19:36:12 +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]
2019-04-28 20:38:49 +02:00
X-Request-Id: [ed7c8df2-5a65-474e-81ec-9f4ef3f50b3d]
X-Runtime: ['0.028344']
2019-04-28 19:36:12 +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]
User-Agent: [python-requests/2.18.4]
method: GET
uri: http://localhost:3000/api/v1/scheduled_statuses
response:
body: {string: '[]'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2019-04-28 20:38:49 +02:00
ETag: [W/"cc6e706f1723e565ab0b83aab7be53aa"]
2019-04-28 19:36:12 +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]
2019-04-28 20:38:49 +02:00
X-Request-Id: [6d71010e-5cc0-4029-a19b-67cac6b8f5bc]
X-Runtime: ['0.017476']
2019-04-28 19:36:12 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
status: {code: 200, message: OK}
version: 1