aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_app_account_create.yaml')
-rw-r--r--tests/cassettes/test_app_account_create.yaml307
1 files changed, 220 insertions, 87 deletions
diff --git a/tests/cassettes/test_app_account_create.yaml b/tests/cassettes/test_app_account_create.yaml
index 17920fd..1478f52 100644
--- a/tests/cassettes/test_app_account_create.yaml
+++ b/tests/cassettes/test_app_account_create.yaml
@@ -2,114 +2,247 @@ interactions:
2- request: 2- request:
3 body: client_name=mastodon.py+generated+test+app&scopes=read+write+follow+push&redirect_uris=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob 3 body: client_name=mastodon.py+generated+test+app&scopes=read+write+follow+push&redirect_uris=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob
4 headers: 4 headers:
5 Accept: ['*/*'] 5 Accept:
6 Accept-Encoding: ['gzip, deflate'] 6 - '*/*'
7 Connection: [keep-alive] 7 Accept-Encoding:
8 Content-Length: ['122'] 8 - gzip, deflate
9 Content-Type: [application/x-www-form-urlencoded] 9 Connection:
10 User-Agent: [python-requests/2.18.4] 10 - keep-alive
11 Content-Length:
12 - '122'
13 Content-Type:
14 - application/x-www-form-urlencoded
15 User-Agent:
16 - python-requests/2.28.1
11 method: POST 17 method: POST
12 uri: http://localhost:3000/api/v1/apps 18 uri: http://localhost:3000/api/v1/apps
13 response: 19 response:
14 body: {string: '{"id":"2","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"EPr2E85ytcwDMnx2E2jQ9w34FcA4GHy0AoxmOvES4yQ","client_secret":"9cOEKAblYTsCOMXIX0iO4SyUi6_DlPPaTJW13IDj2FA","vapid_key":"BPSW9N0oBHCeTlN6VgEPwlf36QQzuU6XtxguTJSM9xyW9kxnN2I_lzcHsk3ShJMRa0Na7t2kiE9UyJWrtQOsTJo="}'} 20 body:
21 string: '{"id":"2","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"y1kQMo51iTqe-Qn5OSp4DcAkyGhRx6gN8c7kX0GvlVU","client_secret":"vUkylcdbR0cyzGi_ufOBAvHG62J1ylhSAU9tn_en96E","vapid_key":"BFsPJBvWr6iQB4n0QAxBbqg5_MLh-Rm1we2OefcfRUaqTrZrB6k0E9FdzlBWD_xp8KAJrsWetwf2-l11cvSQnDU="}'
15 headers: 22 headers:
16 Cache-Control: ['no-cache, no-store'] 23 Cache-Control:
17 Content-Type: [application/json; charset=utf-8] 24 - no-store
18 Referrer-Policy: [strict-origin-when-cross-origin] 25 Content-Security-Policy:
19 Transfer-Encoding: [chunked] 26 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
20 Vary: ['Accept-Encoding, Origin'] 27 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
21 X-Content-Type-Options: [nosniff] 28 style-src ''self'' http://localhost:3000 ''nonce-Z7I2rE1EEPiaowZZKSxSNQ=='';
22 X-Download-Options: [noopen] 29 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
23 X-Frame-Options: [SAMEORIGIN] 30 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
24 X-Permitted-Cross-Domain-Policies: [none] 31 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
25 X-Request-Id: [eb7e8c7c-dce0-44b7-9cba-93e54c88bd92] 32 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
26 X-Runtime: ['0.042580'] 33 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
27 X-XSS-Protection: [1; mode=block] 34 worker-src ''self'' blob: http://localhost:3000'
28 content-length: ['331'] 35 Content-Type:
29 status: {code: 200, message: OK} 36 - application/json; charset=utf-8
37 ETag:
38 - W/"55aed2ae4f7388e3a3d1ad231530cb80"
39 Referrer-Policy:
40 - strict-origin-when-cross-origin
41 Transfer-Encoding:
42 - chunked
43 Vary:
44 - Accept, Origin
45 X-Content-Type-Options:
46 - nosniff
47 X-Download-Options:
48 - noopen
49 X-Frame-Options:
50 - SAMEORIGIN
51 X-Permitted-Cross-Domain-Policies:
52 - none
53 X-Request-Id:
54 - c5b53619-b3de-4324-8802-3e5179eb6217
55 X-Runtime:
56 - '0.012107'
57 X-XSS-Protection:
58 - 1; mode=block
59 status:
60 code: 200
61 message: OK
30- request: 62- request:
31 body: null 63 body: null
32 headers: 64 headers:
33 Accept: ['*/*'] 65 Accept:
34 Accept-Encoding: ['gzip, deflate'] 66 - '*/*'
35 Connection: [keep-alive] 67 Accept-Encoding:
36 User-Agent: [python-requests/2.18.4] 68 - gzip, deflate
69 Connection:
70 - keep-alive
71 User-Agent:
72 - python-requests/2.28.1
37 method: GET 73 method: GET
38 uri: http://localhost:3000/api/v1/instance/ 74 uri: http://localhost:3000/api/v1/instance/
39 response: 75 response:
40 body: {string: '{"uri":"localhost","title":"Mastodon","short_description":"","description":"","email":"","version":"3.1.1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":3,"status_count":1,"domain_count":0},"thumbnail":"http://localhost/packs/media/images/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","languages":["en"],"registrations":true,"approval_required":false,"contact_account":null}'} 76 body:
77 string: '{"uri":"localhost:3000","title":"Mastodon","short_description":"","description":"","email":"","version":"4.0.0rc1","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":0,"domain_count":0},"thumbnail":"http://localhost:3000/packs/media/images/preview-6399aebd96ccf025654e2977454f168f.png","languages":["en"],"registrations":true,"approval_required":false,"invites_enabled":true,"configuration":{"accounts":{"max_featured_tags":10},"statuses":{"max_characters":500,"max_media_attachments":4,"characters_reserved_per_url":23},"media_attachments":{"supported_mime_types":["image/jpeg","image/png","image/gif","image/heic","image/heif","image/webp","image/avif","video/webm","video/mp4","video/quicktime","video/ogg","audio/wave","audio/wav","audio/x-wav","audio/x-pn-wave","audio/vnd.wave","audio/ogg","audio/vorbis","audio/mpeg","audio/mp3","audio/webm","audio/flac","audio/aac","audio/m4a","audio/x-m4a","audio/mp4","audio/3gpp","video/x-ms-asf"],"image_size_limit":10485760,"image_matrix_limit":16777216,"video_size_limit":41943040,"video_frame_rate_limit":60,"video_matrix_limit":2304000},"polls":{"max_options":4,"max_characters_per_option":50,"min_expiration":300,"max_expiration":2629746}},"contact_account":null,"rules":[]}'
41 headers: 78 headers:
42 Cache-Control: ['max-age=180, public'] 79 Cache-Control:
43 Content-Type: [application/json; charset=utf-8] 80 - max-age=180, public
44 Date: ['Sat, 22 Feb 2020 19:28:14 GMT'] 81 Content-Security-Policy:
45 ETag: [W/"7ac51e4e7519042ec38c63400c9f91c7"] 82 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
46 Referrer-Policy: [strict-origin-when-cross-origin] 83 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
47 Transfer-Encoding: [chunked] 84 style-src ''self'' http://localhost:3000 ''nonce-zDrB5n/9fTsJOKEzD8wy6Q=='';
48 Vary: ['Accept-Encoding, Origin'] 85 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
49 X-Content-Type-Options: [nosniff] 86 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
50 X-Download-Options: [noopen] 87 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
51 X-Frame-Options: [SAMEORIGIN] 88 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
52 X-Permitted-Cross-Domain-Policies: [none] 89 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
53 X-Request-Id: [4a5c507c-e524-45bc-a59e-fc8d05cfa3be] 90 worker-src ''self'' blob: http://localhost:3000'
54 X-Runtime: ['0.091599'] 91 Content-Type:
55 X-XSS-Protection: [1; mode=block] 92 - application/json; charset=utf-8
56 content-length: ['397'] 93 Date:
57 status: {code: 200, message: OK} 94 - Mon, 07 Nov 2022 19:54:35 GMT
95 ETag:
96 - W/"45319ebd79e4bcdb5bf907c47f95d0a1"
97 Referrer-Policy:
98 - strict-origin-when-cross-origin
99 Transfer-Encoding:
100 - chunked
101 Vary:
102 - Accept, Origin
103 X-Content-Type-Options:
104 - nosniff
105 X-Download-Options:
106 - noopen
107 X-Frame-Options:
108 - SAMEORIGIN
109 X-Permitted-Cross-Domain-Policies:
110 - none
111 X-Request-Id:
112 - 1f49f4cd-3eac-4680-9e73-abc5860a2c68
113 X-Runtime:
114 - '0.012674'
115 X-XSS-Protection:
116 - 1; mode=block
117 status:
118 code: 200
119 message: OK
58- request: 120- request:
59 body: scope=read+write+follow+push&client_id=EPr2E85ytcwDMnx2E2jQ9w34FcA4GHy0AoxmOvES4yQ&client_secret=9cOEKAblYTsCOMXIX0iO4SyUi6_DlPPaTJW13IDj2FA&grant_type=client_credentials 121 body: scope=read+write+follow+push&client_id=y1kQMo51iTqe-Qn5OSp4DcAkyGhRx6gN8c7kX0GvlVU&client_secret=vUkylcdbR0cyzGi_ufOBAvHG62J1ylhSAU9tn_en96E&grant_type=client_credentials
60 headers: 122 headers:
61 Accept: ['*/*'] 123 Accept:
62 Accept-Encoding: ['gzip, deflate'] 124 - '*/*'
63 Connection: [keep-alive] 125 Accept-Encoding:
64 Content-Length: ['170'] 126 - gzip, deflate
65 Content-Type: [application/x-www-form-urlencoded] 127 Connection:
66 User-Agent: [python-requests/2.18.4] 128 - keep-alive
129 Content-Length:
130 - '170'
131 Content-Type:
132 - application/x-www-form-urlencoded
133 User-Agent:
134 - python-requests/2.28.1
67 method: POST 135 method: POST
68 uri: http://localhost:3000/oauth/token 136 uri: http://localhost:3000/oauth/token
69 response: 137 response:
70 body: {string: '{"access_token":"e_sN2EaB2gdiiDcCVBIp3BPPL9bxkRyqUGWGEy3XsIg","token_type":"Bearer","scope":"read 138 body:
71 write follow push","created_at":1582399694}'} 139 string: '{"access_token":"L1hGcfjMpk7cEduCSOvsW0AxG4F69vsOKBlVjwc7qGc","token_type":"Bearer","scope":"read
140 write follow push","created_at":1667850875}'
72 headers: 141 headers:
73 Cache-Control: ['private, no-store'] 142 Cache-Control:
74 Content-Type: [application/json; charset=utf-8] 143 - no-store
75 ETag: [W/"3d2f4be1f0f3460ed11423e6a9afc7bf"] 144 Content-Security-Policy:
76 Pragma: [no-cache] 145 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
77 Transfer-Encoding: [chunked] 146 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
78 Vary: ['Accept-Encoding, Origin'] 147 style-src ''self'' http://localhost:3000 ''nonce-QhneeHlWNQGN4ZzPo5AGlA=='';
79 X-Request-Id: [2cf61c36-ad36-4c6e-919f-06980d46ef9e] 148 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
80 X-Runtime: ['0.041155'] 149 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
81 content-length: ['141'] 150 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
82 status: {code: 200, message: OK} 151 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
152 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
153 worker-src ''self'' blob: http://localhost:3000'
154 Content-Type:
155 - application/json; charset=utf-8
156 ETag:
157 - W/"7af583cf906052620174ef9d3333f6a2"
158 Pragma:
159 - no-cache
160 Referrer-Policy:
161 - strict-origin-when-cross-origin
162 Transfer-Encoding:
163 - chunked
164 Vary:
165 - Accept, Origin
166 X-Content-Type-Options:
167 - nosniff
168 X-Download-Options:
169 - noopen
170 X-Frame-Options:
171 - SAMEORIGIN
172 X-Permitted-Cross-Domain-Policies:
173 - none
174 X-Request-Id:
175 - 3567251f-9195-4b80-808d-1964781011df
176 X-Runtime:
177 - '0.011005'
178 X-XSS-Protection:
179 - 1; mode=block
180 status:
181 code: 200
182 message: OK
83- request: 183- request:
84 body: locale=en&agreement=1&email=email%40localhost86797&password=swordfish&username=coolguy86797&client_id=EPr2E85ytcwDMnx2E2jQ9w34FcA4GHy0AoxmOvES4yQ&client_secret=9cOEKAblYTsCOMXIX0iO4SyUi6_DlPPaTJW13IDj2FA 184 body: username=coolguy75493&password=swordfish&email=email%40localhost75493&agreement=1&locale=en&client_id=y1kQMo51iTqe-Qn5OSp4DcAkyGhRx6gN8c7kX0GvlVU&client_secret=vUkylcdbR0cyzGi_ufOBAvHG62J1ylhSAU9tn_en96E
85 headers: 185 headers:
86 Accept: ['*/*'] 186 Accept:
87 Accept-Encoding: ['gzip, deflate'] 187 - '*/*'
88 Authorization: [Bearer e_sN2EaB2gdiiDcCVBIp3BPPL9bxkRyqUGWGEy3XsIg] 188 Accept-Encoding:
89 Connection: [keep-alive] 189 - gzip, deflate
90 Content-Length: ['203'] 190 Authorization:
91 Content-Type: [application/x-www-form-urlencoded] 191 - Bearer L1hGcfjMpk7cEduCSOvsW0AxG4F69vsOKBlVjwc7qGc
92 User-Agent: [python-requests/2.18.4] 192 Connection:
193 - keep-alive
194 Content-Length:
195 - '203'
196 Content-Type:
197 - application/x-www-form-urlencoded
198 User-Agent:
199 - python-requests/2.28.1
93 method: POST 200 method: POST
94 uri: http://localhost:3000/api/v1/accounts 201 uri: http://localhost:3000/api/v1/accounts
95 response: 202 response:
96 body: {string: '{"access_token":"5VZ9ssSlTWJPyO8VGETEZNv2EiQVGXTfY-okvKdgNiw","token_type":"Bearer","scope":"read 203 body:
97 write follow push","created_at":1582399694}'} 204 string: '{"access_token":"aSBIxEzhi5SpWsN9R7BWUz56MR4ifrZ2Yc0U6tW5N-g","token_type":"Bearer","scope":"read
205 write follow push","created_at":1667850875}'
98 headers: 206 headers:
99 Cache-Control: ['private, no-store'] 207 Cache-Control:
100 Content-Type: [application/json; charset=utf-8] 208 - no-store
101 ETag: [W/"4ec66eff3387a9b02348f3cb4dc73773"] 209 Content-Security-Policy:
102 Pragma: [no-cache] 210 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
103 Referrer-Policy: [strict-origin-when-cross-origin] 211 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
104 Transfer-Encoding: [chunked] 212 style-src ''self'' http://localhost:3000 ''nonce-58qKmLv+dPNf3iXu/e/mBA=='';
105 Vary: ['Accept-Encoding, Origin'] 213 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
106 X-Content-Type-Options: [nosniff] 214 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
107 X-Download-Options: [noopen] 215 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
108 X-Frame-Options: [SAMEORIGIN] 216 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
109 X-Permitted-Cross-Domain-Policies: [none] 217 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
110 X-Request-Id: [aa57bc51-ac59-4fe8-b716-fbf2cc68d764] 218 worker-src ''self'' blob: http://localhost:3000'
111 X-Runtime: ['0.220777'] 219 Content-Type:
112 X-XSS-Protection: [1; mode=block] 220 - application/json; charset=utf-8
113 content-length: ['141'] 221 ETag:
114 status: {code: 200, message: OK} 222 - W/"fbe8aae776b4d8aa4b8c694b1a167bd4"
223 Pragma:
224 - no-cache
225 Referrer-Policy:
226 - strict-origin-when-cross-origin
227 Transfer-Encoding:
228 - chunked
229 Vary:
230 - Origin
231 X-Content-Type-Options:
232 - nosniff
233 X-Download-Options:
234 - noopen
235 X-Frame-Options:
236 - SAMEORIGIN
237 X-Permitted-Cross-Domain-Policies:
238 - none
239 X-Request-Id:
240 - cf9f9be6-b1f4-46e8-99da-ab0d71e7e5d1
241 X-Runtime:
242 - '0.097053'
243 X-XSS-Protection:
244 - 1; mode=block
245 status:
246 code: 200
247 message: OK
115version: 1 248version: 1
Powered by cgit v1.2.3 (git 2.41.0)