Skip to content

Commit

Permalink
ensure synced
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
  • Loading branch information
spacewander committed Jun 11, 2021
1 parent 8bf9ee4 commit 4a2648f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/cli/test_tls_over_tcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ curl -k -i http://127.0.0.1:9080/apisix/admin/stream_routes/1 \
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d \
'{"upstream":{"nodes":{"127.0.0.1:9101":1},"type":"roundrobin"}}'

sleep 0.1
if ! openssl s_client -connect 127.0.0.1:9100 -servername test.com -CAfile t/certs/mtls_ca.crt | \
sleep 1
if ! echo -e 'mmm' | \
openssl s_client -connect 127.0.0.1:9100 -servername test.com -CAfile t/certs/mtls_ca.crt | \
grep 'OK FROM UPSTREAM';
then
echo "failed: should proxy tls over tcp"
Expand Down

0 comments on commit 4a2648f

Please sign in to comment.