mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-30 12:32:45 +00:00
26 lines
722 B
Bash
26 lines
722 B
Bash
#!/usr/bin/env bats
|
|
|
|
load _helpers
|
|
|
|
@test "meshGateway/ServiceAccount: disabled by default" {
|
|
cd `chart_dir`
|
|
local actual=$(helm template \
|
|
-x templates/mesh-gateway-serviceaccount.yaml \
|
|
. | tee /dev/stderr |
|
|
yq 'length > 0' | tee /dev/stderr)
|
|
[ "${actual}" = "false" ]
|
|
}
|
|
|
|
@test "meshGateway/ServiceAccount: enabled with meshGateway, connectInject and client.grpc enabled" {
|
|
cd `chart_dir`
|
|
local actual=$(helm template \
|
|
-x templates/mesh-gateway-serviceaccount.yaml \
|
|
--set 'meshGateway.enabled=true' \
|
|
--set 'connectInject.enabled=true' \
|
|
--set 'client.grpc=true' \
|
|
. | tee /dev/stderr |
|
|
yq 'length > 0' | tee /dev/stderr)
|
|
[ "${actual}" = "true" ]
|
|
}
|
|
|