X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a6439c7ddc3407193889386051f06df2a1e74ea9..1a599ec69ad8d533da1f12ad5d2c5789aa1c14e2:/services/api/test/integration/errors_test.rb diff --git a/services/api/test/integration/errors_test.rb b/services/api/test/integration/errors_test.rb index b2ef13e1d3..d04e383831 100644 --- a/services/api/test/integration/errors_test.rb +++ b/services/api/test/integration/errors_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class ErrorsTest < ActionDispatch::IntegrationTest @@ -5,7 +9,7 @@ class ErrorsTest < ActionDispatch::IntegrationTest %w(/arvados/v1/shoes /arvados/shoes /shoes /nodes /users).each do |path| test "non-existent route #{path}" do - get path, {:format => :json}, auth(:active) + get path, params: {:format => :json}, headers: auth(:active) assert_nil assigns(:objects) assert_nil assigns(:object) assert_not_nil json_response['errors'] @@ -19,7 +23,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|discovery\/.*|static\/.*|themes\/.*)(\(\.:format\))?$/, + assert_match(/^\/(|\*a|arvados\/v1\/.*|auth\/.*|login|logout|database\/reset|discovery\/.*|static\/.*|themes\/.*|assets|_health\/.*)(\(\.:format\))?$/, route.path.spec.to_s, "Unexpected new route: #{route.path.spec}") end