X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0e9e78ad4e32fb3a14c6e83091efdbe96f2f03d6..516685e09227ab64c2d4f7fd04d4b60a75fc5d0f:/services/api/test/integration/jobs_api_test.rb diff --git a/services/api/test/integration/jobs_api_test.rb b/services/api/test/integration/jobs_api_test.rb index 89eb84ff4c..b8b338f14b 100644 --- a/services/api/test/integration/jobs_api_test.rb +++ b/services/api/test/integration/jobs_api_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class JobsApiTest < ActionDispatch::IntegrationTest @@ -11,7 +15,7 @@ class JobsApiTest < ActionDispatch::IntegrationTest end test "cancel someone else's visible job" do - post "/arvados/v1/jobs/#{jobs(:barbaz).uuid}/cancel", {:format => :json}, {'HTTP_AUTHORIZATION' => "OAuth2 #{api_client_authorizations(:spectator).api_token}"} + post "/arvados/v1/jobs/#{jobs(:runningbarbaz).uuid}/cancel", {:format => :json}, {'HTTP_AUTHORIZATION' => "OAuth2 #{api_client_authorizations(:spectator).api_token}"} assert_response 403 end