Mastodonplus.py/tests/cassettes/test_scheduled_status.yaml

175 líneas
7,2 KiB
YAML
Original Vista normal Històric

2019-04-28 19:36:12 +02:00
interactions:
- request:
body: scheduled_at=4000-01-01T14%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-06-22 15:28:27 +02:00
body: {string: '{"id":"1","scheduled_at":"4000-01-01T14: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:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-28 19:36:12 +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: [9687c41c-1b26-49b1-9b92-bf01cf03eece]
X-Runtime: ['0.062004']
2019-04-28 19:36:12 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 15:28:27 +02:00
content-length: ['306']
2019-04-28 19:36:12 +02:00
status: {code: 200, message: OK}
- request:
body: scheduled_at=4000-01-01T14%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-06-22 15:28:27 +02:00
uri: http://localhost:3000/api/v1/scheduled_statuses/1
2019-04-28 19:36:12 +02:00
response:
2019-06-22 15:28:27 +02:00
body: {string: '{"id":"1","scheduled_at":"4000-01-01T14: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:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-28 19:36:12 +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: [13564f2c-9377-4bd8-ba34-31e131fde7fc]
X-Runtime: ['0.032800']
2019-04-28 19:36:12 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 15:28:27 +02:00
content-length: ['306']
2019-04-28 19:36:12 +02:00
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-06-22 15:28:27 +02:00
body: {string: '[{"id":"1","scheduled_at":"4000-01-01T14: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:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-28 19:36:12 +02:00
Content-Type: [application/json; charset=utf-8]
2019-06-22 15:28:27 +02:00
Link: ['<http://localhost:3000/api/v1/scheduled_statuses?min_id=1>; 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-06-22 15:28:27 +02:00
X-Request-Id: [175575fa-0de6-4d36-8a1a-a2f37c76646d]
X-Runtime: ['0.019602']
2019-04-28 19:36:12 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 15:28:27 +02:00
content-length: ['308']
2019-04-28 19:36:12 +02:00
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-06-22 15:28:27 +02:00
uri: http://localhost:3000/api/v1/scheduled_statuses/1
2019-04-28 19:36:12 +02:00
response:
2019-06-22 15:28:27 +02:00
body: {string: '{"id":"1","scheduled_at":"4000-01-01T14: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:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-28 19:36:12 +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: [f50d4b55-c0a6-46f1-adc8-b143fe2d16ee]
X-Runtime: ['0.018354']
2019-04-28 19:36:12 +02:00
X-XSS-Protection: [1; mode=block]
2019-06-22 15:28:27 +02:00
content-length: ['306']
2019-04-28 19:36:12 +02:00
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-06-22 15:28:27 +02:00
uri: http://localhost:3000/api/v1/scheduled_statuses/1
2019-04-28 19:36:12 +02:00
response:
body: {string: '{}'}
headers:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-28 19:36:12 +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: [b2c3cb6e-afbe-46d3-8647-ac4d0f5d746f]
X-Runtime: ['0.067970']
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:
2019-06-22 15:28:27 +02:00
Cache-Control: ['no-cache, no-store']
2019-04-28 19:36:12 +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: [5972b817-f365-43ba-a0c5-3931c665ce1a]
X-Runtime: ['0.018815']
2019-04-28 19:36:12 +02:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
status: {code: 200, message: OK}
version: 1