Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests/api/graphql/mutations/ci/job_token_scope/add_project_spec.rb')
-rw-r--r--spec/requests/api/graphql/mutations/ci/job_token_scope/add_project_spec.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/requests/api/graphql/mutations/ci/job_token_scope/add_project_spec.rb b/spec/requests/api/graphql/mutations/ci/job_token_scope/add_project_spec.rb
index 8791d793cb4..947e7dbcb37 100644
--- a/spec/requests/api/graphql/mutations/ci/job_token_scope/add_project_spec.rb
+++ b/spec/requests/api/graphql/mutations/ci/job_token_scope/add_project_spec.rb
@@ -53,7 +53,6 @@ RSpec.describe 'CiJobTokenScopeAddProject', feature_category: :continuous_integr
before do
target_project.add_developer(current_user)
- stub_feature_flags(frozen_outbound_job_token_scopes_override: false)
end
it 'adds the target project to the inbound job token scope' do
@@ -64,20 +63,6 @@ RSpec.describe 'CiJobTokenScopeAddProject', feature_category: :continuous_integr
end.to change { Ci::JobToken::ProjectScopeLink.inbound.count }.by(1)
end
- context 'when FF frozen_outbound_job_token_scopes is disabled' do
- before do
- stub_feature_flags(frozen_outbound_job_token_scopes: false)
- end
-
- it 'adds the target project to the outbound job token scope' do
- expect do
- post_graphql_mutation(mutation, current_user: current_user)
- expect(response).to have_gitlab_http_status(:success)
- expect(mutation_response.dig('ciJobTokenScope', 'projects', 'nodes')).not_to be_empty
- end.to change { Ci::JobToken::ProjectScopeLink.outbound.count }.by(1)
- end
- end
-
context 'when invalid target project is provided' do
before do
variables[:target_project_path] = 'unknown/project'