From 48a4bc63bf48fa6d0b2bba23b284a8e982adc6b7 Mon Sep 17 00:00:00 2001 From: nic-chen Date: Tue, 29 Oct 2019 14:14:46 +0800 Subject: [PATCH] fix filepath --- .travis/osx_runner.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.travis/osx_runner.sh b/.travis/osx_runner.sh index 98aebb24f8d37..fe53fe3d3f6ba 100755 --- a/.travis/osx_runner.sh +++ b/.travis/osx_runner.sh @@ -67,7 +67,21 @@ script() { sleep 1 #test grpc proxy - sudo sh ./t/grpc-proxy-test.sh + curl http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d ' + { + "methods": ["POST", "GET"], + "uri": "/helloworld.Greeter/SayHello", + "service_protocol": "grpc", + "upstream": { + "type": "roundrobin", + "nodes": { + "127.0.0.1:50051": 1 + } + } + }' + + grpcurl -insecure -import-path ./grpc_server_example/proto -proto helloworld.proto -d '{"name":"apisix"}' 127.0.0.1:9443 helloworld.Greeter.SayHello + sleep 1 sudo make stop