Mastodonplus.py/tests/cassettes/test_domain_block_unblock.yaml

57 líneas
1,9 KiB
YAML
Original Vista normal Històric

2017-11-30 01:29:20 +01:00
interactions:
- request:
body: domain=example.com
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['18']
Content-Type: [application/x-www-form-urlencoded]
2018-04-18 22:00:35 +02:00
User-Agent: [python-requests/2.9.1]
2017-11-30 01:29:20 +01:00
method: POST
uri: http://localhost:3000/api/v1/domain_blocks
response:
body: {string: '{}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-04-18 22:00:35 +02:00
ETag: [W/"22373afedef13443fef6492eb2a68e66"]
2017-11-30 01:29:20 +01:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-04-18 22:00:35 +02:00
X-Request-Id: [370cc1f2-0f3b-409b-8982-53c364cda688]
X-Runtime: ['0.090108']
2017-11-30 01:29:20 +01:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
status: {code: 200, message: OK}
- request:
body: domain=example.com
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
Connection: [keep-alive]
Content-Length: ['18']
Content-Type: [application/x-www-form-urlencoded]
2018-04-18 22:00:35 +02:00
User-Agent: [python-requests/2.9.1]
2017-11-30 01:29:20 +01:00
method: DELETE
uri: http://localhost:3000/api/v1/domain_blocks
response:
body: {string: '{}'}
headers:
Cache-Control: ['max-age=0, private, must-revalidate']
Content-Type: [application/json; charset=utf-8]
2018-04-18 22:00:35 +02:00
ETag: [W/"22373afedef13443fef6492eb2a68e66"]
2017-11-30 01:29:20 +01:00
Transfer-Encoding: [chunked]
Vary: ['Accept-Encoding, Origin']
X-Content-Type-Options: [nosniff]
X-Frame-Options: [SAMEORIGIN]
2018-04-18 22:00:35 +02:00
X-Request-Id: [c928efd5-9595-4ba6-a659-59751788b6e2]
X-Runtime: ['0.060232']
2017-11-30 01:29:20 +01:00
X-XSS-Protection: [1; mode=block]
content-length: ['2']
status: {code: 200, message: OK}
version: 1