Skip to content

Commit

Permalink
Check correct env var
Browse files Browse the repository at this point in the history
  • Loading branch information
clly committed May 16, 2023
1 parent 8e8cd50 commit 4617b86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/consul/test/unit/telemetry-collector-deployment.bats
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ load _helpers
yq '.spec.template.spec.initContainers[0]' | tee /dev/stderr)

local actual=$(echo $object |
yq '[.env[3].name] | any(contains("CONSUL_LOGIN_DATACENTER"))' | tee /dev/stderr)
yq '[.env[4].name] | any(contains("CONSUL_LOGIN_DATACENTER"))' | tee /dev/stderr)
[ "${actual}" = "true" ]

local actual=$(echo $object |
yq '[.env[3].value] | any(contains("dc2"))' | tee /dev/stderr)
yq '[.env[4].value] | any(contains("dc2"))' | tee /dev/stderr)
[ "${actual}" = "true" ]
}

Expand Down

0 comments on commit 4617b86

Please sign in to comment.