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:
parent
d7aee60eec
commit
49e5e12059
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue