diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-09 21:13:03 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-09 21:13:03 +0300 |
commit | 519f46346b22c1b7c1f4c2a4ce902e829354cb62 (patch) | |
tree | 568e97ac17a509445e9e6cf926ebaf47beeba9fb /spec/requests/api/graphql/mutations/admin/sidekiq_queues/delete_jobs_spec.rb | |
parent | 07f3c9525c1df3ae1da995ea4fe6dd66bb61b9fd (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/graphql/mutations/admin/sidekiq_queues/delete_jobs_spec.rb')
-rw-r--r-- | spec/requests/api/graphql/mutations/admin/sidekiq_queues/delete_jobs_spec.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/requests/api/graphql/mutations/admin/sidekiq_queues/delete_jobs_spec.rb b/spec/requests/api/graphql/mutations/admin/sidekiq_queues/delete_jobs_spec.rb index b3d25155a6f..316b0f3755d 100644 --- a/spec/requests/api/graphql/mutations/admin/sidekiq_queues/delete_jobs_spec.rb +++ b/spec/requests/api/graphql/mutations/admin/sidekiq_queues/delete_jobs_spec.rb @@ -20,7 +20,7 @@ RSpec.describe 'Deleting Sidekiq jobs', :clean_gitlab_redis_queues, feature_cate let(:current_user) { create(:user) } it_behaves_like 'a mutation that returns top-level errors', - errors: ['You must be an admin to use this mutation'] + errors: ['You must be an admin to use this mutation'] end context 'when the user is an admin' do @@ -51,9 +51,7 @@ RSpec.describe 'Deleting Sidekiq jobs', :clean_gitlab_redis_queues, feature_cate post_graphql_mutation(mutation, current_user: admin) expect(mutation_response['errors']).to be_empty - expect(mutation_response['result']).to eq('completed' => true, - 'deletedJobs' => 2, - 'queueSize' => 1) + expect(mutation_response['result']).to eq('completed' => true, 'deletedJobs' => 2, 'queueSize' => 1) end end @@ -61,14 +59,14 @@ RSpec.describe 'Deleting Sidekiq jobs', :clean_gitlab_redis_queues, feature_cate let(:variables) { { queue_name: queue } } it_behaves_like 'a mutation that returns errors in the response', - errors: ['No metadata provided'] + errors: ['No metadata provided'] end context 'when the queue does not exist' do let(:variables) { { user: admin.username, queue_name: 'authorized_projects_2' } } it_behaves_like 'a mutation that returns top-level errors', - errors: ['Queue authorized_projects_2 not found'] + errors: ['Queue authorized_projects_2 not found'] end end end |