Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
9f37b42c
Commit
9f37b42c
authored
Dec 18, 2013
by
Christos Stavrakakis
Browse files
cyclades: Fix broken tests
Fix default values for DB model factories.
parent
2f425ae2
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/db/models_factory.py
View file @
9f37b42c
...
...
@@ -152,7 +152,7 @@ class NetworkFactory(factory.DjangoModelFactory):
flavor
=
factory
.
Sequence
(
round_seq
(
models
.
Network
.
FLAVORS
.
keys
()))
mode
=
factory
.
LazyAttribute
(
lambda
a
:
models
.
Network
.
FLAVORS
[
a
.
flavor
][
'mode'
])
link
=
factory
.
Sequence
(
prefix_seq
(
'link'
))
link
=
factory
.
Sequence
(
prefix_seq
(
'
snf-
link'
))
mac_prefix
=
'aa:00:0'
tags
=
factory
.
LazyAttribute
(
lambda
a
:
models
.
Network
.
FLAVORS
[
a
.
flavor
][
'tags'
])
...
...
@@ -261,13 +261,13 @@ class SecurityGroupFactory(factory.DjangoModelFactory):
class
BridgePoolTableFactory
(
factory
.
DjangoModelFactory
):
FACTORY_FOR
=
models
.
BridgePoolTable
size
=
2
0
base
=
'
prv
'
size
=
50
0
base
=
'
snf-link-
'
class
MacPrefixPoolTableFactory
(
factory
.
DjangoModelFactory
):
FACTORY_FOR
=
models
.
MacPrefixPoolTable
size
=
1
00
size
=
5
00
base
=
'aa:00:0'
...
...
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