metadata:
 name: basic_template
 description: basic template for general tests
definitions:
 entities:
  - entity:
     # an equivalence of this entity is defined in equivalences/basic.yaml
     # be sure keep them sync when modifying test cases
     category: ALARM
     type: nagios
     name: host_problem
     template_id: alarm
  - entity:
     category: RESOURCE
     type: nova.host
     template_id: resource
 relationships:
  - relationship:
     source: alarm
     target: resource
     relationship_type: on
     template_id : alarm_on_host
scenarios:
 - scenario:
    condition: alarm_on_host
    actions:
     - action:
        action_type: set_state
        properties:
         state: SUBOPTIMAL
        action_target:
         target: resource
