Skip to content

Commit

Permalink
modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Feb 25, 2025
1 parent b4b8919 commit 1bc7c63
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions t/cli/test_deployment_data_plane.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,24 @@ if [ ! $code -eq 404 ]; then
fi

echo "passed: data_plane should not enable Admin API"

echo '
deployment:
role: data_plane
role_data_plane:
config_provider: etcd
etcd:
host:
- https://127.0.0.1:12379
prefix: "/apisix"
timeout: 30
' > conf/config.yaml

out=$(make run 2>&1 || true)
make stop
if echo "$out" | grep 'failed to load the configuration: https://127.0.0.1:12379: certificate verify failed'; then
echo "failed: should verify certificate by default and not get certificate verify failed"
exit 1
fi

echo "passed: should verify certificate by default using system cert"

0 comments on commit 1bc7c63

Please sign in to comment.