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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test preconfigured agent policies and output (#1680)
(cherry picked from commit 56ce765)
- Loading branch information
Showing
5 changed files
with
139 additions
and
36 deletions.
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
34 changes: 10 additions & 24 deletions
34
e2e/_suites/fleet/features/preconfigured_policies.feature
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,23 @@ | ||
@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 | ||
And the agent is enrolled into "Test preconfigured policy" policy | ||
|
||
@centos | ||
Examples: Centos | ||
| os | | ||
| centos | | ||
# Seems to be flaky https://github.com/elastic/e2e-testing/issues/1516 | ||
# @centos | ||
# Examples: Centos | ||
# | os | | ||
# | centos | | ||
|
||
@debian | ||
Examples: Debian | ||
| 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 | |
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