Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
lkysow committed Jan 19, 2022
1 parent 02b9db7 commit 7382b58
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions charts/consul/test/unit/server-statefulset.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down

0 comments on commit 7382b58

Please sign in to comment.