freeipa/ipatests
Christian Heimes e28ec76898 Unify access to FQDN
FreeIPA's Python and C code used different approaches to get the FQDN of
the host. Some places assumed that gethostname() returns a FQDN. Other
code paths used glibc's resolver to resolve the current node name to a
FQDN.

Python code now uses the ipalib.constants.FQDN where a fully qualified
domain name is expected. The variable is initialized only once and avoids
potential DNS lookups.

C code uses a new helper function ipa_gethostfqdn() in util package. The
function implements similar logic as gethostfqdn() except it uses more
modern getaddrinfo(). The result is cached as well.

Fixes: https://pagure.io/freeipa/issue/8501
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Fraser Tweedale <ftweedal@redhat.com>
2020-10-26 17:11:19 +11:00
..
azure Make git a build requirement 2020-09-23 14:49:56 +02:00
man Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
prci_definitions ipatests: Add test_pwpolicy to nightly runs 2020-10-23 09:32:52 -04:00
pytest_ipa Add a raiseonerr option to ldappasswd_user_change 2020-10-23 09:32:52 -04:00
test_cmdline Make tab completion in console more useful 2020-07-07 12:36:10 +02:00
test_install Unify access to FQDN 2020-10-26 17:11:19 +11:00
test_integration ipatests: add test for password policies 2020-10-23 09:32:52 -04:00
test_ipaclient Fix Pytest4.x warning about message 2019-06-19 19:20:14 +10:00
test_ipalib ipatests: Add option/arg parsing tests for the cli 2020-08-25 10:31:19 -04:00
test_ipaplatform Add missing fedora_container platform members 2020-09-29 12:06:24 +02:00
test_ipapython Add helper for poll/sleep loops with timeout 2020-09-30 09:52:08 +02:00
test_ipaserver ipatests: Add tests for checking available memory 2020-09-14 09:17:33 +03:00
test_ipatests_plugins ipatests: Don't turn Pytest IPA deprecation warnings into errors 2020-07-29 15:10:00 -04:00
test_webui WebUI tests: Add test case to cover user ID override feature 2020-07-30 14:24:26 +03:00
test_xmlrpc Add new pwpolicy objectclass to test_xmprpc/objectclasses.py 2020-10-23 09:32:52 -04:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py ipatests: Don't turn Pytest IPA deprecation warnings into errors 2020-07-29 15:10:00 -04:00
create_external_ca.py Test external CA with DNS name constraints 2019-08-06 12:39:46 +02:00
data.py Fix more bytes/unicode issues 2015-10-22 18:34:46 +02:00
i18n.py Sprinkle raw strings across the code base 2018-09-27 10:23:03 +02:00
ipa-run-tests ipatests: Specify shell implementation 2020-04-21 13:24:50 +02:00
ipa-test-config Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
ipa-test-task Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
Makefile.am Build: fix distribution of static files for web UI 2016-11-09 13:08:32 +01:00
setup.cfg Port all setup.py to setuptools 2016-10-20 18:43:37 +02:00
setup.py Simplify ipa-run-tests script 2019-07-16 13:23:21 +03:00
test_util.py Fix E712 comparison to True / False 2020-05-05 10:42:46 +02:00
util.py ipatests: Remove no longer needed 'skip' compatibility 2020-04-21 13:24:50 +02:00