Skip to content

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Sep 3, 2025

Description

This PR adds a new mapping to the ISM system indices for user_attributes that was added in opensearch-project/common-utils#827

This PR runs tests with a user that has custom attributes and verifies that persisting a copy of the user works correctly in ISM system indices.

Related Issues

Working towards a solution for opensearch-project/alerting#1829

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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]>
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.30%. Comparing base (bba644a) to head (5e4ba48).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1484      +/-   ##
==========================================
+ Coverage   76.27%   76.30%   +0.03%     
==========================================
  Files         375      375              
  Lines       18772    18772              
  Branches     2366     2366              
==========================================
+ Hits        14318    14324       +6     
+ Misses       3218     3213       -5     
+ Partials     1236     1235       -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
val explainResponseOpendistroPolicyIdSetting = "index.opendistro.index_state_management.policy_id"
val explainResponseOpenSearchPolicyIdSetting = "index.plugins.index_state_management.policy_id"

@Before
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just do this in one test? If the goal is to make sure an user's custom attribute can be persisted and updated in ISM system index?
Current way seems will apply to all the tests.

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.

2 participants