Skip to content
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

Use admin cert and key when deleting system indices for cypress test cleanup #1174

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Sep 10, 2024

Description

Temporary fix to use admin cert and key when performing test cleanup. The current test cleanup logic relies on deleting system indices and currently uses basic auth creds when performing the delete operation.

Ideally, any resources created in ISM can be cleaned up from a system index through an API.

i.e. If a test creates a policy, then at the end of the test call on delete policy API.

Check List

  • Commits are signed per the DCO using --signoff

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.

…cleanup

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <cwperx@amazon.com>
@vikasvb90 vikasvb90 merged commit a343286 into opensearch-project:main Sep 11, 2024
9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 11, 2024
…cleanup (#1174)

* Use admin cert and key when deleting system indices for cypress test cleanup

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Remove unused imports

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
(cherry picked from commit a343286)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 11, 2024
…cleanup (#1174)

* Use admin cert and key when deleting system indices for cypress test cleanup

Signed-off-by: Craig Perkins <cwperx@amazon.com>

* Remove unused imports

Signed-off-by: Craig Perkins <cwperx@amazon.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
(cherry picked from commit a343286)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
vikasvb90 pushed a commit that referenced this pull request Sep 11, 2024
…cleanup (#1174) (#1176)

* Use admin cert and key when deleting system indices for cypress test cleanup



* Remove unused imports



---------


(cherry picked from commit a343286)

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
vikasvb90 pushed a commit that referenced this pull request Sep 11, 2024
…cleanup (#1174) (#1175)

* Use admin cert and key when deleting system indices for cypress test cleanup



* Remove unused imports



---------


(cherry picked from commit a343286)

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants