Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristian König <ckoenig@posteo.de>2022-09-27 00:40:09 +0300
committerChristian König <ckoenig@posteo.de>2022-09-27 00:40:09 +0300
commit276c480f5001465d994dacf6e30d1e1c2d0a3b0b (patch)
treee1dc3c05862603a24a43d0ea45db2c48ea2c065c /test
parent25ba68104b1b9c6300d45920514a06c1cccdb516 (diff)
Return default port if non-numeric characters are set in pihole-FTL.conf for FTLPORT. FTL does the same in such case and provide the API on 4711no_port
Signed-off-by: Christian König <ckoenig@posteo.de>
Diffstat (limited to 'test')
-rw-r--r--test/test_any_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_any_utils.py b/test/test_any_utils.py
index 6a1146ee..5b4075d9 100644
--- a/test/test_any_utils.py
+++ b/test/test_any_utils.py
@@ -92,7 +92,7 @@ def test_getFTLAPIPort_custom(host):
def test_getFTLAPIPort_malicious(host):
- """Confirms getFTLAPIPort returns -1 if the setting in pihole-FTL.conf contains non-digits"""
+ """Confirms getFTLAPIPort returns 4711 if the setting in pihole-FTL.conf contains non-digits"""
host.run(
"""
echo "FTLPORT=*$ssdfsd" > /etc/pihole/pihole-FTL.conf
@@ -104,7 +104,7 @@ def test_getFTLAPIPort_malicious(host):
getFTLAPIPort
"""
)
- expected_stdout = "-1\n"
+ expected_stdout = "4711\n"
assert expected_stdout == output.stdout