Mastodon.py/tests/cassettes/test_follow_request_reject....

255 wiersze
9.8 KiB
YAML
Czysty Zwykły widok Historia

2017-11-30 00:54:52 +00:00
interactions:
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
2025-08-16 13:52:16 +00:00
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
User-Agent:
- tests/v311
method: GET
uri: http://localhost:3000/api/v1/accounts/verify_credentials
response:
body:
2025-08-16 13:52:16 +00:00
string: '{"id":"115033965771926537","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
Lennon","locked":true,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-15T00:00:00.000Z","note":"\u003cp\u003eI
walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","uri":"http://localhost:3000/users/mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/115/033/965/771/926/537/original/18c45c7a401c8a35.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/115/033/965/771/926/537/original/18c45c7a401c8a35.jpg","header":"http://localhost:3000/system/accounts/headers/115/033/965/771/926/537/original/52028bd44df7a0ef.jpg","header_static":"http://localhost:3000/system/accounts/headers/115/033/965/771/926/537/original/52028bd44df7a0ef.jpg","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"source":{"privacy":"private","sensitive":false,"language":null,"note":"I
walk funny","fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"follow_requests_count":0,"hide_collections":null,"discoverable":null,"indexable":false},"emojis":[],"roles":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}'
headers:
Cache-Control:
2023-04-23 18:22:33 +00:00
- private, no-store
Content-Length:
- '1482'
Content-Security-Policy:
2023-04-23 18:22:33 +00:00
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
2025-08-16 13:52:16 +00:00
- W/"c46fc1233ec9bd9d9b6adca16123ce1c"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
2025-08-16 13:52:16 +00:00
- cache_read.active_support;dur=0.04, sql.active_record;dur=1.18, cache_generate.active_support;dur=1.63,
cache_write.active_support;dur=0.11, instantiation.active_record;dur=0.39,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=5.06,
process_action.action_controller;dur=26.76
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-08-16 13:52:16 +00:00
- '2025-08-15T17:35:00.667178Z'
X-Request-Id:
2025-08-16 13:52:16 +00:00
- 5c202d87-e9d6-49f7-81df-0503638c7eca
X-Runtime:
2025-08-16 13:52:16 +00:00
- '0.046658'
X-XSS-Protection:
- '0'
vary:
- Authorization, Origin
status:
code: 200
message: OK
- request:
2022-11-21 20:34:12 +00:00
body: reblogs=1&notify=0
2017-11-30 00:54:52 +00:00
headers:
Accept:
- '*/*'
Accept-Encoding:
2025-08-16 13:52:16 +00:00
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2
Connection:
- keep-alive
Content-Length:
2022-11-21 20:34:12 +00:00
- '18'
Content-Type:
- application/x-www-form-urlencoded
User-Agent:
- tests/v311
2017-11-30 00:54:52 +00:00
method: POST
2025-08-16 13:52:16 +00:00
uri: http://localhost:3000/api/v1/accounts/115033965771926537/follow
2017-11-30 00:54:52 +00:00
response:
body:
2025-08-16 13:52:16 +00:00
string: '{"id":"115033965771926537","following":false,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":""}'
2017-11-30 00:54:52 +00:00
headers:
Cache-Control:
2023-04-23 18:22:33 +00:00
- private, no-store
Content-Length:
- '292'
Content-Security-Policy:
2023-04-23 18:22:33 +00:00
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
2025-08-16 13:52:16 +00:00
- W/"8842bab00e906f2131c106a790cc72a8"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
2025-08-16 13:52:16 +00:00
- cache_read.active_support;dur=0.02, sql.active_record;dur=7.11, cache_generate.active_support;dur=0.98,
cache_write.active_support;dur=0.08, instantiation.active_record;dur=0.59,
start_processing.action_controller;dur=0.00, transaction.active_record;dur=6.47,
cache_delete.active_support;dur=0.05, cache_read_multi.active_support;dur=0.04,
cache_write_multi.active_support;dur=0.06, render.active_model_serializers;dur=0.15,
process_action.action_controller;dur=49.13
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-08-16 13:52:16 +00:00
- '2025-08-15T17:35:00.736397Z'
X-Request-Id:
2025-08-16 13:52:16 +00:00
- 707f4ba0-bf4c-4799-809a-ca66a13fb89c
X-Runtime:
2025-08-16 13:52:16 +00:00
- '0.068849'
X-XSS-Protection:
- '0'
vary:
- Authorization, Origin
status:
code: 200
message: OK
2017-11-30 00:54:52 +00:00
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
2025-08-16 13:52:16 +00:00
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
User-Agent:
- tests/v311
2019-06-22 21:16:47 +00:00
method: GET
uri: http://localhost:3000/api/v1/follow_requests
response:
body:
2025-08-16 13:52:16 +00:00
string: '[{"id":"115033965466813222","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"indexable":false,"group":false,"created_at":"2025-08-15T00:00:00.000Z","note":"","url":"http://localhost:3000/@admin","uri":"http://localhost:3000/users/admin","avatar":"http://localhost:3000/avatars/original/missing.png","avatar_static":"http://localhost:3000/avatars/original/missing.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2025-08-15","hide_collections":null,"noindex":false,"emojis":[],"roles":[{"id":"3","name":"Owner","color":""}],"fields":[]}]'
2019-06-22 21:16:47 +00:00
headers:
Cache-Control:
2023-04-23 18:22:33 +00:00
- private, no-store
Content-Length:
- '751'
Content-Security-Policy:
2023-04-23 18:22:33 +00:00
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
2025-08-16 13:52:16 +00:00
- W/"b50853996b34689d6d0741944186cf23"
Link:
- <http://localhost:3000/api/v1/follow_requests?since_id=2>; rel="prev"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
2025-08-16 13:52:16 +00:00
- cache_read.active_support;dur=0.04, sql.active_record;dur=1.58, cache_generate.active_support;dur=1.45,
cache_write.active_support;dur=0.10, instantiation.active_record;dur=0.47,
start_processing.action_controller;dur=0.00, render.active_model_serializers;dur=2.40,
process_action.action_controller;dur=26.74
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-08-16 13:52:16 +00:00
- '2025-08-15T17:35:00.814016Z'
X-Request-Id:
2025-08-16 13:52:16 +00:00
- 21646e28-b201-4c43-9d07-28c4a41ea318
X-Runtime:
2025-08-16 13:52:16 +00:00
- '0.046113'
X-XSS-Protection:
- '0'
vary:
- Authorization, Origin
status:
code: 200
message: OK
2019-06-22 21:16:47 +00:00
- request:
body: null
headers:
Accept:
- '*/*'
Accept-Encoding:
2025-08-16 13:52:16 +00:00
- gzip, deflate, br
Authorization:
- Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
Connection:
- keep-alive
Content-Length:
- '0'
User-Agent:
- tests/v311
2017-11-30 00:54:52 +00:00
method: POST
2025-08-16 13:52:16 +00:00
uri: http://localhost:3000/api/v1/follow_requests/115033965466813222/reject
2017-11-30 00:54:52 +00:00
response:
body:
2025-08-16 13:52:16 +00:00
string: '{"id":"115033965466813222","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"requested_by":false,"domain_blocking":false,"endorsed":false,"note":"top
ebayer gerne wieder"}'
2017-11-30 00:54:52 +00:00
headers:
Cache-Control:
2023-04-23 18:22:33 +00:00
- private, no-store
Content-Length:
- '317'
Content-Security-Policy:
2023-04-23 18:22:33 +00:00
- default-src 'none'; frame-ancestors 'none'; form-action 'none'
Content-Type:
- application/json; charset=utf-8
ETag:
2025-08-16 13:52:16 +00:00
- W/"93a7ec1562e4d70121d96e3171b6fe44"
Referrer-Policy:
- strict-origin-when-cross-origin
Server-Timing:
2025-08-16 13:52:16 +00:00
- cache_read.active_support;dur=0.02, sql.active_record;dur=7.24, cache_generate.active_support;dur=0.93,
cache_write.active_support;dur=0.07, instantiation.active_record;dur=0.45,
start_processing.action_controller;dur=0.02, transaction.active_record;dur=7.26,
cache_delete.active_support;dur=0.03, cache_read_multi.active_support;dur=0.03,
cache_write_multi.active_support;dur=0.07, render.active_model_serializers;dur=0.18,
process_action.action_controller;dur=36.14
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-08-16 13:52:16 +00:00
- '2025-08-15T17:35:00.879032Z'
X-Request-Id:
2025-08-16 13:52:16 +00:00
- 7f0f5862-72de-4da3-936a-efb42a2abc18
X-Runtime:
2025-08-16 13:52:16 +00:00
- '0.055294'
X-XSS-Protection:
- '0'
vary:
- Authorization, Origin
status:
code: 200
message: OK
2017-11-30 00:54:52 +00:00
version: 1