Use BATS to Automate Kubernetes Testing
PAGE UNDER CONSTRUCTION¶
Have you wanted to test things that you know how to run in your bash
scripts or terminal, but aren't quite sure how to make it happen? Take a look at the Bash Automated Testing System (BATS) and make that dream a reality!
By writing automated and repeatable tests with BATS, you can create a validation framework that works equally well in your terminal and CI/CD pipelines, giving you the opportunity to pass "smoke tests" before flagging your k8s resources as production-ready.
In this post we will go over a few examples of how to test basic API connectivity, as well as some more complex tests that you may want to perform.