aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
commitb1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 (patch)
tree3ecf530456b311057658b3b2e749ad017074455b /tests/cassettes/test_app_account_create.yaml
parenta17b20cfa142469019cd5982ba200510afc1f884 (diff)
downloadmastodon.py-b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2.tar.gz
Add support for timed mutes, fix tests to actually pass with new setup
Diffstat (limited to 'tests/cassettes/test_app_account_create.yaml')
-rw-r--r--tests/cassettes/test_app_account_create.yaml52
1 files changed, 26 insertions, 26 deletions
diff --git a/tests/cassettes/test_app_account_create.yaml b/tests/cassettes/test_app_account_create.yaml
index 1478f52..024db62 100644
--- a/tests/cassettes/test_app_account_create.yaml
+++ b/tests/cassettes/test_app_account_create.yaml
@@ -18,14 +18,14 @@ interactions:
18 uri: http://localhost:3000/api/v1/apps 18 uri: http://localhost:3000/api/v1/apps
19 response: 19 response:
20 body: 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="}' 21 string: '{"id":"2","name":"mastodon.py generated test app","website":null,"redirect_uri":"urn:ietf:wg:oauth:2.0:oob","client_id":"GyGwG_h92z1F61g-fZEoz2PLVS6FINeOtwKYs2nsy0w","client_secret":"zvpc74o82B7RgdORoWoYo0nxC8CDtoXds_ZvT9Px4fY","vapid_key":"BNhzS25aKEIEjf6R76u-aFJ0xB7AQsoHet3nM5jpcjD_OXJmE8Coai8qV65lrSQXijqsEy_6-rNsAZmU0udnM4o="}'
22 headers: 22 headers:
23 Cache-Control: 23 Cache-Control:
24 - no-store 24 - no-store
25 Content-Security-Policy: 25 Content-Security-Policy:
26 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 26 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
27 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 27 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
28 style-src ''self'' http://localhost:3000 ''nonce-Z7I2rE1EEPiaowZZKSxSNQ==''; 28 style-src ''self'' http://localhost:3000 ''nonce-/d1v4DqcK5/TgWX7GNHjVQ=='';
29 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 29 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
30 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 30 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
31 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 31 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -35,7 +35,7 @@ interactions:
35 Content-Type: 35 Content-Type:
36 - application/json; charset=utf-8 36 - application/json; charset=utf-8
37 ETag: 37 ETag:
38 - W/"55aed2ae4f7388e3a3d1ad231530cb80" 38 - W/"4ce9809dcd86cc16beb029986d717234"
39 Referrer-Policy: 39 Referrer-Policy:
40 - strict-origin-when-cross-origin 40 - strict-origin-when-cross-origin
41 Transfer-Encoding: 41 Transfer-Encoding:
@@ -51,9 +51,9 @@ interactions:
51 X-Permitted-Cross-Domain-Policies: 51 X-Permitted-Cross-Domain-Policies:
52 - none 52 - none
53 X-Request-Id: 53 X-Request-Id:
54 - c5b53619-b3de-4324-8802-3e5179eb6217 54 - e1af1699-1f16-46b3-bffc-725af31bab1c
55 X-Runtime: 55 X-Runtime:
56 - '0.012107' 56 - '0.014188'
57 X-XSS-Protection: 57 X-XSS-Protection:
58 - 1; mode=block 58 - 1; mode=block
59 status: 59 status:
@@ -74,14 +74,14 @@ interactions:
74 uri: http://localhost:3000/api/v1/instance/ 74 uri: http://localhost:3000/api/v1/instance/
75 response: 75 response:
76 body: 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":[]}' 77 string: '{"uri":"localhost:3000","title":"Mastodon","short_description":"","description":"","email":"","version":"4.0.0rc2","urls":{"streaming_api":"ws://localhost:4000"},"stats":{"user_count":4,"status_count":1,"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":[]}'
78 headers: 78 headers:
79 Cache-Control: 79 Cache-Control:
80 - max-age=180, public 80 - max-age=180, public
81 Content-Security-Policy: 81 Content-Security-Policy:
82 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 82 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
83 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 83 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
84 style-src ''self'' http://localhost:3000 ''nonce-zDrB5n/9fTsJOKEzD8wy6Q==''; 84 style-src ''self'' http://localhost:3000 ''nonce-a0+4u/npIPiF7Sn8xwZI9Q=='';
85 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 85 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
86 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 86 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
87 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 87 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -91,9 +91,9 @@ interactions:
91 Content-Type: 91 Content-Type:
92 - application/json; charset=utf-8 92 - application/json; charset=utf-8
93 Date: 93 Date:
94 - Mon, 07 Nov 2022 19:54:35 GMT 94 - Sun, 13 Nov 2022 13:14:46 GMT
95 ETag: 95 ETag:
96 - W/"45319ebd79e4bcdb5bf907c47f95d0a1" 96 - W/"bf317ffab393d8d1da7195269f28968a"
97 Referrer-Policy: 97 Referrer-Policy:
98 - strict-origin-when-cross-origin 98 - strict-origin-when-cross-origin
99 Transfer-Encoding: 99 Transfer-Encoding:
@@ -109,16 +109,16 @@ interactions:
109 X-Permitted-Cross-Domain-Policies: 109 X-Permitted-Cross-Domain-Policies:
110 - none 110 - none
111 X-Request-Id: 111 X-Request-Id:
112 - 1f49f4cd-3eac-4680-9e73-abc5860a2c68 112 - a68915f9-8e74-4a79-b071-bbf2b04e7b3b
113 X-Runtime: 113 X-Runtime:
114 - '0.012674' 114 - '0.020083'
115 X-XSS-Protection: 115 X-XSS-Protection:
116 - 1; mode=block 116 - 1; mode=block
117 status: 117 status:
118 code: 200 118 code: 200
119 message: OK 119 message: OK
120- request: 120- request:
121 body: scope=read+write+follow+push&client_id=y1kQMo51iTqe-Qn5OSp4DcAkyGhRx6gN8c7kX0GvlVU&client_secret=vUkylcdbR0cyzGi_ufOBAvHG62J1ylhSAU9tn_en96E&grant_type=client_credentials 121 body: scope=read+write+follow+push&client_id=GyGwG_h92z1F61g-fZEoz2PLVS6FINeOtwKYs2nsy0w&client_secret=zvpc74o82B7RgdORoWoYo0nxC8CDtoXds_ZvT9Px4fY&grant_type=client_credentials
122 headers: 122 headers:
123 Accept: 123 Accept:
124 - '*/*' 124 - '*/*'
@@ -136,15 +136,15 @@ interactions:
136 uri: http://localhost:3000/oauth/token 136 uri: http://localhost:3000/oauth/token
137 response: 137 response:
138 body: 138 body:
139 string: '{"access_token":"L1hGcfjMpk7cEduCSOvsW0AxG4F69vsOKBlVjwc7qGc","token_type":"Bearer","scope":"read 139 string: '{"access_token":"OhQ7OweaS7DciM3k2qxfLos1wELLcGHqzTsok348V9k","token_type":"Bearer","scope":"read
140 write follow push","created_at":1667850875}' 140 write follow push","created_at":1668345286}'
141 headers: 141 headers:
142 Cache-Control: 142 Cache-Control:
143 - no-store 143 - no-store
144 Content-Security-Policy: 144 Content-Security-Policy:
145 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 145 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
146 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 146 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
147 style-src ''self'' http://localhost:3000 ''nonce-QhneeHlWNQGN4ZzPo5AGlA==''; 147 style-src ''self'' http://localhost:3000 ''nonce-zE4IY+Oi76RxjNHXAeLT4Q=='';
148 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 148 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
149 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 149 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
150 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 150 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -154,7 +154,7 @@ interactions:
154 Content-Type: 154 Content-Type:
155 - application/json; charset=utf-8 155 - application/json; charset=utf-8
156 ETag: 156 ETag:
157 - W/"7af583cf906052620174ef9d3333f6a2" 157 - W/"74caf241dcf699e68305f47ae4262e1a"
158 Pragma: 158 Pragma:
159 - no-cache 159 - no-cache
160 Referrer-Policy: 160 Referrer-Policy:
@@ -172,23 +172,23 @@ interactions:
172 X-Permitted-Cross-Domain-Policies: 172 X-Permitted-Cross-Domain-Policies:
173 - none 173 - none
174 X-Request-Id: 174 X-Request-Id:
175 - 3567251f-9195-4b80-808d-1964781011df 175 - dc842b73-48f2-4441-8ce7-867ca25cf22c
176 X-Runtime: 176 X-Runtime:
177 - '0.011005' 177 - '0.011696'
178 X-XSS-Protection: 178 X-XSS-Protection:
179 - 1; mode=block 179 - 1; mode=block
180 status: 180 status:
181 code: 200 181 code: 200
182 message: OK 182 message: OK
183- request: 183- request:
184 body: username=coolguy75493&password=swordfish&email=email%40localhost75493&agreement=1&locale=en&client_id=y1kQMo51iTqe-Qn5OSp4DcAkyGhRx6gN8c7kX0GvlVU&client_secret=vUkylcdbR0cyzGi_ufOBAvHG62J1ylhSAU9tn_en96E 184 body: username=coolguy07523&password=swordfish&email=email%40localhost07523&agreement=1&locale=en&client_id=GyGwG_h92z1F61g-fZEoz2PLVS6FINeOtwKYs2nsy0w&client_secret=zvpc74o82B7RgdORoWoYo0nxC8CDtoXds_ZvT9Px4fY
185 headers: 185 headers:
186 Accept: 186 Accept:
187 - '*/*' 187 - '*/*'
188 Accept-Encoding: 188 Accept-Encoding:
189 - gzip, deflate 189 - gzip, deflate
190 Authorization: 190 Authorization:
191 - Bearer L1hGcfjMpk7cEduCSOvsW0AxG4F69vsOKBlVjwc7qGc 191 - Bearer OhQ7OweaS7DciM3k2qxfLos1wELLcGHqzTsok348V9k
192 Connection: 192 Connection:
193 - keep-alive 193 - keep-alive
194 Content-Length: 194 Content-Length:
@@ -201,15 +201,15 @@ interactions:
201 uri: http://localhost:3000/api/v1/accounts 201 uri: http://localhost:3000/api/v1/accounts
202 response: 202 response:
203 body: 203 body:
204 string: '{"access_token":"aSBIxEzhi5SpWsN9R7BWUz56MR4ifrZ2Yc0U6tW5N-g","token_type":"Bearer","scope":"read 204 string: '{"access_token":"2ltccxbHFUzKDV7zqkhxy1--rWG-VQqksA6fx5zHhmI","token_type":"Bearer","scope":"read
205 write follow push","created_at":1667850875}' 205 write follow push","created_at":1668345287}'
206 headers: 206 headers:
207 Cache-Control: 207 Cache-Control:
208 - no-store 208 - no-store
209 Content-Security-Policy: 209 Content-Security-Policy:
210 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 210 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
211 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 211 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
212 style-src ''self'' http://localhost:3000 ''nonce-58qKmLv+dPNf3iXu/e/mBA==''; 212 style-src ''self'' http://localhost:3000 ''nonce-cs2mopakGd+1T5g8G2rWOw=='';
213 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 213 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
214 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 214 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
215 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 215 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -219,7 +219,7 @@ interactions:
219 Content-Type: 219 Content-Type:
220 - application/json; charset=utf-8 220 - application/json; charset=utf-8
221 ETag: 221 ETag:
222 - W/"fbe8aae776b4d8aa4b8c694b1a167bd4" 222 - W/"84fdf4bd08fce20526078de13709e42a"
223 Pragma: 223 Pragma:
224 - no-cache 224 - no-cache
225 Referrer-Policy: 225 Referrer-Policy:
@@ -237,9 +237,9 @@ interactions:
237 X-Permitted-Cross-Domain-Policies: 237 X-Permitted-Cross-Domain-Policies:
238 - none 238 - none
239 X-Request-Id: 239 X-Request-Id:
240 - cf9f9be6-b1f4-46e8-99da-ab0d71e7e5d1 240 - ba6977db-6d4a-4873-a9d2-ca7568587a99
241 X-Runtime: 241 X-Runtime:
242 - '0.097053' 242 - '0.079864'
243 X-XSS-Protection: 243 X-XSS-Protection:
244 - 1; mode=block 244 - 1; mode=block
245 status: 245 status:
Powered by cgit v1.2.3 (git 2.41.0)