From 2be93248eb0a16101422caca7b1eadc4c9137a41 Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Fri, 8 Dec 2023 02:20:51 +0100 Subject: [PATCH] test: update wildcard location enumeration test --- test/tests/location_config/expected-std-out.txt | 8 +++++--- test/tests/location_config/run.sh | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/tests/location_config/expected-std-out.txt b/test/tests/location_config/expected-std-out.txt index f3f10c5..fc5bef9 100644 --- a/test/tests/location_config/expected-std-out.txt +++ b/test/tests/location_config/expected-std-out.txt @@ -1,7 +1,9 @@ -*.bar.baz.example.com -*.baz.example.com +*.bar.baz.com.example.com +*.baz.com.example.com +*.com.example.com *.example.com -foo.bar.baz.example.* +foo.bar.baz.com.example.* +foo.bar.baz.com.* foo.bar.baz.* foo.bar.* foo.* diff --git a/test/tests/location_config/run.sh b/test/tests/location_config/run.sh index 0038616..96bbb98 100755 --- a/test/tests/location_config/run.sh +++ b/test/tests/location_config/run.sh @@ -54,7 +54,7 @@ function check_location { } # check the wildcard location enumeration function -docker exec "$le_container_name" bash -c 'source /app/functions.sh; enumerate_wildcard_locations foo.bar.baz.example.com' +docker exec "$le_container_name" bash -c 'source /app/functions.sh; enumerate_wildcard_locations foo.bar.baz.com.example.com' # default configuration file should be empty config_path="$vhost_path/default"