Skip to content

Commit

Permalink
fix bats test
Browse files Browse the repository at this point in the history
  • Loading branch information
jm96441n committed Apr 22, 2024
1 parent 5491ffd commit 238e548
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions charts/consul/test/unit/terminating-gateways-role.bats
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,6 @@ load _helpers
[ "${actual}" = "podsecuritypolicies" ]
}

@test "terminatingGateways/Role: rules for global.acls.manageSystemACLs=true" {
cd `chart_dir`
local object=$(helm template \
-s templates/terminating-gateways-role.yaml \
--set 'terminatingGateways.enabled=true' \
--set 'connectInject.enabled=true' \
--set 'global.acls.manageSystemACLs=true' \
. | tee /dev/stderr |
yq -s -r '.[0].rules[0]' | tee /dev/stderr)

local actual=$(echo $object | yq -r '.resources[0]' | tee /dev/stderr)
[ "${actual}" = "secrets" ]

local actual=$(echo $object | yq -r '.resourceNames[0]' | tee /dev/stderr)
[ "${actual}" = "release-name-consul-terminating-gateway-acl-token" ]
}

@test "terminatingGateways/Role: rules is empty if no ACLs, PSPs" {
cd `chart_dir`
local actual=$(helm template \
Expand Down

0 comments on commit 238e548

Please sign in to comment.