diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 09:07:54 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-19 09:07:54 +0000 |
commit | dec42ba662f39f8acc2fba6a48a1d10cf3832bd1 (patch) | |
tree | 003699b69590f174f03049d12964fecf46312b87 /spec/tasks | |
parent | 5a38951c4dd8d81749ae491c8e3355b01f067168 (diff) | |
download | gitlab-ce-dec42ba662f39f8acc2fba6a48a1d10cf3832bd1.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/backup_rake_spec.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index 972851cba8c..4aa6edf4789 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -7,9 +7,7 @@ RSpec.describe 'gitlab:app namespace rake task', :delete, feature_category: :bac let(:backup_restore_pid_path) { "#{Rails.application.root}/tmp/backup_restore.pid" } let(:backup_tasks) { %w[db repo uploads builds artifacts pages lfs terraform_state registry packages] } let(:backup_types) do - %w[main_db repositories uploads builds artifacts pages lfs terraform_state registry packages].tap do |array| - array.insert(1, 'ci_db') if Gitlab::Database.has_config?(:ci) - end + %w[db repositories uploads builds artifacts pages lfs terraform_state registry packages] end def tars_glob @@ -94,7 +92,7 @@ RSpec.describe 'gitlab:app namespace rake task', :delete, feature_category: :bac let(:pid_file) { instance_double(File, write: 12345) } where(:tasks_name, :rake_task) do - %w[main_db ci_db] | 'gitlab:backup:db:restore' + 'db' | 'gitlab:backup:db:restore' 'repositories' | 'gitlab:backup:repo:restore' 'builds' | 'gitlab:backup:builds:restore' 'uploads' | 'gitlab:backup:uploads:restore' @@ -260,9 +258,7 @@ RSpec.describe 'gitlab:app namespace rake task', :delete, feature_category: :bac end it 'logs the progress to log file' do - ci_database_status = Gitlab::Database.has_config?(:ci) ? "[SKIPPED]" : "[DISABLED]" - expect(Gitlab::BackupLogger).to receive(:info).with(message: "Dumping main_database ... [SKIPPED]") - expect(Gitlab::BackupLogger).to receive(:info).with(message: "Dumping ci_database ... #{ci_database_status}") + expect(Gitlab::BackupLogger).to receive(:info).with(message: "Dumping database ... [SKIPPED]") expect(Gitlab::BackupLogger).to receive(:info).with(message: "Dumping repositories ... ") expect(Gitlab::BackupLogger).to receive(:info).with(message: "Dumping repositories ... done") expect(Gitlab::BackupLogger).to receive(:info).with(message: "Dumping uploads ... ") |