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
This commit is contained in:
dharmendra 2019-08-20 07:08:49 +00:00 committed by dharmendra kushwaha
parent 3a198b0ba6
commit ff00c86b1e
1 changed files with 3 additions and 3 deletions

View File

@ -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)