From 30cc4c382a1d0790f973b63631077b5f69fab5ce Mon Sep 17 00:00:00 2001 From: Andrey Tatarinov Date: Wed, 16 Aug 2023 23:35:55 +0400 Subject: [PATCH] add livenessProbe test --- charts/simple-app/tests/simple_test.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/charts/simple-app/tests/simple_test.yaml b/charts/simple-app/tests/simple_test.yaml index 297ac6c..50b96e8 100644 --- a/charts/simple-app/tests/simple_test.yaml +++ b/charts/simple-app/tests/simple_test.yaml @@ -102,6 +102,19 @@ tests: sizeLimit: 1Gi name: shared-memory + - it: Deployment should correctly set livenessProbe path + template: deployment.yaml + set: + livenessProbe: + httpGet: + path: /test + asserts: + - isKind: + of: Deployment + - equal: + path: spec.template.spec.containers[0].livenessProbe.httpGet.path + value: /test + - it: Service should be named as release template: service.yaml asserts: