From 2eedbb7c9b10eecf7711efa299f6acd614c2f737 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Fri, 26 Jul 2024 12:52:11 +0200 Subject: [PATCH] Add CM in tests --- oscar/templates/oscar-additional-cm.yaml | 2 +- oscar/tests/oscar-additional-cm.yaml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 oscar/tests/oscar-additional-cm.yaml diff --git a/oscar/templates/oscar-additional-cm.yaml b/oscar/templates/oscar-additional-cm.yaml index e606a50..37bfd77 100644 --- a/oscar/templates/oscar-additional-cm.yaml +++ b/oscar/templates/oscar-additional-cm.yaml @@ -9,6 +9,6 @@ data: images: allowed_prefixes: {{- range .Values.additionalConfig.allowedImagePrefix }} - - {{ . | title | quote}} + - {{ . | quote}} {{- end }} {{- end }} \ No newline at end of file diff --git a/oscar/tests/oscar-additional-cm.yaml b/oscar/tests/oscar-additional-cm.yaml new file mode 100644 index 0000000..6d4eb36 --- /dev/null +++ b/oscar/tests/oscar-additional-cm.yaml @@ -0,0 +1,17 @@ +suite: test oscar deployment +templates: + - oscar-additional-cm.yaml +tests: + - name: test1 + set: + additionalConfig.allowedImagePrefix: [grycap] + asserts: + - isKind: + of: ConfigMap + - equal: + path: data + value: + config.yaml: |- + images: + allowed_prefixes: + - "grycap"