Merge "gabbi: use history"
This commit is contained in:
commit
09aa7ef3c9
@ -50,7 +50,7 @@ tests:
|
|||||||
response_json_paths:
|
response_json_paths:
|
||||||
$.stack.stack_status: "CREATE_COMPLETE"
|
$.stack.stack_status: "CREATE_COMPLETE"
|
||||||
|
|
||||||
- name: list servers
|
- name: list servers grow
|
||||||
desc: Wait the autoscaling stack grow to two servers
|
desc: Wait the autoscaling stack grow to two servers
|
||||||
url: $ENVIRON['NOVA_SERVICE_URL']/servers/detail
|
url: $ENVIRON['NOVA_SERVICE_URL']/servers/detail
|
||||||
method: GET
|
method: GET
|
||||||
@ -75,16 +75,6 @@ tests:
|
|||||||
- '"id": "$RESPONSE["$.servers[0].id"]"'
|
- '"id": "$RESPONSE["$.servers[0].id"]"'
|
||||||
- '"id": "$RESPONSE["$.servers[1].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
|
|
||||||
poll:
|
|
||||||
count: 5
|
|
||||||
delay: 1
|
|
||||||
response_json_paths:
|
|
||||||
$.servers.`len`: 2
|
|
||||||
|
|
||||||
- name: check event
|
- name: check event
|
||||||
desc: Check panko for new instance.create.end event
|
desc: Check panko for new instance.create.end event
|
||||||
url: $ENVIRON['PANKO_SERVICE_URL']/v2/events
|
url: $ENVIRON['PANKO_SERVICE_URL']/v2/events
|
||||||
@ -100,14 +90,14 @@ tests:
|
|||||||
- field: resource_id
|
- field: resource_id
|
||||||
op: eq
|
op: eq
|
||||||
type: string
|
type: string
|
||||||
value: $RESPONSE['$.servers[0].id']
|
value: $HISTORY['list servers grow'].$RESPONSE['$.servers[0].id']
|
||||||
poll:
|
poll:
|
||||||
count: 30
|
count: 30
|
||||||
delay: 1
|
delay: 1
|
||||||
response_json_paths:
|
response_json_paths:
|
||||||
$.`len`: 1
|
$.`len`: 1
|
||||||
$[0].event_type: compute.instance.create.end
|
$[0].event_type: compute.instance.create.end
|
||||||
$[0].traits[?(@.name='resource_id')].value: $RESPONSE['$.servers[0].id']
|
$[0].traits[?(@.name='resource_id')].value: $HISTORY['list servers grow'].$RESPONSE['$.servers[0].id']
|
||||||
|
|
||||||
- name: check alarm
|
- name: check alarm
|
||||||
desc: Check the aodh alarm and its state
|
desc: Check the aodh alarm and its state
|
||||||
@ -160,7 +150,7 @@ tests:
|
|||||||
response_json_paths:
|
response_json_paths:
|
||||||
$.stack.stack_status: "UPDATE_COMPLETE"
|
$.stack.stack_status: "UPDATE_COMPLETE"
|
||||||
|
|
||||||
- name: list servers
|
- name: list servers shrink
|
||||||
desc: Wait the autoscaling stack shrink to one server
|
desc: Wait the autoscaling stack shrink to one server
|
||||||
url: $ENVIRON['NOVA_SERVICE_URL']/servers/detail
|
url: $ENVIRON['NOVA_SERVICE_URL']/servers/detail
|
||||||
method: GET
|
method: GET
|
||||||
|
@ -23,7 +23,7 @@ sphinxcontrib-pecanwsme>=0.8 # Apache-2.0
|
|||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||||
testscenarios>=0.4 # Apache-2.0/BSD
|
testscenarios>=0.4 # Apache-2.0/BSD
|
||||||
testtools>=1.4.0 # MIT
|
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)
|
requests-aws>=0.1.4 # BSD License (3 clause)
|
||||||
os-testr>=0.4.1 # Apache-2.0
|
os-testr>=0.4.1 # Apache-2.0
|
||||||
tempest>=14.0.0 # Apache-2.0
|
tempest>=14.0.0 # Apache-2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user