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

Onboard search AD and search monitor tools to security-enabled IT #225

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Feb 12, 2024

Description

Onboards SearchAnomalyDetectorsTool and SearchMonitorsTool to the security-enabled integ tests. These were originally skipped due to system index manipulation logic by the REST client that was blocked by the security plugin in security-enabled tests. This PR removes that system index manipulation logic for these particular tools, and removes the skipped files in build.gradle. Instead of deletion and re-creation of system indices, we now just delete the created resources on a per-test basis, and run the tests in a particular order to still test the no-system-index case. Helper fns added to support this.

Note that we still have to skip for SearchAnomalyResultsTool and SearchAlertsTool. That's because there is no fast way to populate results to search on without direct system index manipulation. Added a comment to clarify.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • 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.

Copy link

codecov bot commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (499528f) 81.69% compared to head (6aa75d1) 81.69%.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #225   +/-   ##
=========================================
  Coverage     81.69%   81.69%           
  Complexity      206      206           
=========================================
  Files            13       13           
  Lines          1060     1060           
  Branches        141      141           
=========================================
  Hits            866      866           
  Misses          140      140           
  Partials         54       54           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ohltyler ohltyler merged commit 4cecb3d into opensearch-project:main Feb 13, 2024
21 checks passed
@ohltyler ohltyler deleted the sec-tools branch February 13, 2024 17:18
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 13, 2024
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 4cecb3d)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ohltyler pushed a commit that referenced this pull request Feb 13, 2024
(cherry picked from commit 4cecb3d)

Signed-off-by: Tyler Ohlsen <[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>
yuye-aws pushed a commit to yuye-aws/skills that referenced this pull request Apr 26, 2024
…-project#225) (opensearch-project#226)

(cherry picked from commit 4cecb3d)

Signed-off-by: Tyler Ohlsen <[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>
Signed-off-by: yuye-aws <[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.

3 participants