Skip to content

Commit

Permalink
feat: separate grpc test case code
Browse files Browse the repository at this point in the history
  • Loading branch information
johzchen committed Oct 29, 2019
1 parent 1b2eee0 commit afdf3bf
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .travis/osx_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,7 @@ script() {
sleep 1

#test grpc proxy
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

sudo sh ./t/grpc-proxy-test.sh
sleep 1

sudo make stop
Expand Down

0 comments on commit afdf3bf

Please sign in to comment.