Skip to content

Commit

Permalink
fix test_dns.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Revolyssup committed Mar 29, 2024
1 parent fd29bf5 commit d09b3be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions t/cli/test_dns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ nginx_config:

make run
sleep 0.5

admin_key=$(yq '.deployment.admin.admin_key[0].key' conf/config.yaml | sed 's/"//g')
curl -v -k -i -m 20 -o /dev/null -s -X PUT http://127.0.0.1:9180/apisix/admin/stream_routes/1 \
-H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" \
-H "X-API-KEY: $admin_key" \
-d '{
"upstream": {
"type": "roundrobin",
Expand Down
3 changes: 2 additions & 1 deletion t/cli/test_prometheus_stream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ stream_plugins:
make run
sleep 0.5

admin_key=$(yq '.deployment.admin.admin_key[0].key' conf/config.yaml | sed 's/"//g')
curl -v -k -i -m 20 -o /dev/null -s -X PUT http://127.0.0.1:9180/apisix/admin/stream_routes/1 \
-H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" \
-H "X-API-KEY: $admin_key" \
-d '{
"plugins": {
"prometheus": {}
Expand Down

0 comments on commit d09b3be

Please sign in to comment.