freeipa/ipatests/pytest_plugins
Felipe Barreto 16da7c612e
Fix log capture when running pytests_multihosts commands
The pytests_plugins/integration/config.py::Config class
provides the get_logger method in order to customize the
default log of the plugin.

Previously, before commit 07229c8ff6,
the code was using ipa_log_manager, a custom log solution. After
moving to use the default python way, the log is not configured anymore.

This PR address it changing the level to DEBUG in order to capture
the output of pytest_multihosts commands.

As an example, when running `ipa-server-install`, you will be able
to see an output like this:
```
[[...].Host.master.cmd2] Checking DNS domain ipa.test, please wait ...
[[...].Host.master.cmd2]
[[...].Host.master.cmd2] The log file for this installation can be found in /var/log/ipaserver-install.log
[[...].Host.master.cmd2] ==============================================================================
[[...].Host.master.cmd2] This program will set up the FreeIPA Server.
[[...].Host.master.cmd2]
[[...].Host.master.cmd2] This includes:
[[...].Host.master.cmd2]   * Configure a stand-alone CA (dogtag) for certificate management
[[...].Host.master.cmd2]   * Configure the Network Time Daemon (ntpd)
[[...].Host.master.cmd2]   * Create and configure an instance of Directory Server
[[...].Host.master.cmd2]   * Create and configure a Kerberos Key Distribution Center (KDC)
```

Fixes: https://pagure.io/freeipa/issue/7186
Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
2017-11-06 16:22:18 +01:00
..
integration Fix log capture when running pytests_multihosts commands 2017-11-06 16:22:18 +01:00
__init__.py Declarative tests: Switch to pytest 2014-11-21 12:14:44 +01:00
additional_config.py Pretty-print structures in assert_deepequal 2016-09-30 09:55:58 +02:00
beakerlib.py logging: do not log into the root logger 2017-07-14 15:55:59 +02:00
declarative.py Remove unused variables in tests 2016-09-27 13:35:58 +02:00
nose_compat.py logging: make sure logging level is set to proper value 2017-07-26 15:57:56 +02:00