diff --git a/tests/test_admin_trends.yaml b/tests/test_admin_trends.yaml new file mode 100644 index 0000000..cb00c0c --- /dev/null +++ b/tests/test_admin_trends.yaml @@ -0,0 +1,238 @@ +interactions: +- 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/trends/tags + response: + body: + string: '[]' + headers: + Cache-Control: + - private, no-store + Content-Length: + - '2' + 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 + Server-Timing: + - cache_read.active_support;dur=0.04, sql.active_record;dur=0.86, cache_generate.active_support;dur=1.59, + cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.29, + start_processing.action_controller;dur=0.01, render.active_model_serializers;dur=0.04, + process_action.action_controller;dur=22.31 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Permitted-Cross-Domain-Policies: + - none + X-RateLimit-Limit: + - '300' + X-RateLimit-Remaining: + - '299' + X-RateLimit-Reset: + - '2025-02-13T22:00:00.999188Z' + X-Request-Id: + - ead883ad-0f5c-4e20-8434-3a4a6d90037e + X-Runtime: + - '0.041461' + X-XSS-Protection: + - '0' + vary: + - Authorization, Origin + 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/trends/statuses + response: + body: + string: '[]' + headers: + Cache-Control: + - private, no-store + Content-Length: + - '2' + 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 + Server-Timing: + - cache_read.active_support;dur=0.04, sql.active_record;dur=2.29, cache_generate.active_support;dur=1.54, + cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.28, + start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.04, + process_action.action_controller;dur=27.11 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Permitted-Cross-Domain-Policies: + - none + X-RateLimit-Limit: + - '300' + X-RateLimit-Remaining: + - '299' + X-RateLimit-Reset: + - '2025-02-13T22:00:00.042879Z' + X-Request-Id: + - 4c60559f-e07e-4261-9268-fd3802d67a1c + X-Runtime: + - '0.045720' + X-XSS-Protection: + - '0' + vary: + - Authorization, Accept-Language, Origin + 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/trends/links + response: + body: + string: '[]' + headers: + Cache-Control: + - private, no-store + Content-Length: + - '2' + 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 + Server-Timing: + - cache_read.active_support;dur=0.04, sql.active_record;dur=4.14, cache_generate.active_support;dur=1.57, + cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.26, + start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.04, + process_action.action_controller;dur=30.35 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Permitted-Cross-Domain-Policies: + - none + X-RateLimit-Limit: + - '300' + X-RateLimit-Remaining: + - '299' + X-RateLimit-Reset: + - '2025-02-13T22:00:00.096615Z' + X-Request-Id: + - 542d5e6d-46c2-411f-845a-14cbc4b00560 + X-Runtime: + - '0.053313' + X-XSS-Protection: + - '0' + vary: + - Authorization, Accept-Language, Origin + 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/trends/tags?limit=5 + response: + body: + string: '[]' + headers: + Cache-Control: + - private, no-store + Content-Length: + - '2' + 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 + Server-Timing: + - cache_read.active_support;dur=0.05, sql.active_record;dur=8.99, cache_generate.active_support;dur=4.99, + cache_write.active_support;dur=0.12, instantiation.active_record;dur=0.42, + start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=0.05, + process_action.action_controller;dur=37.07 + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - SAMEORIGIN + X-Permitted-Cross-Domain-Policies: + - none + X-RateLimit-Limit: + - '300' + X-RateLimit-Remaining: + - '299' + X-RateLimit-Reset: + - '2025-02-13T22:00:00.148901Z' + X-Request-Id: + - d71eb8d1-ffd9-492e-be08-4448ffb7c9ff + X-Runtime: + - '0.052562' + X-XSS-Protection: + - '0' + vary: + - Authorization, Origin + status: + code: 200 + message: OK +version: 1