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

[Fleet] Add test coverage for package policy variable overrides #113270

Merged

Conversation

kpollich
Copy link
Member

@kpollich kpollich commented Sep 28, 2021

Summary

Resolves #113248

Add some baseline test coverage for overridePackageInputs method that ensures our variable override logic works correctly. I verified the test's usefulness by reverting @jen-huang's change in #113204 and ensuring that the test failed.

@kpollich kpollich added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 v7.15.1 labels Sep 28, 2021
@kpollich kpollich self-assigned this Sep 28, 2021
@kpollich kpollich requested a review from a team as a code owner September 28, 2021 14:13
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@kpollich
Copy link
Member Author

Jest warned me about some obsolete snapshots in the Fleet project as well, so I had it clean those up. If that causes issues in CI/CD I'll revert those deletions.

Copy link
Member

@nchaulet nchaulet left a comment

Choose a reason for hiding this comment

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

🚀

@kpollich kpollich enabled auto-merge (squash) September 28, 2021 15:02
@kpollich
Copy link
Member Author

@elasticmachine merge upstream

@nchaulet
Copy link
Member

@kpollich Looks like the CI needed these snapshots

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @kpollich

@kpollich kpollich merged commit acd29ed into elastic:master Sep 28, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 28, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
7.x
7.15 Commit could not be cherrypicked due to conflicts

Successful backport PRs will be merged automatically after passing CI.

To backport manually run:
node scripts/backport --pr 113270

kpollich added a commit to kpollich/kibana that referenced this pull request Sep 28, 2021
# Conflicts:
#	x-pack/plugins/fleet/server/services/package_policy.test.ts
kibanamachine added a commit that referenced this pull request Sep 28, 2021
Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
kpollich added a commit that referenced this pull request Sep 28, 2021
# Conflicts:
#	x-pack/plugins/fleet/server/services/package_policy.test.ts
@dikshachauhan-qasource
Copy link

Hi @kpollich

Can you please share more details with us on how to validate above PR.

Thanks
QAS

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:Fleet Team label for Observability Data Collection Fleet team v7.15.1 v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Add Test coverage for preconfiguration variable override logic.
5 participants