improved peer svc stop request logic

This commit is contained in:
Edward Hope-Morley
2014-12-04 20:00:00 +00:00
parent f8c9570242
commit dca4fb9c98
3 changed files with 22 additions and 10 deletions

View File

@@ -89,10 +89,10 @@ class SwiftUtilsTestCase(unittest.TestCase):
def test_cluster_rpc_stop_proxy_ack(self, mock_uuid):
mock_uuid.uuid4.return_value = 'token2'
rpc = swift_utils.SwiftProxyClusterRPC()
rq = rpc.stop_proxy_ack('token1')
rq = rpc.stop_proxy_ack(echo_token='token1', echo_peers_only='1')
self.assertEqual({'trigger': 'token2',
'builder-broker': None,
'peers-only': None,
'peers-only': '1',
'stop-proxy-service': None,
'stop-proxy-service-ack': 'token1'}, rq)