This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch release/2.13
in repository https://gitbox.apache.org/repos/asf/apisix.git

commit aa17261a37c21f5eb934e92071501823d957afa8
Author: 罗泽轩 <[email protected]>
AuthorDate: Mon Aug 15 17:25:41 2022 +0800

    fix: remove the restriction of etcd prefix (#7675)
    
    Signed-off-by: spacewander <[email protected]>
---
 apisix/cli/schema.lua         |  1 -
 t/cli/test_validate_config.sh | 13 -------------
 2 files changed, 14 deletions(-)

diff --git a/apisix/cli/schema.lua b/apisix/cli/schema.lua
index e44f0be63..5ed6fe5d8 100644
--- a/apisix/cli/schema.lua
+++ b/apisix/cli/schema.lua
@@ -215,7 +215,6 @@ local config_schema = {
                 },
                 prefix = {
                     type = "string",
-                    pattern = [[^/[^/]+$]]
                 },
                 host = {
                     type = "array",
diff --git a/t/cli/test_validate_config.sh b/t/cli/test_validate_config.sh
index 3310f472b..cb7a911de 100755
--- a/t/cli/test_validate_config.sh
+++ b/t/cli/test_validate_config.sh
@@ -190,17 +190,4 @@ if ! echo "$out" | grep 'property "host" validation 
failed'; then
     exit 1
 fi
 
-echo '
-etcd:
-    prefix: "/apisix/"
-    host:
-        - https://127.0.0.1
-' > conf/config.yaml
-
-out=$(make init 2>&1 || true)
-if ! echo "$out" | grep 'property "prefix" validation failed'; then
-    echo "failed: should check etcd schema during init"
-    exit 1
-fi
-
 echo "passed: check etcd schema during init"

Reply via email to