diff options
Diffstat (limited to 'tests/cassettes/test_account_follow_unfollow.yaml')
-rw-r--r-- | tests/cassettes/test_account_follow_unfollow.yaml | 88 |
1 files changed, 73 insertions, 15 deletions
diff --git a/tests/cassettes/test_account_follow_unfollow.yaml b/tests/cassettes/test_account_follow_unfollow.yaml index 4564f68..cb3476d 100644 --- a/tests/cassettes/test_account_follow_unfollow.yaml +++ b/tests/cassettes/test_account_follow_unfollow.yaml | |||
@@ -1,6 +1,64 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: id=1234567890123457&reblogs=1 | 3 | body: null |
4 | headers: | ||
5 | Accept: | ||
6 | - '*/*' | ||
7 | Accept-Encoding: | ||
8 | - gzip, deflate | ||
9 | Authorization: | ||
10 | - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2 | ||
11 | Connection: | ||
12 | - keep-alive | ||
13 | User-Agent: | ||
14 | - tests/v311 | ||
15 | method: GET | ||
16 | uri: http://localhost:3000/api/v1/accounts/verify_credentials | ||
17 | response: | ||
18 | body: | ||
19 | string: '{"id":"109336623096259500","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-13T00: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}}' | ||
20 | headers: | ||
21 | Cache-Control: | ||
22 | - no-store | ||
23 | Content-Security-Policy: | ||
24 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | ||
25 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | ||
26 | style-src ''self'' http://localhost:3000 ''nonce-T1ZICefQ1sAxIU1E8QpJeQ==''; | ||
27 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | ||
28 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | ||
29 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | ||
30 | ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline'' | ||
31 | ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000; | ||
32 | worker-src ''self'' blob: http://localhost:3000' | ||
33 | Content-Type: | ||
34 | - application/json; charset=utf-8 | ||
35 | ETag: | ||
36 | - W/"045b82c55c495fceaaae2b0dc2b6d8db" | ||
37 | Referrer-Policy: | ||
38 | - strict-origin-when-cross-origin | ||
39 | Transfer-Encoding: | ||
40 | - chunked | ||
41 | Vary: | ||
42 | - Accept, Origin | ||
43 | X-Content-Type-Options: | ||
44 | - nosniff | ||
45 | X-Download-Options: | ||
46 | - noopen | ||
47 | X-Frame-Options: | ||
48 | - SAMEORIGIN | ||
49 | X-Permitted-Cross-Domain-Policies: | ||
50 | - none | ||
51 | X-Request-Id: | ||
52 | - d7fbb47a-8dd2-4027-8585-4f50025f219c | ||
53 | X-Runtime: | ||
54 | - '0.018187' | ||
55 | X-XSS-Protection: | ||
56 | - 1; mode=block | ||
57 | status: | ||
58 | code: 200 | ||
59 | message: OK | ||
60 | - request: | ||
61 | body: id=109336623096259500&reblogs=1 | ||
4 | headers: | 62 | headers: |
5 | Accept: | 63 | Accept: |
6 | - '*/*' | 64 | - '*/*' |
@@ -11,23 +69,23 @@ interactions: | |||
11 | Connection: | 69 | Connection: |
12 | - keep-alive | 70 | - keep-alive |
13 | Content-Length: | 71 | Content-Length: |
14 | - '29' | 72 | - '31' |
15 | Content-Type: | 73 | Content-Type: |
16 | - application/x-www-form-urlencoded | 74 | - application/x-www-form-urlencoded |
17 | User-Agent: | 75 | User-Agent: |
18 | - tests/v311 | 76 | - tests/v311 |
19 | method: POST | 77 | method: POST |
20 | uri: http://localhost:3000/api/v1/accounts/1234567890123457/follow | 78 | uri: http://localhost:3000/api/v1/accounts/109336623096259500/follow |
21 | response: | 79 | response: |
22 | body: | 80 | body: |
23 | string: '{"id":"1234567890123457","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":""}' | 81 | string: '{"id":"109336623096259500","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":""}' |
24 | headers: | 82 | headers: |
25 | Cache-Control: | 83 | Cache-Control: |
26 | - no-store | 84 | - no-store |
27 | Content-Security-Policy: | 85 | Content-Security-Policy: |
28 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 86 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
29 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 87 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
30 | style-src ''self'' http://localhost:3000 ''nonce-S201PEcCD1lfwJctUZA9LQ==''; | 88 | style-src ''self'' http://localhost:3000 ''nonce-TO/SuIL2cWx0uQ69DL6WXw==''; |
31 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 89 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
32 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 90 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
33 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 91 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -37,7 +95,7 @@ interactions: | |||
37 | Content-Type: | 95 | Content-Type: |
38 | - application/json; charset=utf-8 | 96 | - application/json; charset=utf-8 |
39 | ETag: | 97 | ETag: |
40 | - W/"7b35423f935b37a7249f9bee1e0f4eb5" | 98 | - W/"3db6c93f2af18b52d1b291d211927fba" |
41 | Referrer-Policy: | 99 | Referrer-Policy: |
42 | - strict-origin-when-cross-origin | 100 | - strict-origin-when-cross-origin |
43 | Transfer-Encoding: | 101 | Transfer-Encoding: |
@@ -57,11 +115,11 @@ interactions: | |||
57 | X-RateLimit-Remaining: | 115 | X-RateLimit-Remaining: |
58 | - '398' | 116 | - '398' |
59 | X-RateLimit-Reset: | 117 | X-RateLimit-Reset: |
60 | - '2022-11-08T00:00:00.610222Z' | 118 | - '2022-11-14T00:00:00.184928Z' |
61 | X-Request-Id: | 119 | X-Request-Id: |
62 | - bc8aee88-fe79-4633-93b0-0afb2c5ed64d | 120 | - 764cf6a3-06a8-41fc-a96f-4bb44baeb69c |
63 | X-Runtime: | 121 | X-Runtime: |
64 | - '0.048402' | 122 | - '0.026903' |
65 | X-XSS-Protection: | 123 | X-XSS-Protection: |
66 | - 1; mode=block | 124 | - 1; mode=block |
67 | status: | 125 | status: |
@@ -83,17 +141,17 @@ interactions: | |||
83 | User-Agent: | 141 | User-Agent: |
84 | - tests/v311 | 142 | - tests/v311 |
85 | method: POST | 143 | method: POST |
86 | uri: http://localhost:3000/api/v1/accounts/1234567890123457/unfollow | 144 | uri: http://localhost:3000/api/v1/accounts/109336623096259500/unfollow |
87 | response: | 145 | response: |
88 | body: | 146 | body: |
89 | string: '{"id":"1234567890123457","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":""}' | 147 | string: '{"id":"109336623096259500","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":""}' |
90 | headers: | 148 | headers: |
91 | Cache-Control: | 149 | Cache-Control: |
92 | - no-store | 150 | - no-store |
93 | Content-Security-Policy: | 151 | Content-Security-Policy: |
94 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src | 152 | - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src |
95 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; | 153 | ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; |
96 | style-src ''self'' http://localhost:3000 ''nonce-v1EOH3UJtmzE96d0J4nNOQ==''; | 154 | style-src ''self'' http://localhost:3000 ''nonce-bbyEMlsIgYoo0SPD+UrZBg==''; |
97 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' | 155 | media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' |
98 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' | 156 | https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' |
99 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 | 157 | data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 |
@@ -103,7 +161,7 @@ interactions: | |||
103 | Content-Type: | 161 | Content-Type: |
104 | - application/json; charset=utf-8 | 162 | - application/json; charset=utf-8 |
105 | ETag: | 163 | ETag: |
106 | - W/"25b4d9d745f6bc92c8314562f7461bc8" | 164 | - W/"945f7c7731010ff2bfa8f3f3889c235c" |
107 | Referrer-Policy: | 165 | Referrer-Policy: |
108 | - strict-origin-when-cross-origin | 166 | - strict-origin-when-cross-origin |
109 | Transfer-Encoding: | 167 | Transfer-Encoding: |
@@ -119,9 +177,9 @@ interactions: | |||
119 | X-Permitted-Cross-Domain-Policies: | 177 | X-Permitted-Cross-Domain-Policies: |
120 | - none | 178 | - none |
121 | X-Request-Id: | 179 | X-Request-Id: |
122 | - 6d69866a-0634-41b6-b5a1-5d3c3844d1d5 | 180 | - 4818f0ba-7bd5-449a-9202-d6d207e79426 |
123 | X-Runtime: | 181 | X-Runtime: |
124 | - '0.029893' | 182 | - '0.021879' |
125 | X-XSS-Protection: | 183 | X-XSS-Protection: |
126 | - 1; mode=block | 184 | - 1; mode=block |
127 | status: | 185 | status: |