17830: Customizes ActionDispatch::RequestId middleware to our needs.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 20 Jul 2021 19:23:36 +0000 (16:23 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Thu, 22 Jul 2021 15:27:14 +0000 (12:27 -0300)
commit44f89a6814bc6b2f5bd96e16e5e12d1a0e0aadda
treedd5282182bc920df9ed7eda435c4783e84133123
parentb64a7596b2fb456de13aa885dbe14a817fd8d5b2
17830: Customizes ActionDispatch::RequestId middleware to our needs.

Moves all the request id code to the proper middleware, and updates tests.
As functional tests are "unit tests for controllers", things that happen inside
middlewares need to be tested from integration tests.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
services/api/app/controllers/application_controller.rb
services/api/config/initializers/request_id_middleware.rb [new file with mode: 0644]
services/api/test/functional/application_controller_test.rb
services/api/test/integration/errors_test.rb