Fix preinstalled workflows tests

The 'std' prefix was removed from the workflow name
make sure it passes on both cases.

Change-Id: I9bd36bf2ad1a36ff569f385190c186b63b78f1e1
This commit is contained in:
Eyal 2020-02-26 14:31:28 +02:00
parent 3fca72a658
commit 6f746b9228
2 changed files with 4 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class WorkflowTestsV2(base.TestCase):
names = [wf['name'] for wf in body['workflows']] names = [wf['name'] for wf in body['workflows']]
self.assertIn('std.create_instance', names) self.assertPartIn('create_instance', names)
self.assertNotIn('next', body) self.assertNotIn('next', body)

View File

@ -59,6 +59,9 @@ class TestCase(test.BaseTestCase):
self.alt_client = mistral_client.MistralClientV2( self.alt_client = mistral_client.MistralClientV2(
self.alt_mgr.auth_provider, self._service) self.alt_mgr.auth_provider, self._service)
def assertPartIn(self, needle, haystack, message=''):
self.assertTrue(any(needle in s for s in haystack), message)
def tearDown(self): def tearDown(self):
super(TestCase, self).tearDown() super(TestCase, self).tearDown()