From 7382b58da5e10fec544079b1fbb625c7deebacd5 Mon Sep 17 00:00:00 2001 From: Luke Kysow <1034429+lkysow@users.noreply.github.com> Date: Fri, 14 Jan 2022 11:03:31 -0800 Subject: [PATCH] Add test --- charts/consul/test/unit/server-statefulset.bats | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/charts/consul/test/unit/server-statefulset.bats b/charts/consul/test/unit/server-statefulset.bats index 5fe79098ad..69a507f06a 100755 --- a/charts/consul/test/unit/server-statefulset.bats +++ b/charts/consul/test/unit/server-statefulset.bats @@ -1789,6 +1789,17 @@ load _helpers #-------------------------------------------------------------------- # ui.dashboardURLTemplates.service +@test "server/StatefulSet: dashboard_url_templates not set by default" { + cd `chart_dir` + + local actual=$(helm template \ + -s templates/server-statefulset.yaml \ + . | tee /dev/stderr | + yq -r ".spec.template.spec.containers[0].command | any(contains(\"dashboard_url_templates\"))" | tee /dev/stderr) + + [ "${actual}" = "false" ] +} + @test "server/StatefulSet: ui.dashboardURLTemplates.service sets the template" { cd `chart_dir`