heat/heat/tests/openstack/mistral
Rabi Mishra 9e80518b90 Handle OS::Mistral::Workflow resource replacement properly
OS::Mistral::Workflow resource creates a mistral workflow with
a unique name (resource_id). We replace FAILED resources by
default and replace wont work in this case as it will try to
use the same workflow name for the replacement resouce, if the
'name' property is provided.

If the workflow does not exist/deleted using mistral api directly,
it would create a replacement resource, but it would delete the
workflow when cleaning up the old resource. So we would endup
with a replacement resource without any backing workflow.

This adds a new resource attribute ``always_replace_on_check_failed``
and overrides needs_replace_failed() for OS::Mistral::Workflow.

Task: 38855
Change-Id: Ia0812b88cae363dfa25ccd907ecbe8b86f5b1a23
2020-02-25 08:37:16 +05:30
..
__init__.py Change namespace for Mistral tests 2015-11-20 12:38:08 +08:00
test_cron_trigger.py Replace assertRaisesRegexp with assertRaisesRegex 2017-05-19 18:13:59 +05:30
test_external_resource.py Handle resource plugins without default_client_name 2018-06-18 16:41:43 -04:00
test_workflow.py Handle OS::Mistral::Workflow resource replacement properly 2020-02-25 08:37:16 +05:30