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>
cwperks added a commit to cwperks/index-management-dashboards-plugin that referenced this pull request Oct 31, 2024
…ss test cleanup (opensearch-project#1174)"

This reverts commit a343286.

Signed-off-by: Craig Perkins <cwperx@amazon.com>
cwperks added a commit that referenced this pull request Nov 4, 2024
* Revert "Use admin cert and key when deleting system indices for cypress test cleanup (#1174)"

This reverts commit a343286.

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

* Run Cypress Tests with security

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

* Create re-usable action

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

* Checkout branch

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

* Add shell

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

* Use quotes

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

* Specify openSearchUrl

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

* Remove shell

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

* Add security settings to dashboards config

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

* Change location

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

* Update location

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

* Install security dashboards plugin

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

* Fix indentation error

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

* shell

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

* Run osd bootstrap

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

* Specify repository

Signed-off-by: Craig Perkins <craig5008@gmail.com>

* Reduce time and update creds

Signed-off-by: Craig Perkins <craig5008@gmail.com>

* Use GET /_tasks/<task_id> instead of direct access to system index

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

* Fix unit tests

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

* Update snapshots

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

* Revert "Update snapshots"

This reverts commit ce34314.

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

* Add trailing slash

Signed-off-by: Craig Perkins <craig5008@gmail.com>

* Don't copy sec-dashboards-plugin if not running with security

Signed-off-by: Craig Perkins <craig5008@gmail.com>

---------

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Craig Perkins <craig5008@gmail.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