Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
aaa5fbc4
Commit
aaa5fbc4
authored
Feb 27, 2020
by
Henrik Christian Grove
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply suggestion to spec/tasks/gitlab/backup_rake_spec.rb
parent
ee5efbab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
spec/tasks/gitlab/backup_rake_spec.rb
spec/tasks/gitlab/backup_rake_spec.rb
+11
-12
No files found.
spec/tasks/gitlab/backup_rake_spec.rb
View file @
aaa5fbc4
...
...
@@ -390,19 +390,18 @@ describe 'gitlab:app namespace rake task' do
it
'created files with backup content and no tar archive'
do
expect
{
run_rake_task
(
'gitlab:backup:create'
)
}.
to
output
.
to_stdout
dir_contents
,
_exit_status
=
Gitlab
::
Popen
.
popen
(
%W{ls -la
#{
Gitlab
.
config
.
backup
.
path
}
}
dir_contents
=
Dir
.
children
(
Gitlab
.
config
.
backup
.
path
)
expect
(
dir_contents
).
to
contain_exactly
(
'backup_information.yml'
,
'db'
,
'uploads.tar.gz'
,
'builds.tar.gz'
,
'artifacts.tar.gz'
,
'lfs.tar.gz'
,
'pages.tar.gz'
,
'registry.tar.gz'
)
expect
(
dir_contents
).
to
match
(
'backup_information.yml'
)
expect
(
dir_contents
).
to
match
(
'db'
)
expect
(
dir_contents
).
to
match
(
'uploads.tar.gz'
)
expect
(
dir_contents
).
to
match
(
'builds.tar.gz'
)
expect
(
dir_contents
).
to
match
(
'artifacts.tar.gz'
)
expect
(
dir_contents
).
to
match
(
'lfs.tar.gz'
)
expect
(
dir_contents
).
to
match
(
'pages.tar.gz'
)
expect
(
dir_contents
).
to
match
(
'registry.tar.gz'
)
expect
(
dir_contents
).
not_to
match
(
"_gitlab_backup.tar"
)
end
it
'those component files can be restored from'
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment