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
852526e0
Commit
852526e0
authored
Oct 06, 2015
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spec fixes for new backup contents
parent
901f5445
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
spec/tasks/gitlab/backup_rake_spec.rb
spec/tasks/gitlab/backup_rake_spec.rb
+7
-7
No files found.
spec/tasks/gitlab/backup_rake_spec.rb
View file @
852526e0
...
...
@@ -112,14 +112,14 @@ describe 'gitlab:app namespace rake task' do
it
'should set correct permissions on the tar contents'
do
tar_contents
,
exit_status
=
Gitlab
::
Popen
.
popen
(
%W{tar -tvf
#{
@backup_tar
}
db uploads
repositories builds
}
%W{tar -tvf
#{
@backup_tar
}
db uploads
.tar.gz repositories builds.tar.gz
}
)
expect
(
exit_status
).
to
eq
(
0
)
expect
(
tar_contents
).
to
match
(
'db/'
)
expect
(
tar_contents
).
to
match
(
'uploads
/
'
)
expect
(
tar_contents
).
to
match
(
'uploads
.tar.gz
'
)
expect
(
tar_contents
).
to
match
(
'repositories/'
)
expect
(
tar_contents
).
to
match
(
'builds
/
'
)
expect
(
tar_contents
).
not_to
match
(
/^.{4,9}[rwx].* (d
b|uploads|repositories|builds
)\/$/
)
expect
(
tar_contents
).
to
match
(
'builds
.tar.gz
'
)
expect
(
tar_contents
).
not_to
match
(
/^.{4,9}[rwx].* (d
atabase.sql.gz|uploads.tar.gz|repositories|builds.tar.gz
)\/$/
)
end
it
'should delete temp directories'
do
...
...
@@ -160,12 +160,12 @@ describe 'gitlab:app namespace rake task' do
it
"does not contain skipped item"
do
tar_contents
,
_exit_status
=
Gitlab
::
Popen
.
popen
(
%W{tar -tvf
#{
@backup_tar
}
db uploads
repositories builds
}
%W{tar -tvf
#{
@backup_tar
}
db uploads
.tar.gz repositories builds.tar.gz
}
)
expect
(
tar_contents
).
to
match
(
'db/'
)
expect
(
tar_contents
).
to
match
(
'uploads
/
'
)
expect
(
tar_contents
).
to
match
(
'builds
/
'
)
expect
(
tar_contents
).
to
match
(
'uploads
.tar.gz
'
)
expect
(
tar_contents
).
to
match
(
'builds
.tar.gz
'
)
expect
(
tar_contents
).
not_to
match
(
'repositories/'
)
end
...
...
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