aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_follow_request_authorize.yaml')
-rw-r--r--tests/cassettes/test_follow_request_authorize.yaml313
1 files changed, 224 insertions, 89 deletions
diff --git a/tests/cassettes/test_follow_request_authorize.yaml b/tests/cassettes/test_follow_request_authorize.yaml
index 9df1f49..49f21ff 100644
--- a/tests/cassettes/test_follow_request_authorize.yaml
+++ b/tests/cassettes/test_follow_request_authorize.yaml
@@ -1,115 +1,250 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: reblogs=1&id=1234567890123457 3 body: id=1234567890123456&reblogs=1
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept:
6 Accept-Encoding: ['gzip, deflate'] 6 - '*/*'
7 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] 7 Accept-Encoding:
8 Connection: [keep-alive] 8 - gzip, deflate
9 Content-Length: ['29'] 9 Authorization:
10 Content-Type: [application/x-www-form-urlencoded] 10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2
11 User-Agent: [python-requests/2.18.4] 11 Connection:
12 - keep-alive
13 Content-Length:
14 - '29'
15 Content-Type:
16 - application/x-www-form-urlencoded
17 User-Agent:
18 - tests/v311
12 method: POST 19 method: POST
13 uri: http://localhost:3000/api/v1/accounts/1234567890123457/follow 20 uri: http://localhost:3000/api/v1/accounts/1234567890123456/follow
14 response: 21 response:
15 body: {string: '{"id":"1234567890123457","following":false,"showing_reblogs":true,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"domain_blocking":false,"endorsed":false}'} 22 body:
23 string: '{"id":"1234567890123456","following":false,"showing_reblogs":true,"notifying":false,"languages":null,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":true,"domain_blocking":false,"endorsed":false,"note":""}'
16 headers: 24 headers:
17 Cache-Control: ['no-cache, no-store'] 25 Cache-Control:
18 Content-Type: [application/json; charset=utf-8] 26 - no-store
19 Referrer-Policy: [strict-origin-when-cross-origin] 27 Content-Security-Policy:
20 Transfer-Encoding: [chunked] 28 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
21 Vary: ['Accept-Encoding, Origin'] 29 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
22 X-Content-Type-Options: [nosniff] 30 style-src ''self'' http://localhost:3000 ''nonce-eBcnVRxXTD6sc1jLLNEIpQ=='';
23 X-Download-Options: [noopen] 31 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
24 X-Frame-Options: [SAMEORIGIN] 32 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
25 X-Permitted-Cross-Domain-Policies: [none] 33 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
26 X-Request-Id: [bb7c2c07-d13c-4d7a-a0f9-9ae39f4cb584] 34 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
27 X-Runtime: ['0.080489'] 35 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
28 X-XSS-Protection: [1; mode=block] 36 worker-src ''self'' blob: http://localhost:3000'
29 content-length: ['224'] 37 Content-Type:
30 status: {code: 200, message: OK} 38 - application/json; charset=utf-8
39 ETag:
40 - W/"acf0f73e9e8c6d95924890c1315db0fd"
41 Referrer-Policy:
42 - strict-origin-when-cross-origin
43 Transfer-Encoding:
44 - chunked
45 Vary:
46 - Accept, Origin
47 X-Content-Type-Options:
48 - nosniff
49 X-Download-Options:
50 - noopen
51 X-Frame-Options:
52 - SAMEORIGIN
53 X-Permitted-Cross-Domain-Policies:
54 - none
55 X-RateLimit-Limit:
56 - '400'
57 X-RateLimit-Remaining:
58 - '399'
59 X-RateLimit-Reset:
60 - '2022-11-08T00:00:00.545038Z'
61 X-Request-Id:
62 - f3d6ccfb-2179-4e8c-bcb5-fb46c0870edd
63 X-Runtime:
64 - '0.028249'
65 X-XSS-Protection:
66 - 1; mode=block
67 status:
68 code: 200
69 message: OK
31- request: 70- request:
32 body: null 71 body: null
33 headers: 72 headers:
34 Accept: ['*/*'] 73 Accept:
35 Accept-Encoding: ['gzip, deflate'] 74 - '*/*'
36 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_3] 75 Accept-Encoding:
37 Connection: [keep-alive] 76 - gzip, deflate
38 User-Agent: [python-requests/2.18.4] 77 Authorization:
78 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
79 Connection:
80 - keep-alive
81 User-Agent:
82 - tests/v311
39 method: GET 83 method: GET
40 uri: http://localhost:3000/api/v1/follow_requests 84 uri: http://localhost:3000/api/v1/follow_requests
41 response: 85 response:
42 body: {string: '[{"id":"1","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2020-02-22T19:13:53.944Z","note":"\u003cp\u003e\u003c/p\u003e","url":"http://localhost/@admin","avatar":"http://localhost/avatars/original/missing.png","avatar_static":"http://localhost/avatars/original/missing.png","header":"http://localhost/headers/original/missing.png","header_static":"http://localhost/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":0,"last_status_at":"2020-02-22","emojis":[],"fields":[]}]'} 86 body:
87 string: '[{"id":"109304268902557892","username":"admin","acct":"admin","display_name":"","locked":false,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00: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":3,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[]}]'
43 headers: 88 headers:
44 Cache-Control: ['no-cache, no-store'] 89 Cache-Control:
45 Content-Type: [application/json; charset=utf-8] 90 - no-store
46 Link: ['<http://localhost:3000/api/v1/follow_requests?since_id=1>; rel="prev"'] 91 Content-Security-Policy:
47 Referrer-Policy: [strict-origin-when-cross-origin] 92 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
48 Transfer-Encoding: [chunked] 93 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
49 Vary: ['Accept-Encoding, Origin'] 94 style-src ''self'' http://localhost:3000 ''nonce-Pc83BwT56SW0tYznMK8o3w=='';
50 X-Content-Type-Options: [nosniff] 95 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
51 X-Download-Options: [noopen] 96 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
52 X-Frame-Options: [SAMEORIGIN] 97 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
53 X-Permitted-Cross-Domain-Policies: [none] 98 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
54 X-Request-Id: [f509673d-01e8-4308-9961-dc2a05bde33a] 99 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
55 X-Runtime: ['0.039207'] 100 worker-src ''self'' blob: http://localhost:3000'
56 X-XSS-Protection: [1; mode=block] 101 Content-Type:
57 content-length: ['589'] 102 - application/json; charset=utf-8
58 status: {code: 200, message: OK} 103 ETag:
104 - W/"e614b4039f2a8a9f7ac18423d5f529e5"
105 Link:
106 - <http://localhost:3000/api/v1/follow_requests?since_id=1>; rel="prev"
107 Referrer-Policy:
108 - strict-origin-when-cross-origin
109 Transfer-Encoding:
110 - chunked
111 Vary:
112 - Accept, Origin
113 X-Content-Type-Options:
114 - nosniff
115 X-Download-Options:
116 - noopen
117 X-Frame-Options:
118 - SAMEORIGIN
119 X-Permitted-Cross-Domain-Policies:
120 - none
121 X-Request-Id:
122 - aa42e402-bb45-4fff-9987-aadf53bd87d7
123 X-Runtime:
124 - '0.014011'
125 X-XSS-Protection:
126 - 1; mode=block
127 status:
128 code: 200
129 message: OK
59- request: 130- request:
60 body: null 131 body: null
61 headers: 132 headers:
62 Accept: ['*/*'] 133 Accept:
63 Accept-Encoding: ['gzip, deflate'] 134 - '*/*'
64 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_3] 135 Accept-Encoding:
65 Connection: [keep-alive] 136 - gzip, deflate
66 Content-Length: ['0'] 137 Authorization:
67 User-Agent: [python-requests/2.18.4] 138 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
139 Connection:
140 - keep-alive
141 Content-Length:
142 - '0'
143 User-Agent:
144 - tests/v311
68 method: POST 145 method: POST
69 uri: http://localhost:3000/api/v1/follow_requests/1/authorize 146 uri: http://localhost:3000/api/v1/follow_requests/109304268902557892/authorize
70 response: 147 response:
71 body: {string: '{"id":"1","following":false,"showing_reblogs":false,"followed_by":true,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} 148 body:
149 string: '{"id":"109304268902557892","following":false,"showing_reblogs":false,"notifying":false,"languages":null,"followed_by":true,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false,"note":""}'
72 headers: 150 headers:
73 Cache-Control: ['no-cache, no-store'] 151 Cache-Control:
74 Content-Type: [application/json; charset=utf-8] 152 - no-store
75 Referrer-Policy: [strict-origin-when-cross-origin] 153 Content-Security-Policy:
76 Transfer-Encoding: [chunked] 154 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
77 Vary: ['Accept-Encoding, Origin'] 155 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
78 X-Content-Type-Options: [nosniff] 156 style-src ''self'' http://localhost:3000 ''nonce-ZgTAOj25y6zVTtehXme3Mg=='';
79 X-Download-Options: [noopen] 157 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
80 X-Frame-Options: [SAMEORIGIN] 158 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
81 X-Permitted-Cross-Domain-Policies: [none] 159 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
82 X-Request-Id: [f1d55470-ab1c-47a1-af31-0f13c69d20d8] 160 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
83 X-Runtime: ['0.128120'] 161 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
84 X-XSS-Protection: [1; mode=block] 162 worker-src ''self'' blob: http://localhost:3000'
85 content-length: ['210'] 163 Content-Type:
86 status: {code: 200, message: OK} 164 - application/json; charset=utf-8
165 ETag:
166 - W/"12e2c3c81681c48d46a2a0676a657912"
167 Referrer-Policy:
168 - strict-origin-when-cross-origin
169 Transfer-Encoding:
170 - chunked
171 Vary:
172 - Accept, Origin
173 X-Content-Type-Options:
174 - nosniff
175 X-Download-Options:
176 - noopen
177 X-Frame-Options:
178 - SAMEORIGIN
179 X-Permitted-Cross-Domain-Policies:
180 - none
181 X-Request-Id:
182 - a92fadab-ead2-44d0-9875-4aa38e0f7df0
183 X-Runtime:
184 - '0.040226'
185 X-XSS-Protection:
186 - 1; mode=block
187 status:
188 code: 200
189 message: OK
87- request: 190- request:
88 body: null 191 body: null
89 headers: 192 headers:
90 Accept: ['*/*'] 193 Accept:
91 Accept-Encoding: ['gzip, deflate'] 194 - '*/*'
92 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2] 195 Accept-Encoding:
93 Connection: [keep-alive] 196 - gzip, deflate
94 Content-Length: ['0'] 197 Authorization:
95 User-Agent: [python-requests/2.18.4] 198 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN_2
199 Connection:
200 - keep-alive
201 Content-Length:
202 - '0'
203 User-Agent:
204 - tests/v311
96 method: POST 205 method: POST
97 uri: http://localhost:3000/api/v1/accounts/1234567890123457/unfollow 206 uri: http://localhost:3000/api/v1/accounts/1234567890123456/unfollow
98 response: 207 response:
99 body: {string: '{"id":"1234567890123457","following":false,"showing_reblogs":false,"followed_by":false,"blocking":false,"blocked_by":false,"muting":false,"muting_notifications":false,"requested":false,"domain_blocking":false,"endorsed":false}'} 208 body:
209 string: '{"id":"1234567890123456","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":""}'
100 headers: 210 headers:
101 Cache-Control: ['no-cache, no-store'] 211 Cache-Control:
102 Content-Type: [application/json; charset=utf-8] 212 - no-store
103 Referrer-Policy: [strict-origin-when-cross-origin] 213 Content-Security-Policy:
104 Transfer-Encoding: [chunked] 214 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
105 Vary: ['Accept-Encoding, Origin'] 215 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
106 X-Content-Type-Options: [nosniff] 216 style-src ''self'' http://localhost:3000 ''nonce-qiwxjL86uSlsu74vn0vJSQ=='';
107 X-Download-Options: [noopen] 217 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
108 X-Frame-Options: [SAMEORIGIN] 218 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
109 X-Permitted-Cross-Domain-Policies: [none] 219 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
110 X-Request-Id: [c409b48c-61ec-4448-b921-e7002d840072] 220 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
111 X-Runtime: ['0.104437'] 221 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
112 X-XSS-Protection: [1; mode=block] 222 worker-src ''self'' blob: http://localhost:3000'
113 content-length: ['226'] 223 Content-Type:
114 status: {code: 200, message: OK} 224 - application/json; charset=utf-8
225 ETag:
226 - W/"76448d2d20dfa7540764936ef5dbc7a9"
227 Referrer-Policy:
228 - strict-origin-when-cross-origin
229 Transfer-Encoding:
230 - chunked
231 Vary:
232 - Accept, Origin
233 X-Content-Type-Options:
234 - nosniff
235 X-Download-Options:
236 - noopen
237 X-Frame-Options:
238 - SAMEORIGIN
239 X-Permitted-Cross-Domain-Policies:
240 - none
241 X-Request-Id:
242 - c8fce5ec-8931-48e1-97ab-dbcda98dfb82
243 X-Runtime:
244 - '0.018480'
245 X-XSS-Protection:
246 - 1; mode=block
247 status:
248 code: 200
249 message: OK
115version: 1 250version: 1
Powered by cgit v1.2.3 (git 2.41.0)