-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes ISM cypress failures due to missing admin certificates #1569
Conversation
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
Let's backport to main and 2.17 |
"clientCertificates": [ | ||
{ | ||
"url": "https://localhost:9200/.opendistro-ism*", | ||
"ca": ["cypress/resources/root-ca.pem"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these entries are needed else the tests would fail to start.
@@ -68,7 +68,7 @@ Cypress.Commands.add('updateManagedIndexConfigStartTime', (index) => { | |||
'POST', | |||
`${Cypress.env('openSearchUrl')}/${ | |||
IM_CONFIG_INDEX.OPENDISTRO_ISM_CONFIG | |||
}/_update_by_query`, | |||
}/_update_by_query/`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing slash is required for cypress to match client-certificates url correctly.
See here for more info.
Signed-off-by: Darshit Chanpura <dchanp@amazon.com> (cherry picked from commit c0986d6)
Signed-off-by: Darshit Chanpura <dchanp@amazon.com> (cherry picked from commit c0986d6)
Adds admin certificates to requests interacting with system index.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.