(self)
| 223 | |
| 224 | @requires_api_version('1.24') |
| 225 | def test_remove_main_node(self): |
| 226 | assert self.init_swarm() |
| 227 | nodes_list = self.client.nodes() |
| 228 | node_id = nodes_list[0]['ID'] |
| 229 | with pytest.raises(docker.errors.NotFound): |
| 230 | self.client.remove_node('foobar01') |
| 231 | with pytest.raises(docker.errors.APIError) as e: |
| 232 | self.client.remove_node(node_id) |
| 233 | |
| 234 | assert e.value.response.status_code >= 400 |
| 235 | |
| 236 | with pytest.raises(docker.errors.APIError) as e: |
| 237 | self.client.remove_node(node_id, True) |
| 238 | |
| 239 | assert e.value.response.status_code >= 400 |
| 240 | |
| 241 | @requires_api_version('1.25') |
| 242 | def test_rotate_manager_unlock_key(self): |
nothing calls this directly
no test coverage detected