diff options
Diffstat (limited to 'spec/requests/api/clusters/agent_tokens_spec.rb')
-rw-r--r-- | spec/requests/api/clusters/agent_tokens_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/clusters/agent_tokens_spec.rb b/spec/requests/api/clusters/agent_tokens_spec.rb index ba26faa45a3..2dca21ca6f1 100644 --- a/spec/requests/api/clusters/agent_tokens_spec.rb +++ b/spec/requests/api/clusters/agent_tokens_spec.rb @@ -37,7 +37,7 @@ RSpec.describe API::Clusters::AgentTokens do it 'cannot access agent tokens' do get api("/projects/#{project.id}/cluster_agents/#{agent.id}/tokens", unauthorized_user) - expect(response).to have_gitlab_http_status(:forbidden) + expect(response).to have_gitlab_http_status(:not_found) end end @@ -85,7 +85,7 @@ RSpec.describe API::Clusters::AgentTokens do it 'cannot access single agent token' do get api("/projects/#{project.id}/cluster_agents/#{agent.id}/tokens/#{agent_token_one.id}", unauthorized_user) - expect(response).to have_gitlab_http_status(:forbidden) + expect(response).to have_gitlab_http_status(:not_found) end it 'cannot access token from agent of another project' do |