mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 06:48:07 +00:00
Start IPTables test, get baseline for commands in the container. See
what we have to mock to start testing.
This commit is contained in:
parent
8bba3a257c
commit
e0e88fdb52
@ -105,6 +105,15 @@ def test_configureFirewall_firewalld_enabled_declined_no_errors(Pihole):
|
||||
expected_stdout = 'Not installing firewall rulesets.'
|
||||
assert expected_stdout in configureFirewall.stdout
|
||||
|
||||
def test_configureFirewall_iptables_baseline(Pihole):
|
||||
''' confirms IPTables rules are not applied when firewallD is not running '''
|
||||
configureFirewall = Pihole.run('''
|
||||
source /opt/pihole/basic-install.sh
|
||||
configureFirewall
|
||||
''')
|
||||
expected_stdout = 'Filler Text'
|
||||
assert expected_stdout in configureFirewall.stdout
|
||||
|
||||
# Helper functions
|
||||
def mock_command(script, result, retVal, container):
|
||||
''' Allows for setup of commands we don't really want to have to run for real in unit tests '''
|
||||
|
Loading…
Reference in New Issue
Block a user