Skip to content

Commit e6cc3c1

Browse files
committed
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 <[email protected]>
1 parent c7f1b5f commit e6cc3c1

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/integration/api_swarm_test.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -126,24 +126,6 @@ def test_update_swarm(self):
126126
swarm_info_2['JoinTokens']['Worker']
127127
)
128128

129-
@requires_api_version('1.24')
130-
def test_update_swarm_name(self):
131-
assert self.init_swarm()
132-
swarm_info_1 = self.client.inspect_swarm()
133-
spec = self.client.create_swarm_spec(
134-
node_cert_expiry=7776000000000000, name='reimuhakurei'
135-
)
136-
assert self.client.update_swarm(
137-
version=swarm_info_1['Version']['Index'], swarm_spec=spec
138-
)
139-
swarm_info_2 = self.client.inspect_swarm()
140-
141-
assert (
142-
swarm_info_1['Version']['Index'] !=
143-
swarm_info_2['Version']['Index']
144-
)
145-
assert swarm_info_2['Spec']['Name'] == 'reimuhakurei'
146-
147129
@requires_api_version('1.24')
148130
def test_list_nodes(self):
149131
assert self.init_swarm()

0 commit comments

Comments
 (0)