Files
vitrage-tempest-plugin/vitrage_tempest_plugin/tests/resources/templates/api/e2e_test_basic_actions.yaml
T
Idan Hefetz 0d8e900811 tempest stability
1. set state test should not run mark down
2. ports may remain after vms were deleted

Change-Id: If6d8cf171dfc94f95a0d5f6f7ba235f60f010310
2018-05-27 12:04:24 +00:00

126 lines
3.2 KiB
YAML

metadata:
name: e2e_test_basic_actions
description: this template includes vitrage basic actions
definitions:
entities:
- entity:
category: ALARM
name: e2e.test_basic_actions.trigger.alarm1
template_id: trigger_alarm_1
- entity:
category: ALARM
name: e2e.test_basic_actions.trigger.alarm2
template_id: trigger_alarm_2
- entity:
category: ALARM
name: e2e.test_basic_actions.trigger.alarm3
template_id: trigger_alarm_3
- entity:
category: ALARM
name: e2e.test_basic_actions.trigger.alarm4
template_id: trigger_alarm_4
- entity:
category: ALARM
name: e2e.test_basic_actions.trigger.alarm5
template_id: trigger_alarm_5
- entity:
category: ALARM
type: vitrage
name: e2e.test_basic_actions.deduced.alarm
template_id: deduced_alarm
- entity:
category: RESOURCE
type: nova.host
template_id: host
- entity:
category: RESOURCE
type: nova.instance
template_id: instance
relationships:
- relationship:
source: trigger_alarm_1
relationship_type: on
target: host
template_id : trigger_alarm_1_on_host
- relationship:
source: trigger_alarm_2
relationship_type: on
target: host
template_id : trigger_alarm_2_on_host
- relationship:
source: trigger_alarm_3
relationship_type: on
target: host
template_id : trigger_alarm_3_on_host
- relationship:
source: trigger_alarm_4
relationship_type: on
target: host
template_id : trigger_alarm_4_on_host
- relationship:
source: trigger_alarm_5
relationship_type: on
target: host
template_id : trigger_alarm_5_on_host
- relationship:
source: deduced_alarm
relationship_type: on
target: host
template_id : deduced_alarm_on_host
- relationship:
source: host
target: instance
relationship_type: contains
template_id: host_contains_instance
scenarios:
- scenario:
condition: trigger_alarm_1_on_host
actions:
- action:
action_type: set_state
action_target:
target: host
properties:
state: ERROR
- scenario:
condition: trigger_alarm_4_on_host
actions:
- action:
action_type: mark_down
action_target:
target: host
- scenario:
condition: trigger_alarm_2_on_host
actions:
- action:
action_type: raise_alarm
action_target:
target: host
properties:
alarm_name: e2e.test_basic_actions.deduced.alarm
severity: WARNING
- scenario:
condition: trigger_alarm_2_on_host and deduced_alarm_on_host
actions:
- action:
action_type: add_causal_relationship
action_target:
source: trigger_alarm_2
target: deduced_alarm
- scenario:
condition: trigger_alarm_3_on_host and host_contains_instance
actions:
- action:
action_type: set_state
action_target:
target: instance
properties:
state: ERROR
- scenario:
condition: trigger_alarm_5_on_host and host_contains_instance
actions:
- action:
action_type: mark_down
action_target:
target: instance