From: Tom Clegg Date: Wed, 27 Apr 2022 17:21:14 +0000 (-0400) Subject: 18794: Fix routing test. X-Git-Tag: 2.5.0~184^2~11 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/1cbf3ce5f6bbb72b9c457e78ae406a557630bebe 18794: Fix routing test. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/services/api/test/integration/errors_test.rb b/services/api/test/integration/errors_test.rb index a5359278e5..8e9929117b 100644 --- a/services/api/test/integration/errors_test.rb +++ b/services/api/test/integration/errors_test.rb @@ -24,7 +24,7 @@ class ErrorsTest < ActionDispatch::IntegrationTest # Generally, new routes should appear under /arvados/v1/. If # they appear elsewhere, that might have been caused by default # rails generator behavior that we don't want. - assert_match(/^\/(|\*a|arvados\/v1\/.*|auth\/.*|login|logout|database\/reset|discovery\/.*|static\/.*|sys\/trash_sweep|themes\/.*|assets|_health|metrics\/.*)(\(\.:format\))?$/, + assert_match(/^\/(|\*a|arvados\/v1\/.*|auth\/.*|login|logout|database\/reset|discovery\/.*|static\/.*|sys\/trash_sweep|themes\/.*|assets|_health\/.*|metrics)(\(\.:format\))?$/, route.path.spec.to_s, "Unexpected new route: #{route.path.spec}") end