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>2023-04-13 15:15:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-13 15:15:20 +0300
commit944a3a7b7e19354abdfcaa79129d0736c4b8565f (patch)
tree627802e84525946f11fdd6976ab5f04fb69e702c /spec/scripts
parent62798ed33c878f936009da05fdddb707e1c7d58d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/scripts')
-rw-r--r--spec/scripts/review_apps/automated_cleanup_spec.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/scripts/review_apps/automated_cleanup_spec.rb b/spec/scripts/review_apps/automated_cleanup_spec.rb
index 40cf0a8bf75..a8b8353d2ef 100644
--- a/spec/scripts/review_apps/automated_cleanup_spec.rb
+++ b/spec/scripts/review_apps/automated_cleanup_spec.rb
@@ -30,7 +30,6 @@ RSpec.describe ReviewApps::AutomatedCleanup, feature_category: :tooling do
allow(Tooling::Helm3Client).to receive(:new).and_return(helm_client)
allow(Tooling::KubernetesClient).to receive(:new).and_return(kubernetes_client)
- allow(kubernetes_client).to receive(:cleanup_pvcs_by_created_at)
allow(kubernetes_client).to receive(:cleanup_namespaces_by_created_at)
end
@@ -124,28 +123,6 @@ RSpec.describe ReviewApps::AutomatedCleanup, feature_category: :tooling do
end
end
- describe '#perform_stale_pvc_cleanup!' do
- subject { instance.perform_stale_pvc_cleanup!(days: days) }
-
- let(:days) { 2 }
-
- it_behaves_like 'the days argument is an integer in the correct range'
-
- it 'performs Kubernetes cleanup by created at' do
- expect(kubernetes_client).to receive(:cleanup_pvcs_by_created_at).with(created_before: two_days_ago)
-
- subject
- end
-
- context 'when the dry-run flag is true' do
- let(:dry_run) { true }
-
- it 'does not delete anything' do
- expect(kubernetes_client).not_to receive(:cleanup_pvcs_by_created_at)
- end
- end
- end
-
describe '#perform_stale_namespace_cleanup!' do
subject { instance.perform_stale_namespace_cleanup!(days: days) }