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
b40e2dbb
Commit
b40e2dbb
authored
Mar 07, 2016
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved Geo factories to it's own factories file
parent
4bbe48cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
21 deletions
+16
-21
spec/factories.rb
spec/factories.rb
+0
-21
spec/factories/geo_node_keys.rb
spec/factories/geo_node_keys.rb
+14
-0
spec/factories/geo_nodes.rb
spec/factories/geo_nodes.rb
+2
-0
No files found.
spec/factories.rb
View file @
b40e2dbb
...
...
@@ -115,15 +115,6 @@ FactoryGirl.define do
factory
:deploy_key
,
class:
'DeployKey'
do
end
factory
:geo_node_key
,
class:
'GeoNodeKey'
do
trait
:another_key
do
key
do
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmTillFzNTrrGgwaCKaSj+QCz81E6jBc/s9av0+3b1Hwfxgkqjl4nAK/OD2NjgyrONDTDfR8cRN4eAAy6nY8GLkOyYBDyuc5nTMqs5z3yVuTwf3koGm/YQQCmo91psZ2BgDFTor8SVEE5Mm1D1k3JDMhDFxzzrOtRYFPci9lskTJaBjpqWZ4E9rDTD2q/QZntCqbC3wE9uSemRQB5f8kik7vD/AD8VQXuzKladrZKkzkONCPWsXDspUitjM8HkQdOf0PsYn1CMUC1xKYbCxkg5TkEosIwGv6CoEArUrdu/4+10LVslq494mAvEItywzrluCLCnwELfW+h/m8UHoVhZ"
end
end
end
factory
:personal_key
do
user
end
...
...
@@ -236,16 +227,4 @@ FactoryGirl.define do
noteable
factory: :issue
reply_key
"0123456789abcdef"
*
2
end
factory
:geo_node
do
host
{
Gitlab
.
config
.
gitlab
.
host
}
sequence
(
:port
)
{
|
n
|
n
}
association
:geo_node_key
trait
:primary
do
primary
true
port
{
Gitlab
.
config
.
gitlab
.
port
}
association
:geo_node_key
,
:another_key
end
end
end
spec/factories/geo_node_keys.rb
0 → 100644
View file @
b40e2dbb
FactoryGirl
.
define
do
factory
:geo_node_key
,
class:
'GeoNodeKey'
do
title
key
do
"ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0= dummy@gitlab.com"
end
trait
:another_key
do
key
do
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmTillFzNTrrGgwaCKaSj+QCz81E6jBc/s9av0+3b1Hwfxgkqjl4nAK/OD2NjgyrONDTDfR8cRN4eAAy6nY8GLkOyYBDyuc5nTMqs5z3yVuTwf3koGm/YQQCmo91psZ2BgDFTor8SVEE5Mm1D1k3JDMhDFxzzrOtRYFPci9lskTJaBjpqWZ4E9rDTD2q/QZntCqbC3wE9uSemRQB5f8kik7vD/AD8VQXuzKladrZKkzkONCPWsXDspUitjM8HkQdOf0PsYn1CMUC1xKYbCxkg5TkEosIwGv6CoEArUrdu/4+10LVslq494mAvEItywzrluCLCnwELfW+h/m8UHoVhZ"
end
end
end
end
spec/factories/geo_nodes.rb
View file @
b40e2dbb
...
...
@@ -2,10 +2,12 @@ FactoryGirl.define do
factory
:geo_node
do
host
{
Gitlab
.
config
.
gitlab
.
host
}
sequence
(
:port
)
{
|
n
|
n
}
association
:geo_node_key
trait
:primary
do
primary
true
port
{
Gitlab
.
config
.
gitlab
.
port
}
association
:geo_node_key
,
:another_key
end
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