Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikutas committed Dec 15, 2021
1 parent a57914b commit 772dbaa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unit/server-statefulset.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,16 @@ load _helpers
[[ "${actual}" = "10" ]]
}

@test "server/standalone-StatefulSet: terminationGracePeriodSeconds 30" {
cd `chart_dir`
local actual=$(helm template \
--show-only templates/server-statefulset.yaml \
--set 'server.terminationGracePeriodSeconds=30' \
. | tee /dev/stderr |
yq -r '.spec.template.spec.terminationGracePeriodSeconds' | tee /dev/stderr)
[[ "${actual}" = "30" ]]
}

#--------------------------------------------------------------------
# preStop
@test "server/standalone-StatefulSet: preStop sleep duration default" {
Expand Down

0 comments on commit 772dbaa

Please sign in to comment.