Move code from check_epel_repo_required into the rpm branch of the if check on package_manager_detect(), adjust tests to accommodate

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2022-07-30 19:18:33 +01:00
parent 0e8c1ec023
commit 9028898ba7
No known key found for this signature in database
GPG key ID: 872950F3ECF2B173
4 changed files with 18 additions and 32 deletions

View file

@ -14,7 +14,6 @@ def test_enable_epel_repository_centos(host):
package_manager_detect = host.run('''
source /opt/pihole/basic-install.sh
package_manager_detect
check_epel_repo_required
''')
expected_stdout = info_box + (' Enabling EPEL package repository '
'(https://fedoraproject.org/wiki/EPEL)')