-
Notifications
You must be signed in to change notification settings - Fork 42
Test preconfigured agent policies and output #1680
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
This is a great PR @nchaulet!! Thanks for taking the time in contributing the tests 👏 As soon you mark it as ready for review, I'll accept it, as it LGTM. Please see my previous comments, but they are non-functional related. |
/test |
Examples: Centos | ||
| os | | ||
| centos | | ||
And the agent run the "Test preconfigured policy" policy |
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.
Wdyt about renaming the step to:
And the agent uses the "Test preconfigured policy" policy
Using run seems very low-level, and we must be close to the business when defining steps. Unless running a policy is part of the vocabulary, of course
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.
Oh I see, we are using the agent uses "A" policy
for setting the policy, and the agent runs the "A" policy
for checking it indeed was produced, right?
If this is business-correct, then I'm OK too 😃
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.
I can probably change the use
step by the agent uses enrollment token from "A"
and run
step by something like the agent is enrolled into "A" policy
it's probably less confusion
I do not think we should target 7.15 version as the preconfigured output only appear in 7.16 |
And a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the "elastic-agent" process is in the "started" state on the host | ||
Then the agent is listed in Fleet as "online" | ||
And the agent run the "Test preconfigured policy" policy | ||
And the agent is enrolled into "Test preconfigured policy" policy |
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.
I love this step name! 😄
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.
I think we can merge it once the end-of-file issue in the feature file is fixed (pre-commit run end-of-file-fixer --files ./...
).
The other 4 errors appeared today and seems related to heartbeat
Co-authored-by: Manuel de la Peña <[email protected]>
/test |
Closes #1680 |
(cherry picked from commit 56ce765)
(cherry picked from commit 56ce765) Co-authored-by: Nicolas Chaulet <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Manuel de la Peña <[email protected]>
The backport added a reference to code implemented in: Test preconfigured agent policies and output (#1680) But this PR was not backported to 7.15 because there is no support to preconfigured policies.
* Support running tests in full VM's (#1740) * Support running e2e in VM's Signed-off-by: Adam Stokes <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]> (cherry picked from commit 8a94011) # Conflicts: # .ci/.e2e-tests.yaml # .ci/Jenkinsfile # .gitignore # e2e/_suites/fleet/features/fleet_mode_agent.feature # e2e/_suites/fleet/features/preconfigured_policies.feature # e2e/_suites/fleet/fleet.go # go.sum * Fix conflicts Signed-off-by: Adam Stokes <[email protected]> * fix: remove not implemented function call The backport added a reference to code implemented in: Test preconfigured agent policies and output (#1680) But this PR was not backported to 7.15 because there is no support to preconfigured policies. Co-authored-by: Adam Stokes <[email protected]> Co-authored-by: Manuel de la Peña <[email protected]>
Description
Related to elastic/kibana#114285
I changed the preconfigured policies test this test:
I made some change to the test runner: