From 0159bd7caecc9c3311f5f18869321b564f05ac89 Mon Sep 17 00:00:00 2001 From: halcy Date: Thu, 1 Dec 2022 22:07:42 +0200 Subject: commit new set of tests --- .../test_account_remove_from_followers.yaml | 98 ++++++++++++---------- 1 file changed, 52 insertions(+), 46 deletions(-) (limited to 'tests/cassettes/test_account_remove_from_followers.yaml') diff --git a/tests/cassettes/test_account_remove_from_followers.yaml b/tests/cassettes/test_account_remove_from_followers.yaml index 9182231..52f4426 100644 --- a/tests/cassettes/test_account_remove_from_followers.yaml +++ b/tests/cassettes/test_account_remove_from_followers.yaml @@ -16,14 +16,14 @@ interactions: uri: http://localhost:3000/api/v1/accounts/verify_credentials response: body: - string: '{"id":"109411885671340064","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-26T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' + string: '{"id":"109440137501589086","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-12-01T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":"2022-12-01","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-R0dOyCBcX1yy1m5FC+QBeg==''; + style-src ''self'' http://localhost:3000 ''nonce-Za2+gvLS6ya0EZELVQVPHg==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -33,7 +33,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"a92dcb08b6f874d680c45eede3cca2ec" + - W/"dd450e6d64e656efa28c76c7d7b7eef0" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -49,9 +49,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 3cb66a54-d7b2-41d3-9286-d7a3408ef1a3 + - 73e786a7-c787-48ba-9ab8-51917e9be030 X-Runtime: - - '0.020531' + - '0.013809' X-XSS-Protection: - 1; mode=block status: @@ -75,17 +75,18 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/109411885671340064/follow + uri: http://localhost:3000/api/v1/accounts/109440137501589086/follow response: body: - string: '{"id":"109411885671340064","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}' + string: '{"id":"109440137501589086","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":"top + ebayer gerne wieder"}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-+BjRNgT24KKtrEiWOEtFJQ==''; + style-src ''self'' http://localhost:3000 ''nonce-8R/cSHqabkPc3B6rT9Zoiw==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -95,7 +96,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"af292124c7f7757a6ec996d381b1428e" + - W/"9e6b25ae9722f5f6fffb762a775cf850" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -113,13 +114,13 @@ interactions: X-RateLimit-Limit: - '400' X-RateLimit-Remaining: - - '398' + - '395' X-RateLimit-Reset: - - '2022-11-28T00:00:00.639846Z' + - '2022-12-02T00:00:00.311229Z' X-Request-Id: - - b8962ba9-f875-4975-97bb-df94b6eb4ffc + - 09dd2d65-085d-4e15-a0e5-d6e1e44aea3c X-Runtime: - - '0.043218' + - '0.032856' X-XSS-Protection: - 1; mode=block status: @@ -142,14 +143,14 @@ interactions: uri: http://localhost:3000/api/v1/accounts/verify_credentials response: body: - string: '{"id":"109411885671340064","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-26T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"following_count":0,"statuses_count":0,"last_status_at":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' + string: '{"id":"109440137501589086","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-12-01T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":1,"following_count":0,"statuses_count":0,"last_status_at":"2022-12-01","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-sOq1lKB5A0ber9S6v+u7DA==''; + style-src ''self'' http://localhost:3000 ''nonce-rvQV/KoKzBdAOJ4XqzSesg==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -159,7 +160,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"defdf16b9376bb51a9a69e6d6a5d3ab8" + - W/"0cb682d7a7793bb1ad16c4ba8761169c" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -175,9 +176,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 150cfa42-bd36-4a82-9b22-b14db3938024 + - 99454d82-71af-495a-86e8-9219d1445092 X-Runtime: - - '0.016869' + - '0.012688' X-XSS-Protection: - 1; mode=block status: @@ -197,17 +198,18 @@ interactions: User-Agent: - tests/v311 method: GET - uri: http://localhost:3000/api/v1/accounts/relationships?id=109411885671340064 + uri: http://localhost:3000/api/v1/accounts/relationships?id=109440137501589086 response: body: - string: '[{"id":"109411885671340064","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}]' + string: '[{"id":"109440137501589086","following":true,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":"top + ebayer gerne wieder"}]' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-S2ETIreO4os8h47eriy+PA==''; + style-src ''self'' http://localhost:3000 ''nonce-qa4O7Oca/pKOoAjm8CSq0Q==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -217,7 +219,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"e8e7c78d4d5bca66b2af884722eb658b" + - W/"9dbe44dffd2bb1c779aad2fbbed0b202" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -233,9 +235,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - ad0bc94a-d5d5-476f-a8eb-52aa8d9a9227 + - 5eafc753-e2d6-4af6-8278-178af56ef6c1 X-Runtime: - - '0.014908' + - '0.013273' X-XSS-Protection: - 1; mode=block status: @@ -258,14 +260,17 @@ interactions: uri: http://localhost:3000/api/v1/accounts/verify_credentials response: body: - string: '{"id":"109411885927532888","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-26T00:00:00.000Z","note":"","url":"http://localhost:3000/@mastodonpy_test","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":1,"statuses_count":0,"last_status_at":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"-99","name":"","permissions":"65536","color":"","highlighted":false}}' + string: '{"id":"109440137734600341","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John + Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-12-01T00:00:00.000Z","note":"\u003cp\u003eI + walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/109/440/137/734/600/341/original/1fa6adb0173e410e.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/109/440/137/734/600/341/original/1fa6adb0173e410e.jpg","header":"http://localhost:3000/system/accounts/headers/109/440/137/734/600/341/original/96de51cc44c4a5d9.jpg","header_static":"http://localhost:3000/system/accounts/headers/109/440/137/734/600/341/original/96de51cc44c4a5d9.jpg","followers_count":0,"following_count":1,"statuses_count":0,"last_status_at":"2022-12-01","noindex":false,"source":{"privacy":"public","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},"emojis":[],"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: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-+NtKlOuZVkU8Acusia2Htw==''; + style-src ''self'' http://localhost:3000 ''nonce-Me+yanvGLGG3SZlbPp7nGg==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -275,7 +280,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"17970f44d54945f9f38ba671d9d60356" + - W/"e7d4ee8ba302b63c8422fd14c56c8bcb" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -291,9 +296,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - 74be946f-6e21-4ab1-b9df-5cde9dea3ea0 + - 0395f708-45aa-4df4-b49f-339a6a9d845d X-Runtime: - - '0.016156' + - '0.012118' X-XSS-Protection: - 1; mode=block status: @@ -315,17 +320,17 @@ interactions: User-Agent: - tests/v311 method: POST - uri: http://localhost:3000/api/v1/accounts/109411885927532888/remove_from_followers + uri: http://localhost:3000/api/v1/accounts/109440137734600341/remove_from_followers response: body: - string: '{"id":"109411885927532888","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}' + string: '{"id":"109440137734600341","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-I3WirYh4zIJil4fz4Ypvuw==''; + style-src ''self'' http://localhost:3000 ''nonce-11VGnaZBhEXnnwpKWPEpnQ==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -335,7 +340,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"cafa36e073f0abd1d761a2481756af20" + - W/"6ad3d4f38bad5f3ddf7f108290c8f81f" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -351,9 +356,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - f87c5171-28c0-4376-8fa8-b9dd0ae5f1e1 + - 7a02ecc3-e726-477c-88d1-64aba24b7b5a X-Runtime: - - '0.023087' + - '0.026523' X-XSS-Protection: - 1; mode=block status: @@ -376,14 +381,14 @@ interactions: uri: http://localhost:3000/api/v1/accounts/verify_credentials response: body: - string: '{"id":"109411885671340064","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-26T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":null,"noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' + string: '{"id":"109440137501589086","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-12-01T00:00:00.000Z","note":"","url":"http://localhost:3000/@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":"2022-12-01","noindex":false,"source":{"privacy":"public","sensitive":false,"language":null,"note":"","fields":[],"follow_requests_count":0},"emojis":[],"fields":[],"role":{"id":"3","name":"Owner","permissions":"1048575","color":"","highlighted":true}}' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-6VHUdI/c1cfanzBNaHf3CA==''; + style-src ''self'' http://localhost:3000 ''nonce-/qqBZNdKPZD22QO9YCL+TA==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -393,7 +398,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"a92dcb08b6f874d680c45eede3cca2ec" + - W/"dd450e6d64e656efa28c76c7d7b7eef0" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -409,9 +414,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - bdcd3a80-4ad7-48f1-acbb-7841dccaf9cd + - 704b70c9-f8b1-4563-9d6c-9bd62afec230 X-Runtime: - - '0.015990' + - '0.011993' X-XSS-Protection: - 1; mode=block status: @@ -431,17 +436,18 @@ interactions: User-Agent: - tests/v311 method: GET - uri: http://localhost:3000/api/v1/accounts/relationships?id=109411885671340064 + uri: http://localhost:3000/api/v1/accounts/relationships?id=109440137501589086 response: body: - string: '[{"id":"109411885671340064","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}]' + string: '[{"id":"109440137501589086","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":"top + ebayer gerne wieder"}]' headers: Cache-Control: - no-store Content-Security-Policy: - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; - style-src ''self'' http://localhost:3000 ''nonce-tRCVlnmRrPBbrJTyH85B4w==''; + style-src ''self'' http://localhost:3000 ''nonce-FRm+PDPEQPGC6A2lM3BmwA==''; media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 @@ -451,7 +457,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ETag: - - W/"e0ec461bb1e1fc6ba00e167394f26490" + - W/"d05bd978998b301fdaf7ee78dc64ad26" Referrer-Policy: - strict-origin-when-cross-origin Transfer-Encoding: @@ -467,9 +473,9 @@ interactions: X-Permitted-Cross-Domain-Policies: - none X-Request-Id: - - e869b74d-9f48-4b05-8fdc-a33cb6d82924 + - f703ff14-6582-4667-b158-09c965992ff9 X-Runtime: - - '0.012606' + - '0.010010' X-XSS-Protection: - 1; mode=block status: -- cgit v1.2.3