X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6eb3d1fb8fe71623fa63da46c250184cf2e4fbb8..607fe087f6167061714a524dd53cbbc21b974973:/services/api/test/integration/api_client_authorizations_scopes_test.rb diff --git a/services/api/test/integration/api_client_authorizations_scopes_test.rb b/services/api/test/integration/api_client_authorizations_scopes_test.rb index beef1953ae..a1a20d428e 100644 --- a/services/api/test/integration/api_client_authorizations_scopes_test.rb +++ b/services/api/test/integration/api_client_authorizations_scopes_test.rb @@ -4,11 +4,11 @@ require 'test_helper' -class Arvados::V1::ApiTokensScopeTest < ActionController::IntegrationTest +class ApiTokensScopeTest < ActionDispatch::IntegrationTest fixtures :all def v1_url(*parts) - (['arvados', 'v1'] + parts).join('/') + (['', 'arvados', 'v1'] + parts).join('/') end test "user list token can only list users" do @@ -29,6 +29,8 @@ class Arvados::V1::ApiTokensScopeTest < ActionController::IntegrationTest assert_response 403 get(v1_url('specimens', specimens(:owned_by_active_user).uuid), *get_args) assert_response :success + head(v1_url('specimens', specimens(:owned_by_active_user).uuid), *get_args) + assert_response :success get(v1_url('specimens', specimens(:owned_by_spectator).uuid), *get_args) assert_includes(403..404, @response.status) end