[functest] Update tests for Aodh 05/54205/1
authorEmma Foley <emma.l.foley@intel.com>
Tue, 20 Mar 2018 14:33:13 +0000 (14:33 +0000)
committerEmma Foley <emma.l.foley@intel.com>
Tue, 20 Mar 2018 14:38:42 +0000 (14:38 +0000)
commit884197104f9d1b420eeb85c8ea18b4538daf3418
tree8a99a1a6bb2fed0320146037655bb0520780664d
parentf6e7b3b48f49a607da05663d7963945849e04002
[functest] Update tests for Aodh

* Update the check for timestamp to use state_timestamp instead
  state_timestamp indicates the last change in state of the alarm,
  timestamp is the last update to the alarm settings. This is not
  what we're looking for with aodh tests, so check the state update
  instead.
* Trigger an alarm state change before checking whether the alram
  was updated. Notification in collectd aren't necessarily updated
  at a regular interval, so we have to do some action and check whether
  the alarm is updated.

JIRA: BAROMETER-91
Change-Id: I26d9bb1ec7e50e07053e69068d241e4c4cbc30dc
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
baro_tests/config_server.py