Fix failing test_common_constraints

After UC change for croniter in [1]

[1] https://review.opendev.org/c/openstack/requirements/+/785745
Change-Id: I7506f3b95ae52777ea39042b449f7949f3f81aed
This commit is contained in:
ramishra 2021-04-14 14:23:32 +05:30
parent d7aee60eec
commit 49e5e12059
1 changed files with 3 additions and 4 deletions

View File

@ -261,11 +261,10 @@ class CRONExpressionConstraint(common.HeatTestCase):
def test_validation_columns_length_error(self):
cron_expression = "* *"
expect = ("Invalid CRON expression: Exactly 5 "
"or 6 columns has to be specified for "
"iteratorexpression.")
"or 6 columns has to be specified for ")
self.assertFalse(self.constraint.validate(cron_expression, self.ctx))
self.assertEqual(expect,
str(self.constraint._error_message))
self.assertIn(expect,
str(self.constraint._error_message))
class TimezoneConstraintTest(common.HeatTestCase):