]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Remove unneccessary Property constraints from unit tests
authorZane Bitter <zbitter@redhat.com>
Tue, 13 Aug 2013 08:48:15 +0000 (10:48 +0200)
committerZane Bitter <zbitter@redhat.com>
Tue, 13 Aug 2013 08:48:23 +0000 (10:48 +0200)
commit9cb8ca5a6b8a725dc8dbdb304e1fddce0663debe
treec65ded0f9dbb755c77d2220cad3d6c8b55f16d8a
parent68841467ee5e113e79541ed1b2b2be9b41627c5c
Remove unneccessary Property constraints from unit tests

It doesn't really make a lot of sense to have constraints on the number of
keys in a Map Property, or on the allowed values in a List Property. In
both cases, we can and should define the Schema for each item. Neither is
used anywhere in the code, since the new Schema/Constraints do not allow
it, and SchemaTest.test_all_resource_schemata() tests that all existing
schemata are valid.

Change-Id: I24e11ec59c75ef770bf040ee8151bbe061f4a864
heat/tests/test_properties.py