mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 04:30:55 +00:00
Adjust tests
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
b25805348f
commit
9f918972d2
@ -30,7 +30,7 @@ def test_selinux_enforcing_exit(host):
|
|||||||
source /opt/pihole/basic-install.sh
|
source /opt/pihole/basic-install.sh
|
||||||
checkSelinux
|
checkSelinux
|
||||||
''')
|
''')
|
||||||
expected_stdout = cross_box + ' Current SELinux: Enforcing'
|
expected_stdout = cross_box + ' Current SELinux: enforcing'
|
||||||
assert expected_stdout in check_selinux.stdout
|
assert expected_stdout in check_selinux.stdout
|
||||||
expected_stdout = 'SELinux Enforcing detected, exiting installer'
|
expected_stdout = 'SELinux Enforcing detected, exiting installer'
|
||||||
assert expected_stdout in check_selinux.stdout
|
assert expected_stdout in check_selinux.stdout
|
||||||
@ -46,7 +46,7 @@ def test_selinux_permissive(host):
|
|||||||
source /opt/pihole/basic-install.sh
|
source /opt/pihole/basic-install.sh
|
||||||
checkSelinux
|
checkSelinux
|
||||||
''')
|
''')
|
||||||
expected_stdout = tick_box + ' Current SELinux: Permissive'
|
expected_stdout = tick_box + ' Current SELinux: permissive'
|
||||||
assert expected_stdout in check_selinux.stdout
|
assert expected_stdout in check_selinux.stdout
|
||||||
assert check_selinux.rc == 0
|
assert check_selinux.rc == 0
|
||||||
|
|
||||||
@ -60,6 +60,6 @@ def test_selinux_disabled(host):
|
|||||||
source /opt/pihole/basic-install.sh
|
source /opt/pihole/basic-install.sh
|
||||||
checkSelinux
|
checkSelinux
|
||||||
''')
|
''')
|
||||||
expected_stdout = tick_box + ' Current SELinux: Disabled'
|
expected_stdout = tick_box + ' Current SELinux: disabled'
|
||||||
assert expected_stdout in check_selinux.stdout
|
assert expected_stdout in check_selinux.stdout
|
||||||
assert check_selinux.rc == 0
|
assert check_selinux.rc == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user