interactions: - request: body: domain=https%3A%2F%2Fchitter.xyz%2F&severity=suspend&public_comment=sicko+behaviour headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 Connection: - keep-alive Content-Length: - '83' Content-Type: - application/x-www-form-urlencoded User-Agent: - tests/v311 method: POST uri: http://localhost:3000/api/v1/admin/domain_blocks/ response: body: string: '{"id":"1","domain":"https:chitter.xyz","created_at":"2023-04-23T17:56:38.272Z","severity":"suspend","reject_media":false,"reject_reports":false,"private_comment":null,"public_comment":"sicko behaviour","obfuscate":false}' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"4b4845cb8ff96fa5b57c3a2fa31b74d0" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - cc9f0364-f9ae-42db-a329-2cf046191eb9 X-Runtime: - '0.065930' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: body: null headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 Connection: - keep-alive User-Agent: - tests/v311 method: GET uri: http://localhost:3000/api/v1/admin/domain_blocks/ response: body: string: '[{"id":"1","domain":"https:chitter.xyz","created_at":"2023-04-23T17:56:38.272Z","severity":"suspend","reject_media":false,"reject_reports":false,"private_comment":null,"public_comment":"sicko behaviour","obfuscate":false}]' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"5ef24a6672d80ecc30d44cff08fe8c59" Link: - ; rel="prev" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - 1cb38bd1-e3c5-456e-966f-bd3d615fd8f4 X-Runtime: - '0.013521' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: body: null headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 Connection: - keep-alive User-Agent: - tests/v311 method: GET uri: http://localhost:3000/api/v1/admin/domain_blocks/1 response: body: string: '{"id":"1","domain":"https:chitter.xyz","created_at":"2023-04-23T17:56:38.272Z","severity":"suspend","reject_media":false,"reject_reports":false,"private_comment":null,"public_comment":"sicko behaviour","obfuscate":false}' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"4b4845cb8ff96fa5b57c3a2fa31b74d0" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - 327a5930-1c30-4ba6-bad6-5907ea68ebca X-Runtime: - '0.011849' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: body: severity=silence&private_comment=jk+ilu+%3C3 headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 Connection: - keep-alive Content-Length: - '44' Content-Type: - application/x-www-form-urlencoded User-Agent: - tests/v311 method: PUT uri: http://localhost:3000/api/v1/admin/domain_blocks/1 response: body: string: '{"id":"1","domain":"https:chitter.xyz","created_at":"2023-04-23T17:56:38.272Z","severity":"silence","reject_media":false,"reject_reports":false,"private_comment":"jk ilu \u003c3","public_comment":"sicko behaviour","obfuscate":false}' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"b6395b20270f78461a39c4dd4f76cb88" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - 7947446e-a1a3-4c96-b8ed-48cb251a0cb5 X-Runtime: - '0.023854' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: body: null headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 Connection: - keep-alive Content-Length: - '0' User-Agent: - tests/v311 method: DELETE uri: http://localhost:3000/api/v1/admin/domain_blocks/1 response: body: string: '{}' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"44136fa355b3678a1146ad16f7e8649e" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - c55cdff1-5a6e-4ade-80e9-f63abd4c214b X-Runtime: - '0.022324' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK - request: body: null headers: Accept: - '*/*' Accept-Encoding: - gzip, deflate Authorization: - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 Connection: - keep-alive User-Agent: - tests/v311 method: GET uri: http://localhost:3000/api/v1/admin/domain_blocks/ response: body: string: '[]' headers: Cache-Control: - private, no-store Content-Security-Policy: - default-src 'none'; frame-ancestors 'none'; form-action 'none' Content-Type: - application/json; charset=utf-8 ETag: - W/"4f53cda18c2baa0c0354bb5f9a3ecbe5" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: - chunked Vary: - Accept, Origin X-Content-Type-Options: - nosniff X-Download-Options: - noopen X-Frame-Options: - SAMEORIGIN X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - fb8ed581-a090-4473-b93a-570f0b5476da X-Runtime: - '0.012832' X-XSS-Protection: - 1; mode=block status: code: 200 message: OK version: 1