Fix tests

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2023-10-16 18:00:31 +01:00
parent 05d1995e92
commit 55d0ef5fa1
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -5,14 +5,14 @@ import re
CMD_APPLY_FTL_CONFIG_FROM_ENV = ". bash_functions.sh ; apply_FTL_Configs_From_Env"
@pytest.mark.parametrize("test_args", ['-e "FTLCONF_webserver_port=999"'])
@pytest.mark.parametrize("test_args", ['-e "FTLCONF_webserver.port=999"'])
def test_ftlconf_webserver_port(docker):
func = docker.run(CMD_APPLY_FTL_CONFIG_FROM_ENV)
assert "Applied pihole-FTL setting webserver.port=999" in func.stdout
@pytest.mark.parametrize(
"test_args", ['-e "FTLCONF_dns_upstreams=1.1.1.1;8.8.8.8#1234"']
"test_args", ['-e "FTLCONF_dns.upstreams=1.1.1.1;8.8.8.8#1234"']
)
def test_ftlconf_dns_upstreams(docker):
func = docker.run(CMD_APPLY_FTL_CONFIG_FROM_ENV)