Skip to content

Commit 516007c

Browse files
committed
trigger cli
1 parent 5c15dd0 commit 516007c

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

t/cli/test_access_log.sh

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -179,50 +179,6 @@ make stop
179179

180180
echo "don't log uninitialized access log variable when the HTTP request is malformed"
181181

182-
# TLS upstream
183-
184-
echo "
185-
deployment:
186-
admin:
187-
admin_listen:
188-
port: 9180
189-
https_admin: true
190-
admin_api_mtls:
191-
admin_ssl_cert: '../t/certs/apisix_admin_ssl.crt'
192-
admin_ssl_cert_key: '../t/certs/apisix_admin_ssl.key'
193-
nginx_config:
194-
http:
195-
access_log_format: '\"\$upstream_scheme://\$upstream_host\" \$ssl_server_name'
196-
" > conf/config.yaml
197-
# 4. Start APISIX
198-
make run
199-
sleep 2
200-
201-
admin_key=$(yq '.deployment.admin.admin_key[0].key' conf/config.yaml | sed 's/"//g')
202-
curl -k -i https://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $admin_key" -X PUT -d \
203-
'{"uri":"/apisix/admin/routes/1", "upstream":{"nodes":{"localhost:9180":1},"scheme":"https","type":"roundrobin","pass_host":"node"}}'
204-
205-
curl -i http://127.0.0.1:9080/apisix/admin/routes/1
206-
sleep 4
207-
tail -n 2 logs/access.log > output.log
208-
209-
# APISIX
210-
if ! grep '"http://127.0.0.1:9180" -' output.log; then
211-
echo "failed: should find upstream scheme"
212-
cat output.log
213-
exit 1
214-
fi
215-
216-
# admin
217-
if ! grep '"http://127.0.0.1:9180" localhost' output.log; then
218-
echo "failed: should find upstream scheme"
219-
cat output.log
220-
exit 1
221-
fi
222-
223-
make stop
224-
echo "passed: should find upstream scheme"
225-
226182
# check stream logs
227183
echo '
228184
apisix:

0 commit comments

Comments
 (0)