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.
Wdyt about renaming the step to:
And the agent uses the "Test preconfigured policy" policyUsing 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.
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.
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 |
| 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.
I love this step name! 😄
Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
|
/test |
|
Closes #1680 |
(cherry picked from commit 56ce765)
(cherry picked from commit 56ce765) Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
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 <51892+adam-stokes@users.noreply.github.com> Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com> (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 <51892+adam-stokes@users.noreply.github.com> * 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 <51892+adam-stokes@users.noreply.github.com> Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
Description
Related to elastic/kibana#114285
I changed the preconfigured policies test this test:
I made some change to the test runner: