Commit 6f5e5817 authored by gord chung's avatar gord chung

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: If89f864e995bcba41dc45e57f5dcc73f30cc4120
parent d7777b9b
......@@ -50,7 +50,7 @@ tests:
$.stack.stack_status: "CREATE_COMPLETE"
- name: list servers
- name: list servers grow
desc: Wait the autoscaling stack grow to two servers
url: $ENVIRON['NOVA_SERVICE_URL']/servers/detail
method: GET
......@@ -75,16 +75,6 @@ tests:
- '"id": "$RESPONSE["$.servers[0].id"]"'
- '"id": "$RESPONSE["$.servers[1].id"]"'
- name: list servers again
desc: grab servers to check for events
url: $ENVIRON['NOVA_SERVICE_URL']/servers/detail
method: GET
count: 5
delay: 1
$.servers.`len`: 2
- name: check event
desc: Check panko for new instance.create.end event
url: $ENVIRON['PANKO_SERVICE_URL']/v2/events
......@@ -100,14 +90,14 @@ tests:
- field: resource_id
op: eq
type: string
value: $RESPONSE['$.servers[0].id']
value: $HISTORY['list servers grow'].$RESPONSE['$.servers[0].id']
count: 30
delay: 1
$.`len`: 1
$[0].event_type: compute.instance.create.end
$[0].traits[?('resource_id')].value: $RESPONSE['$.servers[0].id']
$[0].traits[?('resource_id')].value: $HISTORY['list servers grow'].$RESPONSE['$.servers[0].id']
- name: check alarm
desc: Check the aodh alarm and its state
......@@ -160,7 +150,7 @@ tests:
$.stack.stack_status: "UPDATE_COMPLETE"
- name: list servers
- name: list servers shrink
desc: Wait the autoscaling stack shrink to one server
url: $ENVIRON['NOVA_SERVICE_URL']/servers/detail
method: GET
......@@ -23,7 +23,7 @@ sphinxcontrib-pecanwsme>=0.8 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
gabbi>=1.11.0 # Apache-2.0
gabbi>=1.30.0 # Apache-2.0
requests-aws>=0.1.4 # BSD License (3 clause)
os-testr>=0.4.1 # Apache-2.0
tempest>=11.0.0 # Apache-2.0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment