This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Test preconfigured agent policies and output #1680
Merged
Merged
Changes from 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
30caca2
Test preconfiguration
nchaulet acbcbf1
Add to CI
nchaulet b4c5fa1
add to CI take 2
nchaulet ecc07cc
Fix tests
nchaulet d343cba
Fix after code review
nchaulet a3fe56c
Update e2e/_suites/fleet/features/preconfigured_policies.feature
nchaulet 36bd661
Merge branch 'master' into feature-test-preconfigure
nchaulet 93371c9
comment centos
nchaulet b16d6b8
Merge branch 'master' into feature-test-preconfigure
mdelapenya 938da65
Merge branch 'master' into feature-test-preconfigure
mdelapenya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,22 @@ | ||
@policies | ||
@preconfigured_policies | ||
Feature: Preconfigured Policies | ||
Scenarios for Preconfigured Policies | ||
|
||
Scenario Outline: Example using Kibana with custom policy | ||
Scenario Outline: Enrolling an agent in a preconfigured policy | ||
Given kibana uses "preconfigured-policies" profile | ||
And a "<os>" agent is deployed to Fleet with "tar" installer | ||
And agent uses enrollment token from "Test preconfigured policy" policy | ||
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 system package dashboards are listed in Fleet | ||
|
||
@centos | ||
Examples: Centos | ||
| os | | ||
| centos | | ||
And the agent is enrolled into "Test preconfigured policy" policy | ||
|
||
|
||
@debian | ||
Examples: Debian | ||
nchaulet marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| os | | ||
| debian | | ||
|
||
Scenario Outline: Example using Kibana with default config | ||
Given kibana uses "default" profile | ||
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 system package dashboards are listed in Fleet | ||
|
||
@centos | ||
Examples: Centos | ||
| os | | ||
| centos | | ||
|
||
@debian | ||
Examples: Debian | ||
| os | | ||
| debian | | ||
| centos | | ||
nchaulet marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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! 😄