diff --git a/lib/swift_utils.py b/lib/swift_utils.py index b0a4106..e8cc56b 100644 --- a/lib/swift_utils.py +++ b/lib/swift_utils.py @@ -641,7 +641,7 @@ def remove_from_ring(ring_path, search_value): :type search_value: str :raises: SwiftProxyCharmException """ - cmd = ['swift-ring-builder', ring_path, 'remove', search_value] + cmd = ['swift-ring-builder', ring_path, 'remove', search_value, '-y'] try: subprocess.check_call(cmd) except subprocess.CalledProcessError as e: diff --git a/tests/tests.yaml b/tests/tests.yaml index 2444b84..73d593e 100644 --- a/tests/tests.yaml +++ b/tests/tests.yaml @@ -40,6 +40,7 @@ tests: - zaza.openstack.charm_tests.swift.tests.S3APITest - swift_gr_region1: - zaza.openstack.charm_tests.swift.tests.SwiftGlobalReplicationTests + - zaza.openstack.charm_tests.swift.tests.SwiftProxyMultiZoneTests tests_options: force_deploy: diff --git a/unit_tests/test_swift_utils.py b/unit_tests/test_swift_utils.py index 7f7854b..a9223d4 100644 --- a/unit_tests/test_swift_utils.py +++ b/unit_tests/test_swift_utils.py @@ -562,7 +562,8 @@ class SwiftUtilsTestCase(unittest.TestCase): check_call.assert_called_once_with(['swift-ring-builder', '/etc/swift/account.builder', 'remove', - 'd1']) + 'd1', + '-y']) @mock.patch.object(subprocess, 'check_call') def test_set_weight_in_ring(self, check_call):