Skip to content

Commit

Permalink
bats try again
Browse files Browse the repository at this point in the history
  • Loading branch information
missylbytes committed Sep 16, 2024
1 parent 44fed44 commit f8d0bc6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions charts/consul/test/unit/gateway-resources-job.bats
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,13 @@ target=templates/gateway-resources-job.yaml
"effect": "NoSchedule" \
"key": "node2" \
"value": "clients2"' \
. | tee /dev/stderr |
yq '.spec.template.spec.containers[0].args.[13] | contains("\"operator\": ")' | tee /dev/stderr)
[ "${tolerations}" = "true" ]
.| tee /dev/stderr |
yq '.spec.template.spec.containers[0]' | tee /dev/stderr)
echo "cupcakes"
echo $tolerations
local actual=$(echo "$tolerations" | yq '.args.[13] | contains("\"operator\": ")' | tee /dev/stderr)
echo "if fails-----------------------------------------------------------"
echo $actual
echo $actual >&3
[ "${actual}" = true ]
}

0 comments on commit f8d0bc6

Please sign in to comment.