diff --git a/murano/tests/unit/packages/hot_package/test.hot.1/Resources/FullTestName b/murano/tests/unit/packages/hot_package/test.hot.1/Resources/FullTestName index e1ded2455..1dfd08e09 100644 --- a/murano/tests/unit/packages/hot_package/test.hot.1/Resources/FullTestName +++ b/murano/tests/unit/packages/hot_package/test.hot.1/Resources/FullTestName @@ -16,7 +16,7 @@ parameters: description: Range Description - allowed_values: [0, 1, 2, 3, 4] description: Allowed Values Description - - allowed_pattern: [A-Za-z0-9] + - allowed_pattern: "[A-Za-z0-9]" description: Allowed Pattern Description bar: type: boolean @@ -51,7 +51,7 @@ parameter_groups: description: Range Description - allowed_values: [0, 1, 2, 3, 4] description: Allowed Values Description - - allowed_pattern: [A-Za-z0-9] + - allowed_pattern: "[A-Za-z0-9]" description: Allowed Pattern Description bar: type: boolean diff --git a/murano/tests/unit/packages/hot_package/test.hot.1/properties_manifest.yaml b/murano/tests/unit/packages/hot_package/test.hot.1/properties_manifest.yaml index 7528f2ce4..96e8d0b8f 100644 --- a/murano/tests/unit/packages/hot_package/test.hot.1/properties_manifest.yaml +++ b/murano/tests/unit/packages/hot_package/test.hot.1/properties_manifest.yaml @@ -11,7 +11,7 @@ parameters: max: 50 - length: min: 0 - - allowed_pattern: [A-Za-z0-9] + - allowed_pattern: "[A-Za-z0-9]" param3: type: number constraints: diff --git a/murano/tests/unit/packages/hot_package/test.hot.1/template.yaml b/murano/tests/unit/packages/hot_package/test.hot.1/template.yaml index e1ded2455..1dfd08e09 100644 --- a/murano/tests/unit/packages/hot_package/test.hot.1/template.yaml +++ b/murano/tests/unit/packages/hot_package/test.hot.1/template.yaml @@ -16,7 +16,7 @@ parameters: description: Range Description - allowed_values: [0, 1, 2, 3, 4] description: Allowed Values Description - - allowed_pattern: [A-Za-z0-9] + - allowed_pattern: "[A-Za-z0-9]" description: Allowed Pattern Description bar: type: boolean @@ -51,7 +51,7 @@ parameter_groups: description: Range Description - allowed_values: [0, 1, 2, 3, 4] description: Allowed Values Description - - allowed_pattern: [A-Za-z0-9] + - allowed_pattern: "[A-Za-z0-9]" description: Allowed Pattern Description bar: type: boolean diff --git a/murano/tests/unit/packages/hot_package/test_hot_package.py b/murano/tests/unit/packages/hot_package/test_hot_package.py index 60fbfb322..54f2148f1 100644 --- a/murano/tests/unit/packages/hot_package/test_hot_package.py +++ b/murano/tests/unit/packages/hot_package/test_hot_package.py @@ -111,9 +111,9 @@ class TestHotPackage(test_base.MuranoTestCase): param6 = params['Contract']['param6'] self.assertEqual("$.bool().check($ in list(True, False))", param1.expr) - self.assertTrue("$.string().check($ in list('bar'))." - "check(len($) <= 50).check(len($) >= 0)." - "check(matches($, '['A-Za-z0-9']'))", param2.expr) + self.assertEqual("$.string().check($ in list('bar'))." + "check(len($) <= 50).check(len($) >= 0)." + "check(matches($, '[A-Za-z0-9]'))", param2.expr) self.assertEqual("$.int().check($ in list(0, 1, 2, 3, 4))" ".check(len($) >= 0 and len($) <= 5)." "check($ >= 0 and $ <= 4)", param3.expr)