From 7f1382d3fe72bebbc577a6d5993b79326231b54e Mon Sep 17 00:00:00 2001 From: smerle33 Date: Wed, 4 Oct 2023 11:24:00 +0200 Subject: [PATCH] unittest for resources --- charts/reports/tests/custom_values_test.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/charts/reports/tests/custom_values_test.yaml b/charts/reports/tests/custom_values_test.yaml index a53734058..fdef7a19a 100644 --- a/charts/reports/tests/custom_values_test.yaml +++ b/charts/reports/tests/custom_values_test.yaml @@ -18,6 +18,8 @@ tests: set: htmlVolume: hostPath: /host + resources: + cpu: 100ms asserts: - hasDocuments: count: 1 @@ -29,6 +31,9 @@ tests: - equal: path: spec.template.spec.volumes[0].hostPath value: /host + - equal: + path: spec.template.spec.containers[0].resources.cpu + value: 100ms - it: should create a PDB with defaults when multiple replicas are set template: pdb.yaml set: