1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units/parsing
Abhijit Menon-Sen 7479ab47e0 Be stricter about parsing hostname labels
Labels must start with an alphanumeric character, may contain
alphanumeric characters or hyphens, but must not end with a hyphen.
We enforce those rules, but allow underscores wherever hyphens are
accepted, and allow alphanumeric ranges anywhere.

We relax the definition of "alphanumeric" to include Unicode characters
even though such inventory hostnames cannot be used in practice unless
an ansible_ssh_host is set for each of them.

We still don't enforce length restrictions—the fact that we have to
accept ranges makes it more complex, and it doesn't seem especially
worthwhile.
2015-09-11 21:47:19 +05:30
..
vault Update Vault tests to make sure AES decryption works 2015-08-27 18:36:05 +05:30
yaml assertRaises should be given an exception type. Fixes 11441 2015-06-30 11:02:33 -05:00
__init__.py Making the switch to v2 2015-05-03 21:47:26 -05:00
test_addresses.py Be stricter about parsing hostname labels 2015-09-11 21:47:19 +05:30
test_data_loader.py Compatibility with six-1.3.0 2015-09-08 09:46:12 -07:00
test_mod_args.py changed mod_args test to match connection 2015-08-19 00:34:37 -04:00
test_splitter.py Making the switch to v2 2015-05-03 21:47:26 -05:00
test_unquote.py Test unquote works as expected and fix two bugs: 2015-07-06 13:16:42 -07:00