From a01c7d8c459f06584ccf680be6033e20ca500767 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 26 Nov 2024 19:50:08 +0100 Subject: [PATCH] test(deployment): terminationGracePeriodSeconds --- unittests/deployment/deployment.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/unittests/deployment/deployment.yaml b/unittests/deployment/deployment.yaml index 606fa9d..6e9ab7f 100644 --- a/unittests/deployment/deployment.yaml +++ b/unittests/deployment/deployment.yaml @@ -83,6 +83,9 @@ tests: path: spec.template.spec.restartPolicy - notExists: path: spec.template.spec.subdomain + - equal: + path: spec.template.spec.terminationGracePeriodSeconds + value: 60 - it: Test additional arguments set: @@ -293,6 +296,14 @@ tests: path: spec.template.spec.restartPolicy value: Always +- it: Test terminationGracePeriodSeconds + set: + deployment.terminationGracePeriodSeconds: 120 + asserts: + - equal: + path: spec.template.spec.terminationGracePeriodSeconds + value: 120 + - it: Test additional volumeMounts and volumes set: deployment.postgresExporter.volumeMounts: