BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
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
...
@@ -112,14 +112,14 @@ describe 'gitlab:app namespace rake task' do
it
'should set correct permissions on the tar contents'
do
it
'should set correct permissions on the tar contents'
do
tar_contents
,
exit_status
=
Gitlab
::
Popen
.
popen
(
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
(
exit_status
).
to
eq
(
0
)
expect
(
tar_contents
).
to
match
(
'db/'
)
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
(
'repositories/'
)
expect
(
tar_contents
).
to
match
(
'builds
/
'
)
expect
(
tar_contents
).
to
match
(
'builds
.tar.gz
'
)
expect
(
tar_contents
).
not_to
match
(
/^.{4,9}[rwx].* (d
b|uploads|repositories|builds
)\/$/
)
expect
(
tar_contents
).
not_to
match
(
/^.{4,9}[rwx].* (d
atabase.sql.gz|uploads.tar.gz|repositories|builds.tar.gz
)\/$/
)
end
end
it
'should delete temp directories'
do
it
'should delete temp directories'
do
...
@@ -160,12 +160,12 @@ describe 'gitlab:app namespace rake task' do
...
@@ -160,12 +160,12 @@ describe 'gitlab:app namespace rake task' do
it
"does not contain skipped item"
do
it
"does not contain skipped item"
do
tar_contents
,
_exit_status
=
Gitlab
::
Popen
.
popen
(
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
(
'db/'
)
expect
(
tar_contents
).
to
match
(
'uploads
/
'
)
expect
(
tar_contents
).
to
match
(
'uploads
.tar.gz
'
)
expect
(
tar_contents
).
to
match
(
'builds
/
'
)
expect
(
tar_contents
).
to
match
(
'builds
.tar.gz
'
)
expect
(
tar_contents
).
not_to
match
(
'repositories/'
)
expect
(
tar_contents
).
not_to
match
(
'repositories/'
)
end
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