aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_featured_tags.yaml')
-rw-r--r--tests/cassettes/test_featured_tags.yaml222
1 files changed, 5 insertions, 217 deletions
diff --git a/tests/cassettes/test_featured_tags.yaml b/tests/cassettes/test_featured_tags.yaml
index 1a2e642..f4ea314 100644
--- a/tests/cassettes/test_featured_tags.yaml
+++ b/tests/cassettes/test_featured_tags.yaml
@@ -1,78 +1,5 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: status=cool+free+%23ringtones
4 headers:
5 Accept:
6 - '*/*'
7 Accept-Encoding:
8 - gzip, deflate
9 Authorization:
10 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
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
19 method: POST
20 uri: http://localhost:3000/api/v1/statuses
21 response:
22 body:
23 string: '{"id":"109304274610657135","created_at":"2022-11-07T19:54:29.915Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109304274610657135","url":"http://localhost:3000/@mastodonpy_test/109304274610657135","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"content":"\u003cp\u003ecool
24 free \u003ca href=\"http://localhost:3000/tags/ringtones\" class=\"mention
25 hashtag\" rel=\"tag\"\u003e#\u003cspan\u003eringtones\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
26 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
27 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI
28 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":1,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[{"name":"ringtones","url":"http://localhost:3000/tags/ringtones"}],"emojis":[],"card":null,"poll":null}'
29 headers:
30 Cache-Control:
31 - no-store
32 Content-Security-Policy:
33 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
34 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
35 style-src ''self'' http://localhost:3000 ''nonce-IyWunBzArjObfeEE5UX8ig=='';
36 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
37 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
38 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
39 ws://localhost:3035 http://localhost:3035; script-src ''self'' ''unsafe-inline''
40 ''unsafe-eval'' http://localhost:3000; child-src ''self'' blob: http://localhost:3000;
41 worker-src ''self'' blob: http://localhost:3000'
42 Content-Type:
43 - application/json; charset=utf-8
44 ETag:
45 - W/"10de32dfe2720e59b17044cba0f146a8"
46 Referrer-Policy:
47 - strict-origin-when-cross-origin
48 Transfer-Encoding:
49 - chunked
50 Vary:
51 - Accept, Origin
52 X-Content-Type-Options:
53 - nosniff
54 X-Download-Options:
55 - noopen
56 X-Frame-Options:
57 - SAMEORIGIN
58 X-Permitted-Cross-Domain-Policies:
59 - none
60 X-RateLimit-Limit:
61 - '300'
62 X-RateLimit-Remaining:
63 - '295'
64 X-RateLimit-Reset:
65 - '2022-11-07T21:00:00.940009Z'
66 X-Request-Id:
67 - e754fb62-d767-48e0-b88e-13b394800b32
68 X-Runtime:
69 - '0.037297'
70 X-XSS-Protection:
71 - 1; mode=block
72 status:
73 code: 200
74 message: OK
75- request:
76 body: name=ringtones 3 body: name=ringtones
77 headers: 4 headers:
78 Accept: 5 Accept:
@@ -93,153 +20,14 @@ interactions:
93 uri: http://localhost:3000/api/v1/featured_tags 20 uri: http://localhost:3000/api/v1/featured_tags
94 response: 21 response:
95 body: 22 body:
96 string: "OpenSSL::PKey::RSAError at /api/v1/featured_tags\n================================================\n\nNeither 23 string: '{"id":"1","name":"ringtones","url":"http://localhost:3000/@mastodonpy_test/tagged/ringtones","statuses_count":"0","last_status_at":null}'
97 PUB key nor PRIV key: no start line\n\n> To access an interactive console
98 with this error, point your browser to: /__better_errors\n\n\napp/models/account.rb,
99 line 271\n-------------------------------\n\n``` ruby\n 266 def previous_strikes_count\n
100 \ 267 strikes.where(overruled_at: nil).count\n 268 end\n 269 \n
101 \ 270 def keypair\n> 271 @keypair ||= OpenSSL::PKey::RSA.new(private_key
102 || public_key)\n 272 end\n 273 \n 274 def tags_as_strings=(tag_names)\n
103 \ 275 hashtags_map = Tag.find_or_create_by_names(tag_names).index_by(&:name)\n
104 \ 276 \n```\n\nApp backtrace\n-------------\n\n - app/models/account.rb:271:in
105 `keypair'\n - app/lib/activitypub/linked_data_signature.rb:45:in `sign!'\n
106 - app/services/concerns/payloadable.rb:19:in `serialize_payload'\n - app/services/create_featured_tag_service.rb:23:in
107 `build_json'\n - app/services/create_featured_tag_service.rb:10:in `block
108 in call'\n - app/services/create_featured_tag_service.rb:9:in `call'\n - app/controllers/api/v1/featured_tags_controller.rb:16:in
109 `create'\n - app/controllers/concerns/localized.rb:11:in `set_locale'\n -
110 lib/mastodon/rack_middleware.rb:9:in `call'\n\nFull backtrace\n--------------\n\n
111 - openssl (3.0.0) lib/openssl/pkey.rb:348:in `new'\n - app/models/account.rb:271:in
112 `keypair'\n - app/lib/activitypub/linked_data_signature.rb:45:in `sign!'\n
113 - app/services/concerns/payloadable.rb:19:in `serialize_payload'\n - app/services/create_featured_tag_service.rb:23:in
114 `build_json'\n - app/services/create_featured_tag_service.rb:10:in `block
115 in call'\n - <internal:kernel>:90:in `tap'\n - app/services/create_featured_tag_service.rb:9:in
116 `call'\n - app/controllers/api/v1/featured_tags_controller.rb:16:in `create'\n
117 - actionpack (6.1.7) lib/action_controller/metal/basic_implicit_render.rb:6:in
118 `send_action'\n - actionpack (6.1.7) lib/abstract_controller/base.rb:228:in
119 `process_action'\n - actionpack (6.1.7) lib/action_controller/metal/rendering.rb:30:in
120 `process_action'\n - actionpack (6.1.7) lib/abstract_controller/callbacks.rb:42:in
121 `block in process_action'\n - activesupport (6.1.7) lib/active_support/callbacks.rb:117:in
122 `block in run_callbacks'\n - i18n (1.12.0) lib/i18n.rb:322:in `with_locale'\n
123 - app/controllers/concerns/localized.rb:11:in `set_locale'\n - activesupport
124 (6.1.7) lib/active_support/callbacks.rb:126:in `block in run_callbacks'\n
125 - activesupport (6.1.7) lib/active_support/callbacks.rb:137:in `run_callbacks'\n
126 - actionpack (6.1.7) lib/abstract_controller/callbacks.rb:41:in `process_action'\n
127 - actionpack (6.1.7) lib/action_controller/metal/rescue.rb:22:in `process_action'\n
128 - actionpack (6.1.7) lib/action_controller/metal/instrumentation.rb:34:in
129 `block in process_action'\n - activesupport (6.1.7) lib/active_support/notifications.rb:203:in
130 `block in instrument'\n - activesupport (6.1.7) lib/active_support/notifications/instrumenter.rb:24:in
131 `instrument'\n - activesupport (6.1.7) lib/active_support/notifications.rb:203:in
132 `instrument'\n - actionpack (6.1.7) lib/action_controller/metal/instrumentation.rb:33:in
133 `process_action'\n - actionpack (6.1.7) lib/action_controller/metal/params_wrapper.rb:249:in
134 `process_action'\n - activerecord (6.1.7) lib/active_record/railties/controller_runtime.rb:27:in
135 `process_action'\n - actionpack (6.1.7) lib/abstract_controller/base.rb:165:in
136 `process'\n - actionview (6.1.7) lib/action_view/rendering.rb:39:in `process'\n
137 - actionpack (6.1.7) lib/action_controller/metal.rb:190:in `dispatch'\n -
138 actionpack (6.1.7) lib/action_controller/metal.rb:254:in `dispatch'\n - actionpack
139 (6.1.7) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'\n - actionpack
140 (6.1.7) lib/action_dispatch/routing/route_set.rb:33:in `serve'\n - actionpack
141 (6.1.7) lib/action_dispatch/journey/router.rb:50:in `block in serve'\n - actionpack
142 (6.1.7) lib/action_dispatch/journey/router.rb:32:in `serve'\n - actionpack
143 (6.1.7) lib/action_dispatch/routing/route_set.rb:842:in `call'\n - omniauth
144 (1.9.2) lib/omniauth/builder.rb:45:in `call'\n - bullet (7.0.3) lib/bullet/rack.rb:15:in
145 `call'\n - rack-attack (6.6.1) lib/rack/attack.rb:103:in `call'\n - http_accept_language
146 (2.1.1) lib/http_accept_language/middleware.rb:14:in `call'\n - makara (0.5.1)
147 lib/makara/middleware.rb:16:in `call'\n - lib/mastodon/rack_middleware.rb:9:in
148 `call'\n - rack-attack (6.6.1) lib/rack/attack.rb:110:in `call'\n - warden
149 (1.2.9) lib/warden/manager.rb:36:in `block in call'\n - warden (1.2.9) lib/warden/manager.rb:34:in
150 `call'\n - rack (2.2.4) lib/rack/tempfile_reaper.rb:15:in `call'\n - rack
151 (2.2.4) lib/rack/etag.rb:27:in `call'\n - rack (2.2.4) lib/rack/conditional_get.rb:40:in
152 `call'\n - rack (2.2.4) lib/rack/head.rb:12:in `call'\n - actionpack (6.1.7)
153 lib/action_dispatch/http/permissions_policy.rb:22:in `call'\n - actionpack
154 (6.1.7) lib/action_dispatch/http/content_security_policy.rb:19:in `call'\n
155 - rack (2.2.4) lib/rack/session/abstract/id.rb:266:in `context'\n - rack (2.2.4)
156 lib/rack/session/abstract/id.rb:260:in `call'\n - actionpack (6.1.7) lib/action_dispatch/middleware/cookies.rb:689:in
157 `call'\n - activerecord (6.1.7) lib/active_record/migration.rb:601:in `call'\n
158 - actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb:27:in `block
159 in call'\n - activesupport (6.1.7) lib/active_support/callbacks.rb:98:in `run_callbacks'\n
160 - actionpack (6.1.7) lib/action_dispatch/middleware/callbacks.rb:26:in `call'\n
161 - actionpack (6.1.7) lib/action_dispatch/middleware/executor.rb:14:in `call'\n
162 - actionpack (6.1.7) lib/action_dispatch/middleware/actionable_exceptions.rb:18:in
163 `call'\n - better_errors (2.9.1) lib/better_errors/middleware.rb:87:in `protected_app_call'\n
164 - better_errors (2.9.1) lib/better_errors/middleware.rb:82:in `better_errors_call'\n
165 - better_errors (2.9.1) lib/better_errors/middleware.rb:60:in `call'\n - actionpack
166 (6.1.7) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call'\n
167 - actionpack (6.1.7) lib/action_dispatch/middleware/show_exceptions.rb:33:in
168 `call'\n - chewy (7.2.4) lib/chewy/railtie.rb:21:in `block in call'\n - chewy
169 (7.2.4) lib/chewy/strategy.rb:57:in `wrap'\n - chewy (7.2.4) lib/chewy.rb:154:in
170 `strategy'\n - chewy (7.2.4) lib/chewy/railtie.rb:21:in `call'\n - railties
171 (6.1.7) lib/rails/rack/logger.rb:37:in `call_app'\n - railties (6.1.7) lib/rails/rack/logger.rb:26:in
172 `block in call'\n - activesupport (6.1.7) lib/active_support/tagged_logging.rb:99:in
173 `block in tagged'\n - activesupport (6.1.7) lib/active_support/tagged_logging.rb:37:in
174 `tagged'\n - activesupport (6.1.7) lib/active_support/tagged_logging.rb:99:in
175 `tagged'\n - railties (6.1.7) lib/rails/rack/logger.rb:26:in `call'\n - sprockets-rails
176 (3.4.2) lib/sprockets/rails/quiet_assets.rb:13:in `call'\n - actionpack (6.1.7)
177 lib/action_dispatch/middleware/remote_ip.rb:81:in `call'\n - actionpack (6.1.7)
178 lib/action_dispatch/middleware/request_id.rb:26:in `call'\n - rack (2.2.4)
179 lib/rack/method_override.rb:24:in `call'\n - rack (2.2.4) lib/rack/runtime.rb:22:in
180 `call'\n - activesupport (6.1.7) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in
181 `call'\n - actionpack (6.1.7) lib/action_dispatch/middleware/executor.rb:14:in
182 `call'\n - actionpack (6.1.7) lib/action_dispatch/middleware/static.rb:24:in
183 `call'\n - rack (2.2.4) lib/rack/sendfile.rb:110:in `call'\n - actionpack
184 (6.1.7) lib/action_dispatch/middleware/host_authorization.rb:148:in `call'\n
185 - rack-cors (1.1.1) lib/rack/cors.rb:100:in `call'\n - webpacker (5.4.3) lib/webpacker/dev_server_proxy.rb:25:in
186 `perform_request'\n - rack-proxy (0.7.0) lib/rack/proxy.rb:63:in `call'\n
187 - railties (6.1.7) lib/rails/engine.rb:539:in `call'\n - puma (5.6.5) lib/puma/configuration.rb:252:in
188 `call'\n - puma (5.6.5) lib/puma/request.rb:77:in `block in handle_request'\n
189 - puma (5.6.5) lib/puma/thread_pool.rb:340:in `with_force_shutdown'\n - puma
190 (5.6.5) lib/puma/request.rb:76:in `handle_request'\n - puma (5.6.5) lib/puma/server.rb:443:in
191 `process_client'\n - puma (5.6.5) lib/puma/thread_pool.rb:147:in `block in
192 spawn_thread'\n\n"
193 headers:
194 Content-Type:
195 - text/plain; charset=utf-8
196 Set-Cookie:
197 - BetterErrors-2.9.1-CSRF-Token=4580aa73-9d66-4bfa-870b-46593e252bde; path=/;
198 HttpOnly; SameSite=Strict
199 Transfer-Encoding:
200 - chunked
201 Vary:
202 - Origin
203 X-Request-Id:
204 - de262fec-8e84-4b04-85bb-5da30813c411
205 X-Runtime:
206 - '0.049918'
207 status:
208 code: 500
209 message: Internal Server Error
210- request:
211 body: null
212 headers:
213 Accept:
214 - '*/*'
215 Accept-Encoding:
216 - gzip, deflate
217 Authorization:
218 - Bearer __MASTODON_PY_TEST_ACCESS_TOKEN
219 Connection:
220 - keep-alive
221 Content-Length:
222 - '0'
223 Cookie:
224 - BetterErrors-2.9.1-CSRF-Token=4580aa73-9d66-4bfa-870b-46593e252bde
225 User-Agent:
226 - tests/v311
227 method: DELETE
228 uri: http://localhost:3000/api/v1/statuses/109304274610657135
229 response:
230 body:
231 string: '{"id":"109304274610657135","created_at":"2022-11-07T19:54:29.915Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/109304274610657135","url":"http://localhost:3000/@mastodonpy_test/109304274610657135","replies_count":0,"reblogs_count":0,"favourites_count":0,"edited_at":null,"favourited":false,"reblogged":false,"muted":false,"bookmarked":false,"pinned":false,"text":"cool
232 free #ringtones","filtered":[],"reblog":null,"application":{"name":"Mastodon.py
233 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
234 Lennon","locked":true,"bot":false,"discoverable":null,"group":false,"created_at":"2022-11-07T00:00:00.000Z","note":"\u003cp\u003eI
235 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/2d5ad2a2a4ca9e32.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/51bc27ef4d67326e.jpg","followers_count":0,"following_count":0,"statuses_count":0,"last_status_at":"2022-11-07","noindex":false,"emojis":[],"fields":[{"name":"bread","value":"toasty.","verified_at":null},{"name":"lasagna","value":"no!!!","verified_at":null}]},"media_attachments":[],"mentions":[],"tags":[{"name":"ringtones","url":"http://localhost:3000/tags/ringtones"}],"emojis":[],"card":null,"poll":null}'
236 headers: 24 headers:
237 Cache-Control: 25 Cache-Control:
238 - no-store 26 - no-store
239 Content-Security-Policy: 27 Content-Security-Policy:
240 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src 28 - 'base-uri ''none''; default-src ''none''; frame-ancestors ''none''; font-src
241 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000; 29 ''self'' http://localhost:3000; img-src ''self'' https: data: blob: http://localhost:3000;
242 style-src ''self'' http://localhost:3000 ''nonce-Hf3Oo/m+v4J/Ait+/fAFZw==''; 30 style-src ''self'' http://localhost:3000 ''nonce-GjXyZZckExmvwzB75bXrRw=='';
243 media-src ''self'' https: data: http://localhost:3000; frame-src ''self'' 31 media-src ''self'' https: data: http://localhost:3000; frame-src ''self''
244 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self'' 32 https:; manifest-src ''self'' http://localhost:3000; connect-src ''self''
245 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000 33 data: blob: http://localhost:3000 http://localhost:3000 ws://localhost:4000
@@ -249,7 +37,7 @@ interactions:
249 Content-Type: 37 Content-Type:
250 - application/json; charset=utf-8 38 - application/json; charset=utf-8
251 ETag: 39 ETag:
252 - W/"b6c97f90f2b33e78eb4d27015883bb39" 40 - W/"aa2380f6b72962d051f0cd1ca31074a1"
253 Referrer-Policy: 41 Referrer-Policy:
254 - strict-origin-when-cross-origin 42 - strict-origin-when-cross-origin
255 Transfer-Encoding: 43 Transfer-Encoding:
@@ -265,9 +53,9 @@ interactions:
265 X-Permitted-Cross-Domain-Policies: 53 X-Permitted-Cross-Domain-Policies:
266 - none 54 - none
267 X-Request-Id: 55 X-Request-Id:
268 - 7f8027d9-bdd5-4ed5-b652-110deb8cf5b2 56 - 40a41ecb-53f4-4d6a-816b-ea0bdec7283c
269 X-Runtime: 57 X-Runtime:
270 - '0.023956' 58 - '0.262286'
271 X-XSS-Protection: 59 X-XSS-Protection:
272 - 1; mode=block 60 - 1; mode=block
273 status: 61 status:
Powered by cgit v1.2.3 (git 2.41.0)