summaryrefslogtreecommitdiff
path: root/spec/services/releases
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 09:08:42 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 09:08:42 +0000
commitb76ae638462ab0f673e5915986070518dd3f9ad3 (patch)
treebdab0533383b52873be0ec0eb4d3c66598ff8b91 /spec/services/releases
parent434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff)
downloadgitlab-ce-b76ae638462ab0f673e5915986070518dd3f9ad3.tar.gz
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'spec/services/releases')
-rw-r--r--spec/services/releases/create_service_spec.rb15
-rw-r--r--spec/services/releases/destroy_service_spec.rb15
-rw-r--r--spec/services/releases/update_service_spec.rb15
3 files changed, 0 insertions, 45 deletions
diff --git a/spec/services/releases/create_service_spec.rb b/spec/services/releases/create_service_spec.rb
index bf28fde3d90..7287825a0be 100644
--- a/spec/services/releases/create_service_spec.rb
+++ b/spec/services/releases/create_service_spec.rb
@@ -44,21 +44,6 @@ RSpec.describe Releases::CreateService do
it_behaves_like 'a successful release creation'
- context 'when tag is protected and user does not have access to it' do
- let!(:protected_tag) { create(:protected_tag, :no_one_can_create, name: '*', project: project) }
-
- it 'track the error event' do
- stub_feature_flags(evalute_protected_tag_for_release_permissions: false)
-
- expect(Gitlab::ErrorTracking).to receive(:log_exception).with(
- kind_of(described_class::ReleaseProtectedTagAccessError),
- project_id: project.id,
- user_id: user.id)
-
- service.execute
- end
- end
-
context 'when the tag does not exist' do
let(:tag_name) { 'non-exist-tag' }
diff --git a/spec/services/releases/destroy_service_spec.rb b/spec/services/releases/destroy_service_spec.rb
index 38cdcef3825..bc5bff0b31d 100644
--- a/spec/services/releases/destroy_service_spec.rb
+++ b/spec/services/releases/destroy_service_spec.rb
@@ -28,21 +28,6 @@ RSpec.describe Releases::DestroyService do
it 'returns the destroyed object' do
is_expected.to include(status: :success, release: release)
end
-
- context 'when tag is protected and user does not have access to it' do
- let!(:protected_tag) { create(:protected_tag, :no_one_can_create, name: '*', project: project) }
-
- it 'track the error event' do
- stub_feature_flags(evalute_protected_tag_for_release_permissions: false)
-
- expect(Gitlab::ErrorTracking).to receive(:log_exception).with(
- kind_of(described_class::ReleaseProtectedTagAccessError),
- project_id: project.id,
- user_id: user.id)
-
- service.execute
- end
- end
end
context 'when tag does not exist in the repository' do
diff --git a/spec/services/releases/update_service_spec.rb b/spec/services/releases/update_service_spec.rb
index 96b562a8071..932a7fab5ec 100644
--- a/spec/services/releases/update_service_spec.rb
+++ b/spec/services/releases/update_service_spec.rb
@@ -38,21 +38,6 @@ RSpec.describe Releases::UpdateService do
service.execute
end
- context 'when tag is protected and user does not have access to it' do
- let!(:protected_tag) { create(:protected_tag, :no_one_can_create, name: '*', project: project) }
-
- it 'track the error event' do
- stub_feature_flags(evalute_protected_tag_for_release_permissions: false)
-
- expect(Gitlab::ErrorTracking).to receive(:log_exception).with(
- kind_of(described_class::ReleaseProtectedTagAccessError),
- project_id: project.id,
- user_id: user.id)
-
- service.execute
- end
- end
-
context 'when the tag does not exists' do
let(:tag_name) { 'foobar' }