SatelliteQE / testfm

A test suite based on pytest-ansible that exercises The Foreman maintenance tool
GNU General Public License v3.0
4 stars 11 forks source link

Update validate-yum-config check test for BZ 2048986 #293

Closed Gauravtalreja1 closed 2 years ago

Gauravtalreja1 commented 2 years ago

Descriptions: With recent change in 6.11 by BZ 2048986 removed the clean_requirements_on_remove parameter from the validate-yum-config check, this means the tests do not require this parameter to be asserted, thus it no longer requires an additional check.'

Test Results:

(.testfm) ➜  testfm git:(remove-clean-req) ✗ pytest -v --disable-warnings --ansible-host-pattern server --ansible-user root --ansible-inventory testfm/inventory tests/test_health.py -k test_positive_check_validate_yum_config
====================================================================== test session starts =======================================================================
platform darwin -- Python 3.8.10, pytest-3.6.1, py-1.11.0, pluggy-0.6.0 -- /Users/gtalreja/sat_workspace/testfm/.testfm/bin/python
cachedir: .pytest_cache
ansible: 2.12.1
rootdir: /Users/gtalreja/sat_workspace/testfm, inifile:
plugins: ansible-2.2.4
collected 30 items / 29 deselected

tests/test_health.py::test_positive_check_validate_yum_config PASSED                                                                                       [100%]

============================================================ 1 passed, 29 deselected in 29.48 seconds ============================================================

Signed-off-by: Gaurav Talreja gtalreja@redhat.com