Merge "Add API query test for Swift"
This commit is contained in:
commit
3eaef7b5c8
@ -218,6 +218,20 @@ class CinderTest(ServiceTest):
|
|||||||
return msg
|
return msg
|
||||||
|
|
||||||
|
|
||||||
|
class SwiftTest(ServiceTest):
|
||||||
|
service_name = 'swift'
|
||||||
|
description = 'Query for a list of containers'
|
||||||
|
|
||||||
|
def run(self):
|
||||||
|
containers = self.get_objects('object_store', 'containers')
|
||||||
|
|
||||||
|
msg = 'API reached, no containers found'
|
||||||
|
if containers:
|
||||||
|
msg = 'Container list received'
|
||||||
|
|
||||||
|
return msg
|
||||||
|
|
||||||
|
|
||||||
class TestRunner(object):
|
class TestRunner(object):
|
||||||
"""Run a test in a loop, with the option to gracefully exit"""
|
"""Run a test in a loop, with the option to gracefully exit"""
|
||||||
stop_now = False
|
stop_now = False
|
||||||
@ -311,6 +325,7 @@ available_tests = {
|
|||||||
'nova': NovaTest,
|
'nova': NovaTest,
|
||||||
'neutron': NeutronTest,
|
'neutron': NeutronTest,
|
||||||
'cinder': CinderTest,
|
'cinder': CinderTest,
|
||||||
|
'swift': SwiftTest,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user