1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Remove test_FTL_support_files_installed as we create them using the init.d script as of now

This commit is contained in:
DL6ER 2017-02-21 11:25:18 +01:00
parent 77b3764481
commit e9b50442fa
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

View File

@ -388,19 +388,19 @@ def test_FTL_binary_installed_and_responsive_no_errors(Pihole):
expected_stdout = 'v'
assert expected_stdout in installed_binary.stdout
def test_FTL_support_files_installed(Pihole):
''' confirms FTL support files are installed '''
support_files = Pihole.run('''
source /opt/pihole/basic-install.sh
FTLdetect
stat -c '%a %n' /var/log/pihole-FTL.log
stat -c '%a %n' /run/pihole-FTL.port
stat -c '%a %n' /run/pihole-FTL.pid
ls -lac /run
''')
assert '644 /run/pihole-FTL.port' in support_files.stdout
assert '644 /run/pihole-FTL.pid' in support_files.stdout
assert '644 /var/log/pihole-FTL.log' in support_files.stdout
# def test_FTL_support_files_installed(Pihole):
# ''' confirms FTL support files are installed '''
# support_files = Pihole.run('''
# source /opt/pihole/basic-install.sh
# FTLdetect
# stat -c '%a %n' /var/log/pihole-FTL.log
# stat -c '%a %n' /run/pihole-FTL.port
# stat -c '%a %n' /run/pihole-FTL.pid
# ls -lac /run
# ''')
# assert '644 /run/pihole-FTL.port' in support_files.stdout
# assert '644 /run/pihole-FTL.pid' in support_files.stdout
# assert '644 /var/log/pihole-FTL.log' in support_files.stdout
# Helper functions
def mock_command(script, args, container):