From 8eeb8ad779169608c520d73708e2626f5fc0de8a Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Mon, 20 Feb 2017 17:15:04 -0800 Subject: [PATCH] Check binary installed and functional. Signed-off-by: Dan Schaper --- test/test_automated_install.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_automated_install.py b/test/test_automated_install.py index 40e0000b..250accf7 100644 --- a/test/test_automated_install.py +++ b/test/test_automated_install.py @@ -378,6 +378,16 @@ def test_FTL_download_unknown_fails_no_errors(Pihole): assert expected_stdout 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 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 '''