diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-22 18:09:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-12-22 18:09:14 +0300 |
commit | aaf158bcb57386a043d8cb7dc491a2f306a4ac13 (patch) | |
tree | a421128fc10c4b12eaa48a0a18492bb7d64e98b3 /spec/tasks | |
parent | a59aa00d8aeea39a6360d9be12ffee564802c63c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/backup_rake_spec.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index dc74f25db87..4aa6edf4789 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -2,14 +2,12 @@ require 'rake_helper' -RSpec.describe 'gitlab:app namespace rake task', :delete do +RSpec.describe 'gitlab:app namespace rake task', :delete, feature_category: :backup_restore do let(:enable_registry) { true } 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 do 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 do 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 ... ") |