diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-29 15:08:48 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-29 15:08:48 +0300 |
commit | e5f2a04e9d54615fded2ca05d0d5eef464795a8f (patch) | |
tree | 5412fccdb0a63b449fba4d7998eaa05ca70091ba /spec/tasks | |
parent | ad2789aeba21edaadcbdc06523462e6fd87d4ba1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/backup_rake_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb index 7c708689acb..ae46d0b5e7a 100644 --- a/spec/tasks/gitlab/backup_rake_spec.rb +++ b/spec/tasks/gitlab/backup_rake_spec.rb @@ -394,6 +394,11 @@ RSpec.describe 'gitlab:app namespace rake task', :delete do end it 'passes through concurrency environment variables' do + # The way concurrency is handled will change with the `gitaly_backup` + # feature flag. For now we need to check that both ways continue to + # work. This will be cleaned up in the rollout issue. + # See https://gitlab.com/gitlab-org/gitlab/-/issues/333034 + stub_env('GITLAB_BACKUP_MAX_CONCURRENCY', 5) stub_env('GITLAB_BACKUP_MAX_STORAGE_CONCURRENCY', 2) @@ -402,6 +407,7 @@ RSpec.describe 'gitlab:app namespace rake task', :delete do .with(max_concurrency: 5, max_storage_concurrency: 2) .and_call_original end + expect(::Backup::GitalyBackup).to receive(:new).with(anything, parallel: 5).and_call_original expect { run_rake_task('gitlab:backup:create') }.to output.to_stdout_from_any_process end |