Merge "collect common constraints"
This commit is contained in:
commit
e3608159cd
0
heat/tests/constraints/__init__.py
Normal file
0
heat/tests/constraints/__init__.py
Normal file
@ -11,7 +11,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from heat.engine import iso_8601
|
from heat.engine.constraint import common_constraints as cc
|
||||||
from heat.tests import common
|
from heat.tests import common
|
||||||
|
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ class TestISO8601Constraint(common.HeatTestCase):
|
|||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(TestISO8601Constraint, self).setUp()
|
super(TestISO8601Constraint, self).setUp()
|
||||||
self.constraint = iso_8601.ISO8601Constraint()
|
self.constraint = cc.ISO8601Constraint()
|
||||||
|
|
||||||
def test_validate_date_format(self):
|
def test_validate_date_format(self):
|
||||||
date = '2050-01-01'
|
date = '2050-01-01'
|
@ -72,7 +72,7 @@ heat.constraints =
|
|||||||
neutron.router = heat.engine.clients.os.neutron:RouterConstraint
|
neutron.router = heat.engine.clients.os.neutron:RouterConstraint
|
||||||
neutron.subnet = heat.engine.clients.os.neutron:SubnetConstraint
|
neutron.subnet = heat.engine.clients.os.neutron:SubnetConstraint
|
||||||
glance.image = heat.engine.clients.os.glance:ImageConstraint
|
glance.image = heat.engine.clients.os.glance:ImageConstraint
|
||||||
iso_8601 = heat.engine.iso_8601:ISO8601Constraint
|
iso_8601 = heat.engine.constraint.common_constraints:ISO8601Constraint
|
||||||
nova.server = heat.engine.clients.os.nova:ServerConstraint
|
nova.server = heat.engine.clients.os.nova:ServerConstraint
|
||||||
nova.keypair = heat.engine.clients.os.nova:KeypairConstraint
|
nova.keypair = heat.engine.clients.os.nova:KeypairConstraint
|
||||||
cinder.volume = heat.engine.clients.os.cinder:VolumeConstraint
|
cinder.volume = heat.engine.clients.os.cinder:VolumeConstraint
|
||||||
|
Loading…
Reference in New Issue
Block a user