examples/grpc-e2e-tests/Readme.md
In this example:
In the real world, Kubernetes deployments will consist of an application and a database for persisting any state. And write an E2E test which executes against local E2E environment.
From this directory, run
skaffold run
Hit the service using grpcurl command
# Visit request
$ grpcurl -plaintext -d '{"visitor": {"name": "testuser"}}' $(minikube service visitor-counter --url | sed 's~http[s]*://~~g') skaffold.examples.e2e.visitor.VisitorCounter/UpdateVisitor
# Get visit count for an user'
grpcurl -plaintext -d '{"visitor": {"name": "testuser"}}' $(minikube service visitor-counter --url | sed 's~http[s]*://~~g') skaffold.examples.e2e.visitor.VisitorCounter/GetVisitCount
Run Ginkgo E2E tests using command
export VISITOR_COUNTER_SERVICE=$(minikube service visitor-counter --url) & ginkgo tests