Check alarm state just after the PUT
This reduces the chance to have Aodh evaluator to changing our alarm state between our PUT and GET. Change-Id: I6ceeb9b605c50a54116ff3bfdd9673bfd5beeccf
This commit is contained in:
parent
54c977cdcd
commit
7a4bff728f
@ -218,6 +218,15 @@ tests:
|
|||||||
response_strings:
|
response_strings:
|
||||||
- "ok"
|
- "ok"
|
||||||
|
|
||||||
|
- name: get alarm state for 'gabbi-gnocchi-threshold-resource-alarm'
|
||||||
|
desc: get state for alarm
|
||||||
|
GET: $URL
|
||||||
|
request_headers:
|
||||||
|
content-type: application/json
|
||||||
|
status: 200
|
||||||
|
response_strings:
|
||||||
|
- "ok"
|
||||||
|
|
||||||
- name: search 'gabbi-gnocchi-threshold-resource-alarm' alarm exist
|
- name: search 'gabbi-gnocchi-threshold-resource-alarm' alarm exist
|
||||||
desc: search for alarm using user_id, project_id, alarm_name
|
desc: search for alarm using user_id, project_id, alarm_name
|
||||||
GET: $ENVIRON['AODH_SERVICE_URL']/v2/alarms
|
GET: $ENVIRON['AODH_SERVICE_URL']/v2/alarms
|
||||||
@ -252,15 +261,6 @@ tests:
|
|||||||
$.gnocchi_resources_threshold_rule.resource_type: "ceph_account"
|
$.gnocchi_resources_threshold_rule.resource_type: "ceph_account"
|
||||||
$.user_id: c8ecb587-d38c-426f-a58d-22b8d4a9a1d3
|
$.user_id: c8ecb587-d38c-426f-a58d-22b8d4a9a1d3
|
||||||
|
|
||||||
- name: get alarm state for 'gabbi-gnocchi-threshold-resource-alarm'
|
|
||||||
desc: get state for alarm
|
|
||||||
GET: $ENVIRON['AODH_SERVICE_URL']/v2/alarms/$RESPONSE['$.alarm_id']/state
|
|
||||||
request_headers:
|
|
||||||
content-type: application/json
|
|
||||||
status: 200
|
|
||||||
response_strings:
|
|
||||||
- "ok"
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Teardown
|
# Teardown
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user