summaryrefslogtreecommitdiff
path: root/spec/tasks
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-05-24 14:58:25 +0000
committerRémy Coutable <remy@rymai.me>2018-05-24 14:58:25 +0000
commite6fca03bbdf5b9a26d720e9dc2ec065ecda5f711 (patch)
tree72b6dfb9941b9ad836164e6bec01810f9acd71b4 /spec/tasks
parent1128d0eca5747deebc7181b4275a32ab0c537c24 (diff)
downloadgitlab-ce-e6fca03bbdf5b9a26d720e9dc2ec065ecda5f711.tar.gz
Fix backup creation and restore for specific Rake tasks
Diffstat (limited to 'spec/tasks')
-rw-r--r--spec/tasks/gitlab/backup_rake_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/tasks/gitlab/backup_rake_spec.rb b/spec/tasks/gitlab/backup_rake_spec.rb
index a2e5642a72c..c9252bebb2e 100644
--- a/spec/tasks/gitlab/backup_rake_spec.rb
+++ b/spec/tasks/gitlab/backup_rake_spec.rb
@@ -125,6 +125,16 @@ describe 'gitlab:app namespace rake task' do
expect(Dir.entries(File.join(project.repository.path, 'custom_hooks'))).to include("dummy.txt")
end
end
+
+ context 'specific backup tasks' do
+ let(:task_list) { %w(db repo uploads builds artifacts pages lfs registry) }
+
+ it 'prints a progress message to stdout' do
+ task_list.each do |task|
+ expect { run_rake_task("gitlab:backup:#{task}:create") }.to output(/Dumping /).to_stdout
+ end
+ end
+ end
end
context 'tar creation' do