Commit 0765c492 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Fix bug in tests

Fix bug in port tests that were introduced by latest changes in IPPool
manager.
parent ef503914
......@@ -242,6 +242,7 @@ class PortTest(BaseAPITest):
net = dbmf.NetworkWithSubnetFactory(userid=vm.userid,
public=False,
subnet__cidr="192.168.2.0/24",
subnet__gateway=None,
subnet__pool__size=1,
subnet__pool__offset=1)
request = {
......@@ -276,6 +277,7 @@ class PortTest(BaseAPITest):
net = dbmf.NetworkWithSubnetFactory(userid="test_user",
public=False,
subnet__cidr="192.168.2.0/24",
subnet__gateway=None,
subnet__pool__size=3,
subnet__pool__offset=1)
request = {
......
......@@ -214,6 +214,7 @@ class IPPoolTestCase(TestCase):
subnet = DummyObject(0)
obj.subnet = subnet
subnet.cidr = "192.168.2.0/28"
subnet.gateway = None
obj.base = "192.168.2.0/28"
obj.offset = 0
pool = IPPool(obj)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment