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
caec4fa6
Commit
caec4fa6
authored
Nov 19, 2013
by
Dionysis Grigoropoulos
Committed by
Christos Stavrakakis
Nov 25, 2013
Browse files
cyclades: Typo fixes
parent
ea794b41
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/api/tests/subnets.py
View file @
caec4fa6
...
...
@@ -154,7 +154,7 @@ class SubnetTest(BaseAPITest):
}
response
=
self
.
post
(
SUBNETS_URL
,
test_net
.
userid
,
json
.
dumps
(
request
),
"json"
)
self
.
assertSuccess
(
response
)
self
.
assertSuccess
201
(
response
)
def
test_create_subnet_with_ip_pool_allocation
(
self
):
"""Test create a subnet with an IP pool"""
...
...
@@ -258,11 +258,11 @@ class SubnetTest(BaseAPITest):
'network_id'
:
test_net
.
id
,
'cidr'
:
'10.0.3.0/24'
,
'ip_version'
:
4
,
'gateway_ip'
:
10.0
.
3.254
}
'gateway_ip'
:
'
10.0.3.254
'
}
}
response
=
self
.
post
(
SUBNETS_URL
,
test_net
.
userid
,
json
.
dumps
(
request
),
"json"
)
self
.
assertSuccess
(
response
)
self
.
assertSuccess
201
(
response
)
resp
=
json
.
loads
(
response
.
content
)[
'subnet'
]
self
.
assertEqual
(
"10.0.3.254"
,
resp
[
'gateway_ip'
])
self
.
assertEqual
([{
"start"
:
"10.0.3.1"
,
"end"
:
"10.0.3.253"
}],
...
...
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