freeipa/ipatests
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
..
man Replace ntpd with chronyd in installation 2018-04-09 11:00:02 -04:00
prci_definitions ipatests: remove TestReplicaManageDel (dl0) 2018-10-05 08:59:34 -04:00
pytest_ipa Use tasks.install_master() in external_ca tests 2018-10-26 20:10:23 +02:00
test_cmdline Fix test_cli_fsencoding on Python 3.7 2018-11-07 13:11:48 +01:00
test_install ipa-client-install: Update how comments are added by ipachangeconf 2018-07-05 19:42:43 +02:00
test_integration Allow ipaapi user to access SSSD's info pipe 2018-11-07 16:28:35 +01:00
test_ipaclient Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_ipalib Py3: Replace six.moves imports 2018-10-05 12:06:19 +02:00
test_ipaplatform Refactor os-release and platform information 2018-08-30 11:37:21 +02:00
test_ipapython Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
test_ipaserver ipaserver.install.adtrust: fix CID 323644 2018-11-07 16:37:18 +01:00
test_webui WebUI tests: Make possible to use kwargs with @screenshot decorator 2018-10-31 11:55:35 +01:00
test_xmlrpc Find orphan automember rules 2018-10-10 09:56:40 +02:00
__init__.py Make an ipa-tests package 2013-06-17 19:22:50 +02:00
conftest.py Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
create_external_ca.py Py3: Replace six.text_type with str 2018-09-27 16:11:18 +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 Fix compatibility with latest pytest 2018-03-23 13:08:39 +01: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 Rename pytest_plugins to ipatests.pytest_ipa 2018-08-02 17:07:43 +02:00
test_util.py Py3: Remove subclassing from object 2018-09-27 11:49:04 +02:00
util.py Py3: Replace six.text_type with str 2018-09-27 16:11:18 +02:00