From da896ce00e2c7742ed3f7eca9be0d806f3edb57b Mon Sep 17 00:00:00 2001 From: Bartlomiej Poniecki-Klotz Date: Fri, 22 Oct 2021 12:41:29 +0200 Subject: [PATCH] Swift proxy remove devices test added --- zaza/openstack/charm_tests/swift/tests.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/zaza/openstack/charm_tests/swift/tests.py b/zaza/openstack/charm_tests/swift/tests.py index 62fe02c..641195e 100644 --- a/zaza/openstack/charm_tests/swift/tests.py +++ b/zaza/openstack/charm_tests/swift/tests.py @@ -92,6 +92,26 @@ class SwiftProxyTests(test_utils.OpenStackBaseTest): self.assertEqual(action.status, "completed") +class SwiftProxyMultiZoneTests(test_utils.OpenStackBaseTest): + """Tests specific to swift proxy in multi zone environment.""" + + def test_900_remove_device_action(self): + """Check remove-device action runs. + + This tests destroys the environment and should be run as last. + """ + logging.info('Running remove-devices action on leader') + action = zaza.model.run_action_on_leader( + 'swift-proxy-region1', + 'remove-devices', + action_params={ + 'ring': 'account', + 'search-value': 'r1z3' + }) + logging.info(action) + self.assertEqual(action.status, "completed") + + class SwiftStorageTests(test_utils.OpenStackBaseTest): """Tests specific to swift storage."""