Merge pull request #106 from gnuoy/add-zaza-storage-tests
Refactor swift tests and add storage
This commit is contained in:
@@ -62,6 +62,10 @@ class SwiftImageCreateTest(test_utils.OpenStackBaseTest):
|
||||
self.assertEqual(image['size'], total_bytes)
|
||||
openstack_utils.delete_image(self.glance_client, image['id'])
|
||||
|
||||
|
||||
class SwiftProxyTests(test_utils.OpenStackBaseTest):
|
||||
"""Tests specific to swift proxy."""
|
||||
|
||||
def test_901_pause_resume(self):
|
||||
"""Run pause and resume tests.
|
||||
|
||||
@@ -80,3 +84,29 @@ class SwiftImageCreateTest(test_utils.OpenStackBaseTest):
|
||||
'diskusage',
|
||||
action_params={})
|
||||
self.assertEqual(action.status, "completed")
|
||||
|
||||
|
||||
class SwiftStorageTests(test_utils.OpenStackBaseTest):
|
||||
"""Tests specific to swift storage."""
|
||||
|
||||
def test_901_pause_resume(self):
|
||||
"""Run pause and resume tests.
|
||||
|
||||
Pause service and check services are stopped then resume and check
|
||||
they are started
|
||||
"""
|
||||
services = ['swift-account-server',
|
||||
'swift-account-auditor',
|
||||
'swift-account-reaper',
|
||||
'swift-account-replicator',
|
||||
'swift-container-server',
|
||||
'swift-container-auditor',
|
||||
'swift-container-replicator',
|
||||
'swift-container-updater',
|
||||
'swift-object-server',
|
||||
'swift-object-auditor',
|
||||
'swift-object-replicator',
|
||||
'swift-object-updater',
|
||||
'swift-container-sync']
|
||||
with self.pause_resume(services):
|
||||
logging.info("Testing pause resume")
|
||||
|
||||
Reference in New Issue
Block a user