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.

Signed-off-by: Craig Perkins <[email protected]>
@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 <[email protected]>

* Remove unused imports

Signed-off-by: Craig Perkins <[email protected]>

---------

Signed-off-by: Craig Perkins <[email protected]>
(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 <[email protected]>

* Remove unused imports

Signed-off-by: Craig Perkins <[email protected]>

---------

Signed-off-by: Craig Perkins <[email protected]>
(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 <[email protected]>
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 <[email protected]>
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
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 <[email protected]>

* Run Cypress Tests with security

Signed-off-by: Craig Perkins <[email protected]>

* Create re-usable action

Signed-off-by: Craig Perkins <[email protected]>

* Checkout branch

Signed-off-by: Craig Perkins <[email protected]>

* Add shell

Signed-off-by: Craig Perkins <[email protected]>

* Use quotes

Signed-off-by: Craig Perkins <[email protected]>

* Specify openSearchUrl

Signed-off-by: Craig Perkins <[email protected]>

* Remove shell

Signed-off-by: Craig Perkins <[email protected]>

* Add security settings to dashboards config

Signed-off-by: Craig Perkins <[email protected]>

* Change location

Signed-off-by: Craig Perkins <[email protected]>

* Update location

Signed-off-by: Craig Perkins <[email protected]>

* Install security dashboards plugin

Signed-off-by: Craig Perkins <[email protected]>

* Fix indentation error

Signed-off-by: Craig Perkins <[email protected]>

* shell

Signed-off-by: Craig Perkins <[email protected]>

* Run osd bootstrap

Signed-off-by: Craig Perkins <[email protected]>

* Specify repository

Signed-off-by: Craig Perkins <[email protected]>

* Reduce time and update creds

Signed-off-by: Craig Perkins <[email protected]>

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

Signed-off-by: Craig Perkins <[email protected]>

* Fix unit tests

Signed-off-by: Craig Perkins <[email protected]>

* Update snapshots

Signed-off-by: Craig Perkins <[email protected]>

* Revert "Update snapshots"

This reverts commit ce34314.

Signed-off-by: Craig Perkins <[email protected]>

* Add trailing slash

Signed-off-by: Craig Perkins <[email protected]>

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

Signed-off-by: Craig Perkins <[email protected]>

---------

Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
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