Fix preinstalled workflows tests
The 'std' prefix was removed from the workflow name make sure it passes on both cases. Change-Id: I072fad4bf88cb078a0ae9d911c6ed06764f66036
This commit is contained in:
parent
dc827496ad
commit
7acca6deff
@ -22,6 +22,8 @@
|
||||
required-projects:
|
||||
- openstack/heat
|
||||
- openstack/mistral
|
||||
- openstack/mistral-lib
|
||||
- openstack/mistral-extra
|
||||
- openstack/python-mistralclient
|
||||
|
||||
- project:
|
||||
@ -49,9 +51,9 @@
|
||||
# run in Pike and beyond.
|
||||
# If you need any support to debug these jobs in case of
|
||||
# failures, please reach us on #tripleo IRC channel.
|
||||
- tripleo-ci-centos-7-containers-multinode
|
||||
- tripleo-ci-centos-7-containers-multinode:
|
||||
voting: false
|
||||
gate:
|
||||
jobs:
|
||||
- python-mistralclient-functional-devstack
|
||||
- tripleo-ci-centos-7-containers-multinode
|
||||
|
||||
|
@ -83,6 +83,9 @@ class MistralClientTestBase(base.MistralCLIAuth, base.MistralCLIAltAuth):
|
||||
def setUp(self):
|
||||
super(MistralClientTestBase, self).setUp()
|
||||
|
||||
def assertPartIn(self, needle, haystack, message=''):
|
||||
self.assertTrue(any(needle in s for s in haystack), message)
|
||||
|
||||
def get_field_value(self, obj, field):
|
||||
return [
|
||||
o['Value'] for o in obj
|
||||
|
@ -26,8 +26,8 @@ class StandardItemsAvailabilityCLITests(base_v2.MistralClientTestBase):
|
||||
wfs,
|
||||
["Name", "Tags", "Input", "Created at", "Updated at"]
|
||||
)
|
||||
self.assertIn("std.create_instance",
|
||||
[workflow["Name"] for workflow in wfs])
|
||||
self.assertPartIn("create_instance",
|
||||
[workflow["Name"] for workflow in wfs])
|
||||
|
||||
wfs = self.mistral_alt_user("workflow-list")
|
||||
|
||||
@ -35,8 +35,8 @@ class StandardItemsAvailabilityCLITests(base_v2.MistralClientTestBase):
|
||||
wfs,
|
||||
["Name", "Tags", "Input", "Created at", "Updated at"]
|
||||
)
|
||||
self.assertIn("std.create_instance",
|
||||
[workflow["Name"] for workflow in wfs])
|
||||
self.assertPartIn("create_instance",
|
||||
[workflow["Name"] for workflow in wfs])
|
||||
|
||||
def test_std_actions_availability(self):
|
||||
acts = self.mistral_admin("action-list")
|
||||
|
@ -573,7 +573,7 @@ class WorkflowCLITests(base_v2.MistralClientTestBase):
|
||||
workflows = self.parser.listing(
|
||||
self.mistral(
|
||||
'workflow-list',
|
||||
params='--filter name=std.create_instance'
|
||||
params='--filter name=in:std.create_instance,create_instance'
|
||||
)
|
||||
)
|
||||
|
||||
@ -585,7 +585,7 @@ class WorkflowCLITests(base_v2.MistralClientTestBase):
|
||||
|
||||
self.assertEqual(1, len(workflows))
|
||||
|
||||
self.assertIn('std.create_instance', workflows[0]['Name'])
|
||||
self.assertIn('create_instance', workflows[0]['Name'])
|
||||
|
||||
|
||||
class ExecutionCLITests(base_v2.MistralClientTestBase):
|
||||
|
Loading…
Reference in New Issue
Block a user