diff options
author | Rabi Mishra <ramishra@redhat.com> | 2015-11-16 15:33:01 +0530 |
---|---|---|
committer | Rabi Mishra <ramishra@redhat.com> | 2015-12-02 19:36:19 +0530 |
commit | b5576d44d4bc9a270c605c5c64183b162946b5f0 (patch) | |
tree | 952786135d5148e2e3c6b7475bd01878753316d6 /heat/tests/common.py | |
parent | c716c8be3f8d59ee2c7473c4417af618a640e5bc (diff) | |
download | heat-b5576d44d4bc9a270c605c5c64183b162946b5f0.tar.gz |
Add subnetpool property to subnet resource
This patch adds subnetpool and prefixlen properties
to the Subnet resource. Also makes the existing cidr
property optional.
Change-Id: Id7ff95f90fef5febd9e7e4df3b96f2467c05a840
Blueprint: subnet-pools
Diffstat (limited to 'heat/tests/common.py')
-rw-r--r-- | heat/tests/common.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/heat/tests/common.py b/heat/tests/common.py index b5ef8416e..af2bfbc71 100644 --- a/heat/tests/common.py +++ b/heat/tests/common.py @@ -269,6 +269,10 @@ class HeatTestCase(testscenarios.WithScenarios, validate = self.patchobject(neutron.AddressScopeConstraint, 'validate') validate.return_value = True + def stub_SubnetPoolConstraint_validate(self): + validate = self.patchobject(neutron.SubnetPoolConstraint, 'validate') + validate.return_value = True + def stub_RouterConstraint_validate(self): validate = self.patchobject(neutron.RouterConstraint, 'validate') validate.return_value = True |