mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
No firewall enabled test.
This commit is contained in:
parent
e0e88fdb52
commit
679b098aa7
1 changed files with 3 additions and 3 deletions
|
@ -105,13 +105,13 @@ def test_configureFirewall_firewalld_enabled_declined_no_errors(Pihole):
|
||||||
expected_stdout = 'Not installing firewall rulesets.'
|
expected_stdout = 'Not installing firewall rulesets.'
|
||||||
assert expected_stdout in configureFirewall.stdout
|
assert expected_stdout in configureFirewall.stdout
|
||||||
|
|
||||||
def test_configureFirewall_iptables_baseline(Pihole):
|
def test_configureFirewall_no_firewall(Pihole):
|
||||||
''' confirms IPTables rules are not applied when firewallD is not running '''
|
''' confirms firewall skipped no daemon is running '''
|
||||||
configureFirewall = Pihole.run('''
|
configureFirewall = Pihole.run('''
|
||||||
source /opt/pihole/basic-install.sh
|
source /opt/pihole/basic-install.sh
|
||||||
configureFirewall
|
configureFirewall
|
||||||
''')
|
''')
|
||||||
expected_stdout = 'Filler Text'
|
expected_stdout = 'No active firewall detected'
|
||||||
assert expected_stdout in configureFirewall.stdout
|
assert expected_stdout in configureFirewall.stdout
|
||||||
|
|
||||||
# Helper functions
|
# Helper functions
|
||||||
|
|
Loading…
Reference in a new issue