Skip to content

Conversation

@azasypkin
Copy link
Member

@azasypkin azasypkin commented Mar 25, 2021

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

@azasypkin azasypkin added chore release_note:skip Skip the PR/issue when compiling release notes Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// v7.13.0 labels Mar 25, 2021
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);
Copy link
Member Author

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....

Copy link
Member

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

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done in 04413a3

@azasypkin azasypkin marked this pull request as ready for review March 25, 2021 13:57
@azasypkin azasypkin requested a review from a team as a code owner March 25, 2021 13:57
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-security (Team:Security)

@azasypkin azasypkin added the auto-backport Deprecated - use backport:version if exact versions are needed label Mar 26, 2021
Copy link
Member

@legrego legrego left a 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!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@azasypkin azasypkin merged commit 796f679 into elastic:master Mar 26, 2021
@azasypkin azasypkin deleted the issue-xxx-new-es-client-tests branch March 26, 2021 17:49
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 26, 2021
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.x / #95561

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Mar 26, 2021
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed chore release_note:skip Skip the PR/issue when compiling release notes Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// v7.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants