freeipa/ipatests/test_ipaserver
Alexander Bokovoy 82af034023 ipaserver.install.adtrust: fix CID 323644
Fix Coverity finding CID 323644: logically dead code path

The code to determine whether NetBIOS name was already set or need to be
set after deriving it from a domain or asking a user for an interactive
input, was refactored at some point to avoid retrieving the whole LDAP
entry. Instead, it was provided with the actual NetBIOS name retrieved.

As result, a part of the code got neglected and was never executed.

Fix this code and provide a test that tries to test predefined,
interactively provided and automatically derived NetBIOS name depending
on how the installer is being run.

We mock up the actual execution so that no access to LDAP or Samba is
needed.

Fixes: https://pagure.io/freeipa/issue/7753
Reviewed-By: Christian Heimes <cheimes@redhat.com>
2018-11-07 16:37:18 +01:00
..
data ipa-otptoken-import: Make PBKDF2 refer to the pkcs5 namespace 2017-09-01 10:50:34 +02:00
test_install Py3: Replace six.moves imports 2018-10-05 12:06:19 +02:00
__init__.py pytest 3.x compatibility 2017-03-27 18:03:14 +02:00
httptest.py Py3: Replace six.moves imports 2018-10-05 12:06:19 +02:00
test_adtrust_mockup.py ipaserver.install.adtrust: fix CID 323644 2018-11-07 16:37:18 +01:00
test_changepw.py Unified ldap_initialize() function 2018-02-15 18:32:17 +01:00
test_dnssec.py ipapython: move dnssec, p11helper and secrets to ipaserver 2016-11-29 14:50:51 +01:00
test_i18n_messages.py Add tests for "i18n_messages" end point 2018-07-17 15:32:28 -04:00
test_ipap11helper.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_kadmin.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_ldap.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_migratepw.py Add basic tests for "migration" end point 2018-08-27 17:10:32 +02:00
test_otptoken_import.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_rpcserver.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_secrets.py Remove os.chdir() from test_ipap11helper 2018-04-10 17:35:17 +02:00
test_serverroles.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_topology_plugin.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_version_comparison.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00