add test for grpc on a port other than 80

fix docs a bout supporting only HTTP
remove extra spaces
This commit is contained in:
fzerorubigd
2019-08-24 10:58:34 +02:00
parent 5ca3ca5189
commit c4838b4af9
3 changed files with 8 additions and 2 deletions

View File

@@ -25,6 +25,13 @@ teardown() {
assert_output "Greeting: Hello grpc"
}
@test "(nginx-vhosts) grpc endpoint on a port other than 80" {
deploy_app gogrpc
dokku proxy:ports-add "$TEST_APP" "grpc:8080:50051"
run /bin/bash -c "docker run --rm ${TEST_APP}-docker-image /go/bin/greeter_client -address ${TEST_APP}.dokku.me:8080 -name grpc8080"
assert_output "Greeting: Hello grpc8080"
}
@test "(nginx-vhosts) grpcs endpoint" {
setup_test_tls
deploy_app gogrpc