Added unit tests for generic annotations (#64)
This commit is contained in:
parent
c6adb89d4b
commit
b52b0d3c15
1 changed files with 10 additions and 0 deletions
|
@ -140,6 +140,16 @@ load _helpers
|
|||
[ "${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" {
|
||||
cd `chart_dir`
|
||||
local actual=$(helm template \
|
||||
|
|
Loading…
Reference in a new issue