Skip to content

Commit

Permalink
fix: remove the restriction of etcd prefix (#7675)
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander authored Aug 15, 2022
1 parent 768fc7c commit c4d5f2f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion apisix/cli/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ local etcd_schema = {
},
prefix = {
type = "string",
pattern = [[^/[^/]+$]]
},
host = {
type = "array",
Expand Down
13 changes: 0 additions & 13 deletions t/cli/test_validate_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,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"

0 comments on commit c4d5f2f

Please sign in to comment.