Skip to content

Commit 6be9c97

Browse files
committed
test: reset rotation response in mock server for upgrade tests
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
1 parent 859f39b commit 6be9c97

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)