From 49e5e1205927cf018d6cdb9eaf40548f49525c3f Mon Sep 17 00:00:00 2001 From: ramishra Date: Wed, 14 Apr 2021 14:23:32 +0530 Subject: [PATCH] Fix failing test_common_constraints After UC change for croniter in [1] [1] https://review.opendev.org/c/openstack/requirements/+/785745 Change-Id: I7506f3b95ae52777ea39042b449f7949f3f81aed --- heat/tests/constraints/test_common_constraints.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/heat/tests/constraints/test_common_constraints.py b/heat/tests/constraints/test_common_constraints.py index 7f993fada1..c466b06054 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):