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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-02-11 06:12:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-11 06:12:21 +0300
commit9fbfd2ebf45c0d22b844306c51b673106e1fdf17 (patch)
tree681d21abcfadb2843eab19e42a2f3ed198dd0729 /spec/workers/packages
parent18ad304adc191b31f11a311fc4b89e3ea8f0f328 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/packages')
-rw-r--r--spec/workers/packages/go/sync_packages_worker_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/workers/packages/go/sync_packages_worker_spec.rb b/spec/workers/packages/go/sync_packages_worker_spec.rb
index ad1a85b26e4..5eeef1f7c08 100644
--- a/spec/workers/packages/go/sync_packages_worker_spec.rb
+++ b/spec/workers/packages/go/sync_packages_worker_spec.rb
@@ -57,6 +57,18 @@ RSpec.describe Packages::Go::SyncPackagesWorker, type: :worker do
it_behaves_like 'it creates a package', '', 'v1.0.3'
it_behaves_like 'it creates a package', 'mod', 'v1.0.3'
it_behaves_like 'it creates a package', 'v2', 'v2.0.0'
+
+ context 'marked as pending_destruction' do
+ before do
+ project.packages.each(&:pending_destruction!)
+ end
+
+ it_behaves_like 'it creates a package', '', 'v1.0.1'
+ it_behaves_like 'it creates a package', '', 'v1.0.2'
+ it_behaves_like 'it creates a package', '', 'v1.0.3'
+ it_behaves_like 'it creates a package', 'mod', 'v1.0.3'
+ it_behaves_like 'it creates a package', 'v2', 'v2.0.0'
+ end
end
context 'with a package that exceeds project limits' do