Skip to content

Fix failing backup filename spec for RCs

Stan Hu requested to merge sh-fix-failing-rc1-backup-spec into master

This spec was failing on dev: https://gitlab.com/gitlab-org/gitlab-ce/builds/16139416

1) gitlab:app namespace rake task Human Readable Backup Name name has human readable time
     Failure/Error: expect(@backup_tar).to match(/\d+_\d{4}_\d{2}_\d{2}_\d+\.\d+\.\d+(-pre)?_gitlab_backup.tar$/)

       expected "/builds/gitlab-org/gitlab-ce/tmp/tests/backups/1494564739_2017_05_12_9.2.0-rc1_gitlab_backup.tar" to match /\d+_\d{4}_\d{2}_\d{2}_\d+\.\d+\.\d+(-pre)?_gitlab_backup.tar$/
       Diff:
       @@ -1,2 +1,2 @@
       -/\d+_\d{4}_\d{2}_\d{2}_\d+\.\d+\.\d+(-pre)?_gitlab_backup.tar$/
       +"/builds/gitlab-org/gitlab-ce/tmp/tests/backups/1494564739_2017_05_12_9.2.0-rc1_gitlab_backup.tar"
     # ./spec/tasks/gitlab/backup_rake_spec.rb:355:in `block (3 levels) in <top (required)>'

See http://rubular.com/r/9oI7K8b773 for more details.

Merge request reports