I'm using helm charts to deploy several REST services to Microsoft Azure. Some of these services communicate with each other and to some databases. After the deployment I want to test if "everything" works as expected. To be more precise, I want to send some HTTP requests to one of the services and check if the response makes sense. In automated tests of course.
I saw that it's possible to run basic commands after the deployment using "helm test", but this is not exactly what I need.
In some earlier approach I used Newman to execute a Postman collection in a script after the deployment. The Postman collection defined several requests and the corresponding tests.
Now I don't know how to do it in the new environment (Azure) and deployment pipeline (helm, k8s).
It would be nice to have something like this again. But for me it's not clear how to do it, e.g.
- how can I use Newman in the "helm test" scope?
- how can I ensure, that the deployed Pods are all "Running" before starting the test (some wait time? status check?)?
newman run "test.postman_collection.json" -e "azure.postman_environment.json" --bail