From ff00c86b1e57e56818f9e43e01ecb533e3b23c4b Mon Sep 17 00:00:00 2001 From: dharmendra Date: Tue, 20 Aug 2019 07:08:49 +0000 Subject: [PATCH] Fix gate failure Functional test test_vnf_with_placement_policy_invalid failing with MismatchError on gate due to invalid string check. Please see [1]. Fixing it with correct string check. [1]: http://logs.openstack.org/96/666496/7/check/tacker-functional-devstack-multinode-python3/fae7692/testr_results.html.gz Change-Id: I3b448067036f122e16826d4729c59a65e70109ac --- tacker/tests/functional/vnfm/test_vnf_placement_policy.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tacker/tests/functional/vnfm/test_vnf_placement_policy.py b/tacker/tests/functional/vnfm/test_vnf_placement_policy.py index 4e64bfe9d..a3ebebcfc 100644 --- a/tacker/tests/functional/vnfm/test_vnf_placement_policy.py +++ b/tacker/tests/functional/vnfm/test_vnf_placement_policy.py @@ -122,6 +122,6 @@ class VnfTestCreate(base.BaseTackerTest): vnfd_name='sample-tosca-vnfd-placement-policy-invalid', vdu_name='invalid-placement-policy-vdu', placement_policy='invalid') - self.assertIn("[u\'invalid\']", exc.message) - self.assertIn("is not an allowed value [anti-affinity, affinity, " - "soft-anti-affinity, soft-affinity]", exc.message) + self.assertIn('["invalid"]', exc.message) + self.assertIn('is not an allowed value ["anti-affinity", "affinity", ' + '"soft-anti-affinity", "soft-affinity"]', exc.message)