-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle expired tokens in cluster migration tests (#89422)
This PR addresses a failure around token BWC during cluster upgrade tests: the tests assert that tokens created in a cluster before (or during) an upgrade are still valid in the mixed or upgraded clusters. Our cluster upgrade test suites are long running however such that tokens created in the old (or mixed) cluster may be expired by the time we test their validity. The maximum lifetime of tokens is configured via a setting which has a max value of 1h. This PR extends the lifetime of all tokens by writing to the .security-tokens index directly, for each test where this is necessary. This (hacky) solution allows us to robustly exercise the target path of the test (validating that a token is valid and authenticates correctly) while keeping the fix confined to test code (as opposed to solving this via a system property). Closes #77350
- Loading branch information
Showing
1 changed file
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters