-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Migrate away from legacyEs service in tests.
#95402
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
Migrate away from legacyEs service in tests.
#95402
Conversation
| expect(containsSpace2).to.eql(false); | ||
| }); | ||
| const space2OnlyObjExists = docs.some((x) => x._id === CASES.SPACE_2_ONLY); | ||
| const space2OnlyObjExists = docs.some((x) => x._id === CASES.SPACE_2_ONLY.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: if tests pass with this change then it's probably not used at all....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's hard to prove a negative :). I think we should adjust the query above on line 146 to have add the size parameter, so that we at least attempt to retrieve more than 10 objects. ES won't retrieve more than 10 without that parameter set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me try to make this adjustment then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 04413a3
|
Pinging @elastic/kibana-security (Team:Security) |
legrego
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on green CI!
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Summary
There were a number tests we own that still used legacy ES client. In this PR I migrate these tests to a new client.
Related to: #83910