mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-21 05:33:45 +00:00
0df38cd64e
Signed-off-by: Christian König <ckoenig@posteo.de>
27 lines
751 B
Python
27 lines
751 B
Python
import pytest
|
|
from .conftest import (
|
|
tick_box,
|
|
info_box,
|
|
cross_box,
|
|
mock_command,
|
|
)
|
|
|
|
|
|
def test_enable_epel_repository_centos(host):
|
|
"""
|
|
confirms the EPEL package repository is enabled when installed on CentOS
|
|
"""
|
|
package_manager_detect = host.run(
|
|
"""
|
|
source /opt/pihole/basic-install.sh
|
|
package_manager_detect
|
|
"""
|
|
)
|
|
expected_stdout = info_box + (
|
|
" Enabling EPEL package repository " "(https://fedoraproject.org/wiki/EPEL)"
|
|
)
|
|
assert expected_stdout in package_manager_detect.stdout
|
|
expected_stdout = tick_box + " Installed"
|
|
assert expected_stdout in package_manager_detect.stdout
|
|
epel_package = host.package("epel-release")
|
|
assert epel_package.is_installed
|