collect common constraints

Create directory for common constraints and collect constraints.

Change-Id: Ie0800baa5415a71b67ede22313b0d57b198e8dc4
This commit is contained in:
ricolin 2015-07-30 16:40:53 +08:00
parent c6c1cc9e8a
commit 35a866ca83
5 changed files with 3 additions and 3 deletions

View File

View File

View 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'

View File

@ -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