Skip to content

Commit e0f77ad

Browse files
authored
Merge pull request #1589 from aramase/automated-cherry-pick-of-#1585-upstream-release-1.4
Automated cherry pick of #1585: test: reset rotation response in mock server for upgrade
2 parents a74f4e8 + 6be9c97 commit e0f77ad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/bats/e2e-provider.bats

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,8 @@ export VALIDATE_TOKENS_AUDIENCE=$(get_token_requests_audience)
411411
result=$(kubectl get secret -n rotation rotationsecret -o jsonpath="{.data.username}" | base64 -d)
412412
[[ "${result//$'\r'}" == "rotated" ]]
413413

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

420418
@test "Validate metrics" {

0 commit comments

Comments
 (0)