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

[Security Solution] fix tests for unique policy names #118248

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

joeypoon
Copy link
Member

Summary

fixes endpoint tests that were failing due to policy names not being unique. unique policies names were introduced in #115212. needs to be back-ported into 7.16 for #117380.

Checklist

For maintainers

@joeypoon joeypoon added auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v7.16.0 v8.0.0 v8.1.0 labels Nov 10, 2021
@joeypoon joeypoon requested a review from a team November 10, 2021 21:13
@@ -139,12 +140,13 @@ export async function indexEndpointHostDocs({

if (enrollFleet) {
const { id: appliedPolicyId, name: appliedPolicyName } = hostMetadata.Endpoint.policy.applied;
const uniqueAppliedPolicyName = `${appliedPolicyName}-${uuid.v4()}`;
Copy link
Member Author

@joeypoon joeypoon Nov 10, 2021

Choose a reason for hiding this comment

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

I think ideally we do this within the data generator itself but since this is blocking us from unskipping our tests, I want to make the smallest changes possible for this PR.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@joeypoon joeypoon marked this pull request as ready for review November 10, 2021 22:45
@joeypoon joeypoon requested a review from a team as a code owner November 10, 2021 22:45
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt)

@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
8.0
7.16

The backport PRs will be merged automatically after passing CI.

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 release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v7.16.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants