From 7d770465d5b23d3d2abf9f2077e116fbbf49135f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 28 Nov 2023 13:31:50 +0100 Subject: [PATCH] test: add ipv6 example without port --- pkgs/clan-cli/tests/test_ssh_remote.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/clan-cli/tests/test_ssh_remote.py b/pkgs/clan-cli/tests/test_ssh_remote.py index ec727f58a..df7017711 100644 --- a/pkgs/clan-cli/tests/test_ssh_remote.py +++ b/pkgs/clan-cli/tests/test_ssh_remote.py @@ -7,6 +7,9 @@ def test_parse_ipv6() -> None: host = parse_deployment_address("foo", "[fe80::1%eth0]:2222") assert host.host == "fe80::1%eth0" assert host.port == 2222 + host = parse_deployment_address("foo", "[fe80::1%eth0]") + assert host.host == "fe80::1%eth0" + assert host.port is None def test_run(host_group: HostGroup) -> None: