From c3f40f54a310a2b12e9ac36b087d0d325dbaf697 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Wed, 20 Dec 2023 10:19:48 +0100 Subject: [PATCH] OZG-4453 add helm deployment unit test for dns config --- .../test/helm/deployment_template_spec_test.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ozgcloud-elasticsearch-operator/src/test/helm/deployment_template_spec_test.yaml b/ozgcloud-elasticsearch-operator/src/test/helm/deployment_template_spec_test.yaml index 84ae09f..8ec9dba 100644 --- a/ozgcloud-elasticsearch-operator/src/test/helm/deployment_template_spec_test.yaml +++ b/ozgcloud-elasticsearch-operator/src/test/helm/deployment_template_spec_test.yaml @@ -49,4 +49,18 @@ tests: asserts: - equal: path: spec.template.spec.restartPolicy - value: Always \ No newline at end of file + value: Always + + - it: validate dns config + set: + image: + name: hase + tag: latest + imagePullSecret: imagePullSecret + asserts: + - equal: + path: spec.template.spec.dnsConfig + value: {} + - equal: + path: spec.template.spec.dnsPolicy + value: ClusterFirst \ No newline at end of file -- GitLab