oslo.config/oslo_config/tests
Hervé Beraud f37bcc7793 Add a new type HostDomain.
HostDomain is like HostAddress with the support of
_ character - RFC1033

openstack services are failing to start when a hostname with underscore
_ is provided.

Example:

```
overcloud-novacompute_edge1-0.internalapi.localdomain
overcloud-novacompute_edge1-0.internalapi
```

Nova use `HostAddressOpt` to define `live_migration_inbound_addr`,
and if a hostname with underscore is present in the config file
then the service fail to start.

Example:

```
/etc/nova/nova.conf
live_migration_inbound_addr =
overcloud-novacompute_edge1-0.internalapi.localdomain
```

FQDN is a domain name that specifies its exact
location in the tree hierarchy of the Domain Name System (DNS).

Underscore are allowed by RFC1033 [1][2][3]. Indeed, while a hostname may not
contain other characters, such as the underscore character (_), other
DNS names may contain the underscore.[1][2].
Systems such as DomainKeys and service records use the underscore.

These changes allow us to use underscore with the `HostDomain`.

[1] https://www.ietf.org/rfc/rfc1912.txt
[2] https://www.ietf.org/rfc/rfc1033.txt
[3] http://domainkeys.sourceforge.net/underscore.html

Co-authored-by: Daniel Bengtsson <dbengt@redhat.com>
Change-Id: I0a0670207f96a987996d329e5efa9a5eb2ce000c
Closes-Bug: #1892044
(cherry picked from commit 6480356928)
2020-10-23 14:24:47 +02:00
..
testmods Remove oslo namespace package 2015-07-13 22:23:36 +00:00
__init__.py Move files out of the namespace package 2014-12-12 16:13:29 -05:00
test_cfg.py Use unittest.mock instead of third party mock 2020-03-31 14:40:09 -05:00
test_fixture.conf Allow loading custom config files into Config Fixture. 2015-04-10 13:53:37 -07:00
test_fixture.py Clean up enforce_type related test method's name 2017-11-29 13:18:39 +08:00
test_generator.py Fix unit tests to work with stevedore > 2.0.1 2020-07-23 11:06:29 +05:30
test_get_location.py Fix get_location for opts in groups 2018-12-06 16:29:23 +00:00
test_iniparser.py Fix parameters of assertEqual are misplaced 2016-07-19 11:52:55 +08:00
test_sources.py Resolve UnboundLocalError 2020-05-01 16:45:04 +01:00
test_sphinxconfiggen.py Use unittest.mock instead of third party mock 2020-03-31 14:40:09 -05:00
test_sphinxext.py Use unittest.mock instead of third party mock 2020-03-31 14:40:09 -05:00
test_types.py Add a new type HostDomain. 2020-10-23 14:24:47 +02:00
test_validator.py Use unittest.mock instead of third party mock 2020-03-31 14:40:09 -05:00