mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-20 14:20:13 +00:00
This reverts commit cf6a1ac9ad
.
This commit is contained in:
parent
c47f3e3307
commit
939055f19c
2 changed files with 0 additions and 140 deletions
|
@ -402,70 +402,6 @@ def test_FTL_binary_installed_and_responsive_no_errors(Pihole):
|
|||
# assert '644 /run/pihole-FTL.pid' in support_files.stdout
|
||||
# assert '644 /var/log/pihole-FTL.log' in support_files.stdout
|
||||
|
||||
def test_FTL_telnet_version(Pihole):
|
||||
''' confirms FTL binary is copied and functional in installed location and through telnet '''
|
||||
FTLtest = Pihole.run('''
|
||||
source /opt/pihole/basic-install.sh
|
||||
source /etc/.pihole/test/FTL-test.sh
|
||||
FTL_prepare_files
|
||||
FTLdetect
|
||||
pihole-FTL
|
||||
sleep 1
|
||||
FTL_get_version
|
||||
''')
|
||||
assert 'version' in FTLtest.stdout
|
||||
assert 'tag' in FTLtest.stdout
|
||||
assert 'branch' in FTLtest.stdout
|
||||
assert 'date' in FTLtest.stdout
|
||||
|
||||
def test_FTL_telnet_statistics(Pihole):
|
||||
''' confirms FTL binary is copied and functional in installed location and through telnet '''
|
||||
FTLtest = Pihole.run('''
|
||||
source /opt/pihole/basic-install.sh
|
||||
source /etc/.pihole/test/FTL-test.sh
|
||||
FTL_prepare_files
|
||||
FTLdetect
|
||||
pihole-FTL
|
||||
sleep 1
|
||||
FTL_get_stats
|
||||
''')
|
||||
assert 'domains_being_blocked' in FTLtest.stdout
|
||||
assert 'dns_queries_today 5' in FTLtest.stdout
|
||||
assert 'unique_domains 4' in FTLtest.stdout
|
||||
assert 'queries_forwarded 3' in FTLtest.stdout
|
||||
assert 'queries_cached 2' in FTLtest.stdout
|
||||
|
||||
def test_FTL_telnet_top_clients(Pihole):
|
||||
''' confirms FTL binary is copied and functional in installed location and through telnet '''
|
||||
FTLtest = Pihole.run('''
|
||||
source /opt/pihole/basic-install.sh
|
||||
source /etc/.pihole/test/FTL-test.sh
|
||||
FTL_prepare_files
|
||||
FTLdetect
|
||||
pihole-FTL
|
||||
sleep 1
|
||||
FTL_get_top_clients
|
||||
''')
|
||||
assert '0 2 192.168.2.208' in FTLtest.stdout
|
||||
assert '1 2 127.0.0.1' in FTLtest.stdout
|
||||
assert '2 1 10.8.0.2' in FTLtest.stdout
|
||||
|
||||
def test_FTL_telnet_top_domains(Pihole):
|
||||
''' confirms FTL binary is copied and functional in installed location and through telnet '''
|
||||
FTLtest = Pihole.run('''
|
||||
source /opt/pihole/basic-install.sh
|
||||
source /etc/.pihole/test/FTL-test.sh
|
||||
FTL_prepare_files
|
||||
FTLdetect
|
||||
pihole-FTL
|
||||
sleep 1
|
||||
FTL_get_top_domains
|
||||
''')
|
||||
assert '0 2 play.google.com' in FTLtest.stdout
|
||||
assert '1 1 pi.hole' in FTLtest.stdout
|
||||
assert '2 1 checkip.dyndns.org' in FTLtest.stdout
|
||||
assert '3 1 raspberrypi' in FTLtest.stdout
|
||||
|
||||
def test_IPv6_only_link_local(Pihole):
|
||||
''' confirms IPv6 blocking is disabled for Link-local address '''
|
||||
# mock ip -6 address to return Link-local address
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue