Skip to content

Commit

Permalink
Merge pull request #1589 from aramase/automated-cherry-pick-of-#1585-…
Browse files Browse the repository at this point in the history
…upstream-release-1.4

Automated cherry pick of #1585: test: reset rotation response in mock server for upgrade
  • Loading branch information
k8s-ci-robot authored Aug 12, 2024
2 parents a74f4e8 + 6be9c97 commit e0f77ad
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 e0f77ad

Please sign in to comment.