From e6cc3c15400a386efff2c7672758d424637b7c14 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 11 Nov 2017 03:07:27 +0100 Subject: [PATCH] Remove test_update_swarm_name Docker currently only supports the "default" cluster in Swarm-mode, and an upcoming SwarmKit release will produce an error if the name of the cluster is updated, causing the test to fail. Given that renaming the cluster is not supported, this patch removes the test Signed-off-by: Sebastiaan van Stijn --- tests/integration/api_swarm_test.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/integration/api_swarm_test.py b/tests/integration/api_swarm_test.py index 34b0879ce4..4b00dd73e2 100644 --- a/tests/integration/api_swarm_test.py +++ b/tests/integration/api_swarm_test.py @@ -126,24 +126,6 @@ def test_update_swarm(self): swarm_info_2['JoinTokens']['Worker'] ) - @requires_api_version('1.24') - def test_update_swarm_name(self): - assert self.init_swarm() - swarm_info_1 = self.client.inspect_swarm() - spec = self.client.create_swarm_spec( - node_cert_expiry=7776000000000000, name='reimuhakurei' - ) - assert self.client.update_swarm( - version=swarm_info_1['Version']['Index'], swarm_spec=spec - ) - swarm_info_2 = self.client.inspect_swarm() - - assert ( - swarm_info_1['Version']['Index'] != - swarm_info_2['Version']['Index'] - ) - assert swarm_info_2['Spec']['Name'] == 'reimuhakurei' - @requires_api_version('1.24') def test_list_nodes(self): assert self.init_swarm()