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] Unskip test for agentless integrations #184308

Merged
merged 4 commits into from
May 28, 2024

Conversation

criamico
Copy link
Contributor

Fixes #184191

Summary

With merge of #183045 some tests related to agentless started failing in main. I realized that there was a missing condition in a form, so this PR adds that condition and fixes the failing test.

Note: the test wasn't flaky, it was failing on each run after merge. For some reason it never failed on the branch, however there was a concurrent merge of another PR that touched the same UI and that could have something to do with it.

Checklist

@criamico criamico added release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.15.0 labels May 27, 2024
@criamico criamico self-assigned this May 27, 2024
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@criamico
Copy link
Contributor Author

@elasticmachine merge upstream

@criamico criamico marked this pull request as ready for review May 27, 2024 14:11
@criamico criamico requested a review from a team as a code owner May 27, 2024 14:11
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

if (agentCount !== 0 && !isAgentlessIntegration(packageInfo) && formState !== 'CONFIRM') {
if (
agentCount !== 0 &&
!(isAgentlessIntegration(packageInfo) || isAgentlessPackagePolicy(packagePolicy)) &&
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noticed that in the previous PR I forgot to add isAgentlessPackagePolicy(packagePolicy), fixing it now.

}
if (path === '/api/fleet/agent_download_sources') {
return Promise.resolve({ data: { items: [] } });
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was getting an error regarding these endpoint not being mocked.

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.

LGTM 🚀

@criamico
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 1.3MB 1.3MB +7.0B

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

cc @criamico

@criamico criamico merged commit ca3ada6 into elastic:main May 28, 2024
20 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label May 28, 2024
@criamico criamico deleted the 184191_unskipt_agentless_test branch May 28, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.15.0
Projects
None yet
6 participants