2021-11-18 01:03:37 +00:00
|
|
|
def test_epel_and_remi_not_installed_fedora(host):
|
2020-12-01 10:02:31 +00:00
|
|
|
'''
|
|
|
|
confirms installer does not attempt to install EPEL/REMI repositories
|
|
|
|
on Fedora
|
|
|
|
'''
|
2021-11-18 01:03:37 +00:00
|
|
|
package_manager_detect = host.run('''
|
2020-12-01 10:02:31 +00:00
|
|
|
source /opt/pihole/basic-install.sh
|
2021-08-03 20:48:26 +00:00
|
|
|
package_manager_detect
|
2022-07-30 15:19:40 +00:00
|
|
|
check_epel_repo_required
|
2020-12-01 10:02:31 +00:00
|
|
|
''')
|
2021-08-03 20:48:26 +00:00
|
|
|
assert package_manager_detect.stdout == ''
|
2020-12-01 10:02:31 +00:00
|
|
|
|
2021-11-18 01:03:37 +00:00
|
|
|
epel_package = host.package('epel-release')
|
2020-12-01 10:02:31 +00:00
|
|
|
assert not epel_package.is_installed
|
2021-11-18 01:03:37 +00:00
|
|
|
remi_package = host.package('remi-release')
|
2020-12-01 10:02:31 +00:00
|
|
|
assert not remi_package.is_installed
|