Add Cinder API test
Poll the cinder API for a list of known volumes Change-Id: Ie6a854edb276a0ee2e3066035a700af239924e57
This commit is contained in:
parent
b9bbfc92bf
commit
72e1f18036
@ -237,6 +237,20 @@ class NeutronTest(ServiceTest):
|
||||
return msg
|
||||
|
||||
|
||||
class CinderTest(ServiceTest):
|
||||
service_name = 'cinder'
|
||||
description = 'Query for a list of volumes'
|
||||
|
||||
def run(self):
|
||||
volumes = self.get_objects('block_store', 'volumes')
|
||||
|
||||
msg = 'API reached, no volumes found'
|
||||
if volumes:
|
||||
msg = 'Volume list received'
|
||||
|
||||
return msg
|
||||
|
||||
|
||||
class TestRunner(object):
|
||||
"""Run a test in a loop, with the option to gracefully exit"""
|
||||
stop_now = False
|
||||
@ -328,7 +342,8 @@ available_tests = {
|
||||
'keystone': KeystoneTest,
|
||||
'glance': GlanceTest,
|
||||
'nova': NovaTest,
|
||||
'neutron': NeutronTest
|
||||
'neutron': NeutronTest,
|
||||
'cinder': CinderTest,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user