diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 09:16:11 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-20 09:16:11 +0000 |
commit | edaa33dee2ff2f7ea3fac488d41558eb5f86d68c (patch) | |
tree | 11f143effbfeba52329fb7afbd05e6e2a3790241 /spec/services/packages/create_event_service_spec.rb | |
parent | d8a5691316400a0f7ec4f83832698f1988eb27c1 (diff) | |
download | gitlab-ce-76a9e64d004e0c02c35b8165ca38d005afb5e823.tar.gz |
Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42
Diffstat (limited to 'spec/services/packages/create_event_service_spec.rb')
-rw-r--r-- | spec/services/packages/create_event_service_spec.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/services/packages/create_event_service_spec.rb b/spec/services/packages/create_event_service_spec.rb index 122f1e88ad0..58fa68b11fe 100644 --- a/spec/services/packages/create_event_service_spec.rb +++ b/spec/services/packages/create_event_service_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' RSpec.describe Packages::CreateEventService do - let(:scope) { 'container' } + let(:scope) { 'generic' } let(:event_name) { 'push_package' } let(:params) do @@ -75,24 +75,24 @@ RSpec.describe Packages::CreateEventService do context 'with a user' do let(:user) { create(:user) } - it_behaves_like 'db package event creation', 'user', 'container' - it_behaves_like 'redis package unique event creation', 'user', 'container' - it_behaves_like 'redis package count event creation', 'user', 'container' + it_behaves_like 'db package event creation', 'user', 'generic' + it_behaves_like 'redis package unique event creation', 'user', 'generic' + it_behaves_like 'redis package count event creation', 'user', 'generic' end context 'with a deploy token' do let(:user) { create(:deploy_token) } - it_behaves_like 'db package event creation', 'deploy_token', 'container' - it_behaves_like 'redis package unique event creation', 'deploy_token', 'container' - it_behaves_like 'redis package count event creation', 'deploy_token', 'container' + it_behaves_like 'db package event creation', 'deploy_token', 'generic' + it_behaves_like 'redis package unique event creation', 'deploy_token', 'generic' + it_behaves_like 'redis package count event creation', 'deploy_token', 'generic' end context 'with no user' do let(:user) { nil } - it_behaves_like 'db package event creation', 'guest', 'container' - it_behaves_like 'redis package count event creation', 'guest', 'container' + it_behaves_like 'db package event creation', 'guest', 'generic' + it_behaves_like 'redis package count event creation', 'guest', 'generic' end context 'with a package as scope' do |