diff options
author | ramishra <ramishra@redhat.com> | 2021-04-14 14:23:32 +0530 |
---|---|---|
committer | ramishra <ramishra@redhat.com> | 2021-04-14 15:40:35 +0530 |
commit | 49e5e1205927cf018d6cdb9eaf40548f49525c3f (patch) | |
tree | 8ada3d9b7072d89acdfc10238c779a7e42dd6b43 /heat/tests | |
parent | d7aee60eec3d62902a02bc2ed59376926e53245b (diff) | |
download | heat-49e5e1205927cf018d6cdb9eaf40548f49525c3f.tar.gz |
Fix failing test_common_constraints
After UC change for croniter in [1]
[1] https://review.opendev.org/c/openstack/requirements/+/785745
Change-Id: I7506f3b95ae52777ea39042b449f7949f3f81aed
Diffstat (limited to 'heat/tests')
-rw-r--r-- | heat/tests/constraints/test_common_constraints.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/heat/tests/constraints/test_common_constraints.py b/heat/tests/constraints/test_common_constraints.py index 7f993fada..c466b0605 100644 --- a/heat/tests/constraints/test_common_constraints.py +++ b/heat/tests/constraints/test_common_constraints.py @@ -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): |