From 6b1c8a7fff92ae08a2b42d2e827249e6e2d345ca Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sun, 5 Feb 2023 21:30:31 +0000 Subject: [PATCH] @DL6ER changed the config key names... Remove superfluous test Signed-off-by: Adam Warner --- test/test_any_utils.py | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/test/test_any_utils.py b/test/test_any_utils.py index 741b1127..8dc3f1a5 100644 --- a/test/test_any_utils.py +++ b/test/test_any_utils.py @@ -172,33 +172,6 @@ def test_getFTLPIDFile_and_getFTLPID_custom(host): assert expected_stdout == output.stdout -def test_setFTLConfigValue_getFTLConfigValue(host): - """ - Confirms setFTLConfigValue works - Requires FTL to be installed, so we do that first (taken from test_FTL_binary_installed_and_responsive_no_errors) - """ - host.run( - """ - source /opt/pihole/basic-install.sh - create_pihole_user - funcOutput=$(get_binary_name) - echo "new/http" > /etc/pihole/ftlbranch - binary="pihole-FTL${funcOutput##*pihole-FTL}" - theRest="${funcOutput%pihole-FTL*}" - FTLdetect "${binary}" "${theRest}" - """ - ) - - output = host.run( - """ - source /opt/pihole/utils.sh - setFTLConfigValue "dnsmasq.upstreams" '["1.1.1.1"]' - """ - ) - - assert '[ "1.1.1.1" ]' in output.stdout - - def test_getFTLConfigValue_getFTLConfigValue(host): """ Confirms getFTLConfigValue works (also assumes setFTLConfigValue works) @@ -219,8 +192,8 @@ def test_getFTLConfigValue_getFTLConfigValue(host): output = host.run( """ source /opt/pihole/utils.sh - setFTLConfigValue "dnsmasq.upstreams" '["9.9.9.9"]' > /dev/null - getFTLConfigValue "dnsmasq.upstreams" + setFTLConfigValue "dns.upstreams" '["9.9.9.9"]' > /dev/null + getFTLConfigValue "dns.upstreams" """ )