mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Adjust tests
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
b25805348f
commit
9f918972d2
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue