gabbi: use history
gabbi supports grabbing historical queries. leverage that so we don't need to make redundant requests to grab same data. Change-Id: Ic9f97f47a1cc9af91048dc98e4b6b1cc23933726
This commit is contained in:
parent
0a2413dfab
commit
687205eceb
|
@ -91,7 +91,7 @@ tests:
|
||||||
$: alarm
|
$: alarm
|
||||||
|
|
||||||
# Get a list of alarms so we can extract an id for the next test
|
# Get a list of alarms so we can extract an id for the next test
|
||||||
- name: list alarms for data
|
- name: list alarms
|
||||||
desc: Lists alarms, only one
|
desc: Lists alarms, only one
|
||||||
GET: /v2/alarms
|
GET: /v2/alarms
|
||||||
response_json_paths:
|
response_json_paths:
|
||||||
|
@ -105,15 +105,9 @@ tests:
|
||||||
response_json_paths:
|
response_json_paths:
|
||||||
$: alarm
|
$: alarm
|
||||||
|
|
||||||
- name: list alarms one
|
|
||||||
desc: Lists alarms, only one
|
|
||||||
GET: /v2/alarms
|
|
||||||
response_json_paths:
|
|
||||||
$[0].name: added_alarm_defaults
|
|
||||||
|
|
||||||
- name: deleteAlarm
|
- name: deleteAlarm
|
||||||
desc: Deletes a specified alarm.
|
desc: Deletes a specified alarm.
|
||||||
DELETE: /v2/alarms/$RESPONSE['$[0].alarm_id']
|
DELETE: /v2/alarms/$HISTORY['list alarms'].$RESPONSE['$[0].alarm_id']
|
||||||
status: 204
|
status: 204
|
||||||
|
|
||||||
- name: list alarms none end
|
- name: list alarms none end
|
||||||
|
|
|
@ -93,7 +93,7 @@ tests:
|
||||||
$: alarm
|
$: alarm
|
||||||
|
|
||||||
# Get a list of alarms so we can extract an id for the next test
|
# Get a list of alarms so we can extract an id for the next test
|
||||||
- name: list alarms for data
|
- name: list alarms
|
||||||
desc: Lists alarms, only one
|
desc: Lists alarms, only one
|
||||||
GET: /v2/alarms
|
GET: /v2/alarms
|
||||||
response_json_paths:
|
response_json_paths:
|
||||||
|
@ -107,15 +107,9 @@ tests:
|
||||||
response_json_paths:
|
response_json_paths:
|
||||||
$: alarm
|
$: alarm
|
||||||
|
|
||||||
- name: list alarms one
|
|
||||||
desc: Lists alarms, only one
|
|
||||||
GET: /v2/alarms
|
|
||||||
response_json_paths:
|
|
||||||
$[0].name: added_alarm_defaults
|
|
||||||
|
|
||||||
- name: deleteAlarm
|
- name: deleteAlarm
|
||||||
desc: Deletes a specified alarm.
|
desc: Deletes a specified alarm.
|
||||||
DELETE: /v2/alarms/$RESPONSE['$[0].alarm_id']
|
DELETE: /v2/alarms/$HISTORY['list alarms'].$RESPONSE['$[0].alarm_id']
|
||||||
status: 204
|
status: 204
|
||||||
|
|
||||||
- name: list alarms none end
|
- name: list alarms none end
|
||||||
|
|
|
@ -63,7 +63,7 @@ test =
|
||||||
tempest>=11.0.0 # Apache-2.0
|
tempest>=11.0.0 # Apache-2.0
|
||||||
testrepository>=0.0.18
|
testrepository>=0.0.18
|
||||||
testresources>=0.2.4 # Apache-2.0/BSD
|
testresources>=0.2.4 # Apache-2.0/BSD
|
||||||
gabbi>=1.7.0 # Apache-2.0
|
gabbi>=1.30.0 # Apache-2.0
|
||||||
# Provides subunit-trace
|
# Provides subunit-trace
|
||||||
os-testr
|
os-testr
|
||||||
python-subunit>=0.0.18
|
python-subunit>=0.0.18
|
||||||
|
|
Loading…
Reference in New Issue