update defaults for ui-service test

This commit is contained in:
Clint Shryock 2018-11-30 16:05:40 -06:00
parent dc808dc106
commit 3dc9474ffc
No known key found for this signature in database
GPG key ID: B7C8F9C70EC5CD29

View file

@ -2,13 +2,13 @@
load _helpers
@test "ui/Service: enabled by default" {
@test "ui/Service: disabled by default" {
cd `chart_dir`
local actual=$(helm template \
-x templates/ui-service.yaml \
. | tee /dev/stderr |
yq 'length > 0' | tee /dev/stderr)
[ "${actual}" = "true" ]
[ "${actual}" = "false" ]
}
@test "ui/Service: enable with global.enabled false" {
@ -88,6 +88,7 @@ load _helpers
local actual=$(helm template \
-x templates/ui-service.yaml \
--set 'ui.service.type=LoadBalancer' \
--set 'ui.enabled=true' \
. | tee /dev/stderr |
yq -r '.spec.type' | tee /dev/stderr)
[ "${actual}" = "LoadBalancer" ]