mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
Make module_utils.known_hosts.get_fqdn work on ipv6
This commit is contained in:
parent
e595c50197
commit
a7ac98262d
2 changed files with 17 additions and 7 deletions
|
@ -33,6 +33,14 @@ class TestAnsibleModuleKnownHosts(unittest.TestCase):
|
|||
{'is_ssh_url': True, 'get_fqdn': 'five.example.org'},
|
||||
'ssh://six.example.org:21/example.org':
|
||||
{'is_ssh_url': True, 'get_fqdn': 'six.example.org'},
|
||||
'ssh://[2001:DB8::abcd:abcd]/example.git':
|
||||
{'is_ssh_url': True, 'get_fqdn': '[2001:DB8::abcd:abcd]'},
|
||||
'ssh://[2001:DB8::abcd:abcd]:22/example.git':
|
||||
{'is_ssh_url': True, 'get_fqdn': '[2001:DB8::abcd:abcd]'},
|
||||
'username@[2001:DB8::abcd:abcd]/example.git':
|
||||
{'is_ssh_url': True, 'get_fqdn': '[2001:DB8::abcd:abcd]'},
|
||||
'username@[2001:DB8::abcd:abcd]:22/example.git':
|
||||
{'is_ssh_url': True, 'get_fqdn': '[2001:DB8::abcd:abcd]'},
|
||||
}
|
||||
|
||||
def test_is_ssh_url(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue