collect common constraints
Create directory for common constraints and collect constraints. Change-Id: Ie0800baa5415a71b67ede22313b0d57b198e8dc4
This commit is contained in:
parent
c6c1cc9e8a
commit
35a866ca83
0
heat/engine/constraint/__init__.py
Normal file
0
heat/engine/constraint/__init__.py
Normal file
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
|
||||
# under the License.
|
||||
|
||||
from heat.engine import iso_8601
|
||||
from heat.engine.constraint import common_constraints as cc
|
||||
from heat.tests import common
|
||||
|
||||
|
||||
@ -19,7 +19,7 @@ class TestISO8601Constraint(common.HeatTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestISO8601Constraint, self).setUp()
|
||||
self.constraint = iso_8601.ISO8601Constraint()
|
||||
self.constraint = cc.ISO8601Constraint()
|
||||
|
||||
def test_validate_date_format(self):
|
||||
date = '2050-01-01'
|
@ -72,7 +72,7 @@ heat.constraints =
|
||||
neutron.router = heat.engine.clients.os.neutron:RouterConstraint
|
||||
neutron.subnet = heat.engine.clients.os.neutron:SubnetConstraint
|
||||
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.keypair = heat.engine.clients.os.nova:KeypairConstraint
|
||||
cinder.volume = heat.engine.clients.os.cinder:VolumeConstraint
|
||||
|
Loading…
x
Reference in New Issue
Block a user