URL:
https://github.com/SSSD/sssd/pull/681
Title: #681: pytest: Add test cases for configuration validation
jhrozek commented:
"""
ACK:
```
py.test -v --multihost-config=/tmp/mhc.yaml -k test_sssctl_config_check
============================================================================================================
test session starts
============================================================================================================
platform linux -- Python 3.6.6, pytest-3.9.1, py-1.7.0, pluggy-0.8.0 --
/tmp/abc/bin/python
cachedir: .pytest_cache
rootdir: /home/remote/jhrozek/devel/sssd/src/tests/multihost, inifile:
plugins: multihost-3.0
collected 13 items / 10 deselected
basic/test_sssctl_config_check.py::TestSssctlConfigCheck::test_verify_typo_option_name
PASSED
[ 33%]
basic/test_sssctl_config_check.py::TestSssctlConfigCheck::test_verify_typo_domain_name
PASSED
[ 66%]
basic/test_sssctl_config_check.py::TestSssctlConfigCheck::test_misplaced_option PASSED
[100%]
=============================================================================================================
warnings summary
==============================================================================================================
/home/remote/jhrozek/devel/sssd/src/tests/multihost/basic/conftest.py:21:
RemovedInPytest4Warning: pytest_namespace is deprecated and will be removed soon
def pytest_namespace():
-- Docs:
https://docs.pytest.org/en/latest/warnings.html
===========================================================================================
3 passed, 10 deselected, 1 warnings in 82.14 seconds
============================================================================================
jhrozek@hendrix:~/devel/sssd/src/tests/multihost|review⚡
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/681#issuecomment-431324507