Interview Prep/Helm/Hooks, Tests & Validation

How do you run only some tests or keep test pods for debugging?

IntermediateConceptHooks, Tests & Validation
Answer
helm test shop -n shop --filter name=shop-test-api --logs
helm test shop -n shop --filter '!name=postgres-test'    # exclude by name

Without a hook-delete-policy that deletes on success, test Pods remain after the run so you can kubectl logs and kubectl describe them. Use before-hook-creation so the next helm test replaces them instead of failing with "already exists".

All Helm questions Roadmap: Helm

More on Hooks, Tests & Validation