Skip to content

pluralsh/terratest-suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Health Test Suite (Terratest)

This repository contains an automated Kubernetes health test suite built using Terratest.
It validates that your example workloads — hello-world, nginx, a ping Job, and a statefulset — are correctly deployed and healthy.


What It Tests

Component Description What’s Verified
hello-world Pod Simple BusyBox container that logs a startup message Pod creation, readiness, and log contents
nginx Deployment + Service Single-replica Nginx deployment exposed via ClusterIP Deployment health and Service port mapping
ping-nginx Job Curl job that pings the nginx service Job completion (exit code 0)
stateful-demo StatefulSet StatefulSet that writes “hello” to a mounted PVC Pod readiness and data persistence check

Clone this repository:

git clone https://github.com/your-org/k8s-health-tests.git
cd k8s-health-tests

Install dependencies

go mod tidy

Run all tests

go test -v .

About

basic terratest suite for k8s health

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages