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.
* work for issue #379 - adding back rpm and deb tests (#439) * adding back rpm and deb tests * arbitrary change to trigger ci tests * fix linting * fixing more linting * fully exploring gherkin linting apparently * final linting fix * updating ci suites to match new tags * reset indention w feedback passes linting locally * adding skip support and skipping rpm and deb tests * back to fixing linting for tags now Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com> * fix: use proper gherkin comments (#519) Co-authored-by: Eric Davis <eric.davis@elastic.co>
- Loading branch information
1 parent
a9188c9
commit 4291ad8
Showing
3 changed files
with
57 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,101 +1,115 @@ | ||
@fleet_mode | ||
@fleet_mode_agent | ||
Feature: Fleet Mode Agent | ||
Scenarios for the Agent in Fleet mode connecting to Fleet application. | ||
|
||
@enroll | ||
@install | ||
Scenario Outline: Deploying the <os> agent | ||
When a "<os>" agent is deployed to Fleet with "<installer>" installer | ||
Then the "elastic-agent" process is in the "started" state on the host | ||
And the "filebeat" process is in the "started" state on the host | ||
Given 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 "filebeat" process is in the "started" state on the host | ||
And the "metricbeat" process is in the "started" state on the host | ||
And the agent is listed in Fleet as "online" | ||
And system package dashboards are listed in Fleet | ||
Examples: | ||
| os | installer | | ||
| centos | tar | | ||
| debian | tar | | ||
| os | | ||
| centos | | ||
| debian | | ||
|
||
# reset the following tag when unskipping: enroll | ||
@skip | ||
Scenario Outline: Deploying the <os> agent with enroll and then run on rpm and deb | ||
Given a "<os>" agent is deployed to Fleet with "systemd" installer | ||
When the "elastic-agent" process is in the "started" state on the host | ||
Then the "filebeat" process is in the "started" state on the host | ||
And the "metricbeat" process is in the "started" state on the host | ||
And the agent is listed in Fleet as "online" | ||
And system package dashboards are listed in Fleet | ||
Examples: | ||
| os | | ||
| centos | | ||
| debian | | ||
|
||
@stop-agent | ||
Scenario Outline: Stopping the <os> agent stops backend processes | ||
Given a "<os>" agent is deployed to Fleet with "<installer>" installer | ||
Given a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the "elastic-agent" process is "stopped" on the host | ||
Then the "filebeat" process is in the "stopped" state on the host | ||
And the "metricbeat" process is in the "stopped" state on the host | ||
Examples: | ||
| os | installer | | ||
| centos | tar | | ||
| debian | tar | | ||
| os | | ||
| centos | | ||
| debian | | ||
|
||
@restart-agent | ||
Scenario Outline: Restarting the installed <os> agent | ||
Given a "<os>" agent is deployed to Fleet with "<installer>" installer | ||
Given a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the "elastic-agent" process is "restarted" on the host | ||
And the "filebeat" process is in the "started" state on the host | ||
Then the "filebeat" process is in the "started" state on the host | ||
And the "metricbeat" process is in the "started" state on the host | ||
And the agent is listed in Fleet as "online" | ||
Examples: | ||
| os | installer | | ||
| centos | tar | | ||
| debian | tar | | ||
| os | | ||
| centos | | ||
| debian | | ||
|
||
@restart-host | ||
Scenario Outline: Restarting the <os> host with persistent agent restarts backend processes | ||
Given a "<os>" agent is deployed to Fleet with "<installer>" installer | ||
Given a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the host is restarted | ||
Then the "elastic-agent" process is in the "started" state on the host | ||
And the "filebeat" process is in the "started" state on the host | ||
And the "metricbeat" process is in the "started" state on the host | ||
Examples: | ||
| os | installer | | ||
| centos | tar | | ||
| debian | tar | | ||
| os | | ||
| centos | | ||
| debian | | ||
|
||
@unenroll | ||
Scenario Outline: Un-enrolling the <os> agent | ||
Given a "<os>" agent is deployed to Fleet with "<installer>" installer | ||
Given a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the agent is un-enrolled | ||
Then the "elastic-agent" process is in the "started" state on the host | ||
And the agent is listed in Fleet as "inactive" | ||
And the "filebeat" process is in the "stopped" state on the host | ||
And the "metricbeat" process is in the "stopped" state on the host | ||
Examples: | ||
| os | installer | | ||
| centos | tar | | ||
| debian | tar | | ||
| os | | ||
| centos | | ||
| debian | | ||
|
||
@reenroll | ||
Scenario Outline: Re-enrolling the <os> agent | ||
Given a "<os>" agent is deployed to Fleet with "<installer>" installer | ||
Given a "<os>" agent is deployed to Fleet with "tar" installer | ||
And the agent is un-enrolled | ||
And the "elastic-agent" process is "stopped" on the host | ||
When the agent is re-enrolled on the host | ||
And the "elastic-agent" process is "started" on the host | ||
Then the agent is listed in Fleet as "online" | ||
Then the "elastic-agent" process is "started" on the host | ||
And the agent is listed in Fleet as "online" | ||
Examples: | ||
| os | installer | | ||
| centos | tar | | ||
| debian | tar | | ||
| os | | ||
| centos | | ||
| debian | | ||
|
||
@revoke-token | ||
Scenario Outline: Revoking the enrollment token for the <os> agent | ||
Given a "<os>" agent is deployed to Fleet with "<installer>" installer | ||
Given a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the enrollment token is revoked | ||
Then an attempt to enroll a new agent fails | ||
Examples: | ||
| os | installer | | ||
| centos | tar | | ||
| debian | tar | | ||
| os | | ||
| centos | | ||
| debian | | ||
|
||
@uninstall-host | ||
Scenario Outline: Un-installing the installed <os> agent | ||
Given a "<os>" agent is deployed to Fleet with "<installer>" installer | ||
Given a "<os>" agent is deployed to Fleet with "tar" installer | ||
When the "elastic-agent" process is "uninstalled" on the host | ||
Then the "elastic-agent" process is in the "stopped" state on the host | ||
And the "filebeat" process is in the "stopped" state on the host | ||
And the "metricbeat" process is in the "stopped" state on the host | ||
And the file system Agent folder is empty | ||
And the agent is listed in Fleet as "offline" | ||
Examples: | ||
| os | installer | | ||
| centos | tar | | ||
| debian | tar | | ||
| os | | ||
| centos | | ||
| 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