Skip to content

Commit

Permalink
test: reset rotation response in mock server for upgrade tests
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase committed Aug 2, 2024
1 parent 859f39b commit 6be9c97
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/bats/e2e-provider.bats
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,8 @@ export VALIDATE_TOKENS_AUDIENCE=$(get_token_requests_audience)
result=$(kubectl get secret -n rotation rotationsecret -o jsonpath="{.data.username}" | base64 -d)
[[ "${result//$'\r'}" == "rotated" ]]

# reset rotation response in mock server for inplace upgrade test
if [[ "${INPLACE_UPGRADE_TEST}" == "true" ]]; then
run kubectl exec ${curl_pod_name} -n rotation -- curl http://${pod_ip}:8080/rotation?rotated=false
fi
# reset rotation response in mock server for all upgrade tests
run kubectl exec ${curl_pod_name} -n rotation -- curl http://${pod_ip}:8080/rotation?rotated=false
}

@test "Validate metrics" {
Expand Down

0 comments on commit 6be9c97

Please sign in to comment.