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

[Backport 2.x] Add Alias Permission in Security Tests #1247

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link

Backport b9eff78 from #1245.

The SecureADRestIT.testCreateAnomalyDetectorWithCustomResultIndex test failed because the cat user did not have the necessary permissions to create an alias, as the current custom index name is an alias. This PR addresses this issue by adding the required alias permission.

Additionally, this PR includes other tests to improve test coverage.

Testing:
* Verified that all security tests pass.

Signed-off-by: Kaituo Li <[email protected]>
(cherry picked from commit b9eff78)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.76%. Comparing base (138dbd0) to head (de38044).
Report is 3 commits behind head on 2.x.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #1247      +/-   ##
============================================
+ Coverage     71.40%   71.76%   +0.35%     
- Complexity     4878     4890      +12     
============================================
  Files           518      518              
  Lines         22931    22879      -52     
  Branches       2260     2245      -15     
============================================
+ Hits          16373    16418      +45     
+ Misses         5509     5426      -83     
+ Partials       1049     1035      -14     
Flag Coverage Δ
plugin 71.76% <ø> (+0.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 14 files with indirect coverage changes

@kaituo kaituo merged commit 5630772 into 2.x Jun 13, 2024
23 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant