Added unit tests for generic annotations (#64)

This commit is contained in:
Alejandro Garrido Mota 2019-10-06 20:58:49 +01:00 committed by Jason O'Donnell
parent c6adb89d4b
commit b52b0d3c15

View file

@ -140,6 +140,16 @@ load _helpers
[ "${actual}" = "true" ] [ "${actual}" = "true" ]
} }
@test "server/Service: generic annotations" {
cd `chart_dir`
local actual=$(helm template \
-x templates/server-service.yaml \
--set 'server.service.annotations.vaultIsAwesome=true' \
. | tee /dev/stderr |
yq -r '.metadata.annotations["vaultIsAwesome"]' | tee /dev/stderr)
[ "${actual}" = "true" ]
}
@test "server/Service: publish not ready" { @test "server/Service: publish not ready" {
cd `chart_dir` cd `chart_dir`
local actual=$(helm template \ local actual=$(helm template \