From: Tom Clegg Date: Tue, 16 Nov 2021 21:06:53 +0000 (-0500) Subject: 18339: Update accidental-route test. X-Git-Tag: 2.4.0~158^2~8 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/63c38a33171c1811c8f46895ecd2f68a9dbce701?ds=inline 18339: Update accidental-route 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 e3224f4912..a2a1545cee 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\/.*|themes\/.*|assets|_health\/.*)(\(\.:format\))?$/, + assert_match(/^\/(|\*a|arvados\/v1\/.*|auth\/.*|login|logout|database\/reset|discovery\/.*|static\/.*|sys\/trash_sweep|themes\/.*|assets|_health\/.*)(\(\.:format\))?$/, route.path.spec.to_s, "Unexpected new route: #{route.path.spec}") end