anchor.diff:  
   Now, we are ready to test the deployments and applications triggers.
   
  -=== Deploy/Undeploy demo app
  +=== Step 4.1: Deploy a demo app
   
   In a new bash session:
    +
   [source,shell,subs="+attributes"]
   ----    
       ./06_deploy-app.sh
  +----
  +
  +Check that Hawkular Alerting trigger events for deployed applications.
  +
  +[source,shell,subs="+attributes"]
  +----    
  +21:33:21,441 INFO  [org.hawkular.alerts.actions.api] (standalone-action-4) HAWKALERT240001: Plugin [email] has received an action message: [StandaloneActionMessage[action=Action[eventId='wildfly-deployments-1478550801091-4c88ec46-69fa-4a48-b36f-f77d5a5d5534', ctime=1478550801091, event=Event [tenantId=my-organization, id=wildfly-deployments-1478550801091-4c88ec46-69fa-4a48-b36f-f77d5a5d5534, ctime=1478550801091, category=TRIGGER, dataId=wildfly-deployments, dataSource=_none_, text=Generate events on deployments, context={}, tags={}, trigger=Trigger [tenantId=my-organization, id=wildfly-deployments, type=STANDARD, eventType=EVENT, name=Deployments on Wildfly Server, description=Generate events on deployments, eventCategory=null, eventText=null, severity=MEDIUM, context={}, actions=[TriggerAction[tenantId='my-organization', actionPlugin='email', actionId='notify-to-developers', states=[], calendar='null']], autoDisable=false, autoEnable=false, autoResolve=false, autoResolveAlerts=true, autoResolveMatch=ALL, memberOf=null, dataIdMap={}, enabled=true, firingMatch=ALL, mode=FIRING, tags={}]], result='WAITING']]]
  +----
  +
  +If an smtp email server is configured you should received a proper Event email.
  +
  +=== Step 4.2: Undeploy demo app
  +
  +In a bash session:
  + +
  +[source,shell,subs="+attributes"]
  +----    
       ./07_undeploy-app.sh
   ----
   
  -Check that Hawkular Alerting trigger events for deployed and undeployed applications.
  -
  -[source,shell,subs="+attributes"]
  -----    
  -21:33:21,441 INFO  [org.hawkular.alerts.actions.api] (standalone-action-4) HAWKALERT240001: Plugin [email] has received an action message: [StandaloneActionMessage[action=Action[eventId='wildfly-deployments-1478550801091-4c88ec46-69fa-4a48-b36f-f77d5a5d5534', ctime=1478550801091, event=Event [tenantId=my-organization, id=wildfly-deployments-1478550801091-4c88ec46-69fa-4a48-b36f-f77d5a5d5534, ctime=1478550801091, category=TRIGGER, dataId=wildfly-deployments, dataSource=_none_, text=Generate events on deployments, context={}, tags={}, trigger=Trigger [tenantId=my-organization, id=wildfly-deployments, type=STANDARD, eventType=EVENT, name=Deployments on Wildfly Server, description=Generate events on deployments, eventCategory=null, eventText=null, severity=MEDIUM, context={}, actions=[TriggerAction[tenantId='my-organization', actionPlugin='email', actionId='notify-to-developers', states=[], calendar='null']], autoDisable=false, autoEnable=false, autoResolve=false, autoResolveAlerts=true, autoResolveMatch=ALL, memberOf=null, dataIdMap={}, enabled=true, firingMatch=ALL, mode=FIRING, tags={}]], result='WAITING']]]
  -----
  +Check that Hawkular Alerting trigger events for undeployed applications.
   
   [source,shell,subs="+attributes"]
   ----
  
positive.code: ----
  
  The definitions are structured on the following files.
  
  === import-actions.json
  
  List of actions defined.
  
negative.code:  +
  Check that an alert will be generated on every single app ERROR message.
  
  == Step 5: Acknowledge and resolve open Alerts
  
  Triggers without AUTORESOLVE feature enabled fire Alerts that need manual intervention.
   +
  