mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Check binary installed and functional.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
2ffb103acb
commit
8eeb8ad779
1 changed files with 10 additions and 0 deletions
|
@ -378,6 +378,16 @@ def test_FTL_download_unknown_fails_no_errors(Pihole):
|
||||||
assert expected_stdout in download_binary.stdout
|
assert expected_stdout in download_binary.stdout
|
||||||
assert 'done' not in download_binary.stdout
|
assert 'done' not in download_binary.stdout
|
||||||
|
|
||||||
|
def test_FTL_binary_installed_and_responsive_no_errors(Pihole):
|
||||||
|
''' confirms FTL binary is copied and functional in installed location '''
|
||||||
|
installed_binary = Pihole.run('''
|
||||||
|
source /opt/pihole/basic-install.sh
|
||||||
|
FTLdetect
|
||||||
|
pihole-FTL version
|
||||||
|
''')
|
||||||
|
expected_stdout = 'v'
|
||||||
|
assert expected_stdout in installed_binary.stdout
|
||||||
|
|
||||||
# Helper functions
|
# Helper functions
|
||||||
def mock_command(script, args, container):
|
def mock_command(script, args, container):
|
||||||
''' Allows for setup of commands we don't really want to have to run for real in unit tests '''
|
''' Allows for setup of commands we don't really want to have to run for real in unit tests '''
|
||||||
|
|
Loading…
Reference in a new issue