Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Revert "work for issue #379 - adding back rpm and deb tests (#439)"
Browse files Browse the repository at this point in the history
This reverts commit a30e1f4.
  • Loading branch information
EricDavisX authored Dec 2, 2020
1 parent 25c6970 commit 09fbc41
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 56 deletions.
6 changes: 3 additions & 3 deletions .ci/.e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ SUITES:
- suite: "helm"
tags: "metricbeat"
- suite: "fleet"
tags: "agent_endpoint_integration && ~skip"
tags: "agent_endpoint_integration"
- suite: "fleet"
tags: "stand_alone_agent && ~skip"
tags: "stand_alone_mode"
- suite: "fleet"
tags: "fleet_mode_agent && ~skip"
tags: "fleet_mode"
- suite: "metricbeat"
tags: "integrations && apache"
- suite: "metricbeat"
Expand Down
91 changes: 39 additions & 52 deletions e2e/_suites/fleet/features/fleet_mode_agent.feature
Original file line number Diff line number Diff line change
@@ -1,114 +1,101 @@
@fleet_mode_agent
@fleet_mode
Feature: Fleet Mode Agent
Scenarios for the Agent in Fleet mode connecting to Fleet application.

@install
@enroll
Scenario Outline: Deploying the <os> agent
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 |
| centos |
| debian |

@skip // reset the following tag when unskipping: enroll
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
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
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 |
| os | installer |
| centos | tar |
| debian | tar |

@stop-agent
Scenario Outline: Stopping the <os> agent stops backend processes
Given a "<os>" agent is deployed to Fleet with "tar" installer
Given a "<os>" agent is deployed to Fleet with "<installer>" 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 |
| centos |
| debian |
| os | installer |
| centos | tar |
| debian | tar |

@restart-agent
Scenario Outline: Restarting the installed <os> agent
Given a "<os>" agent is deployed to Fleet with "tar" installer
Given a "<os>" agent is deployed to Fleet with "<installer>" installer
When the "elastic-agent" process is "restarted" on the host
Then the "filebeat" 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
And the agent is listed in Fleet as "online"
Examples:
| os |
| centos |
| debian |
| os | installer |
| centos | tar |
| debian | tar |

@restart-host
Scenario Outline: Restarting the <os> host with persistent agent restarts backend processes
Given a "<os>" agent is deployed to Fleet with "tar" installer
Given a "<os>" agent is deployed to Fleet with "<installer>" 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 |
| centos |
| debian |
| os | installer |
| centos | tar |
| debian | tar |

@unenroll
Scenario Outline: Un-enrolling the <os> agent
Given a "<os>" agent is deployed to Fleet with "tar" installer
Given a "<os>" agent is deployed to Fleet with "<installer>" 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 |
| centos |
| debian |
| os | installer |
| centos | tar |
| debian | tar |

@reenroll
Scenario Outline: Re-enrolling the <os> agent
Given a "<os>" agent is deployed to Fleet with "tar" installer
Given a "<os>" agent is deployed to Fleet with "<installer>" 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
Then the "elastic-agent" process is "started" on the host
And the agent is listed in Fleet as "online"
And the "elastic-agent" process is "started" on the host
Then the agent is listed in Fleet as "online"
Examples:
| os |
| centos |
| debian |
| os | installer |
| centos | tar |
| debian | tar |

@revoke-token
Scenario Outline: Revoking the enrollment token for the <os> agent
Given a "<os>" agent is deployed to Fleet with "tar" installer
Given a "<os>" agent is deployed to Fleet with "<installer>" installer
When the enrollment token is revoked
Then an attempt to enroll a new agent fails
Examples:
| os |
| centos |
| debian |
| os | installer |
| centos | tar |
| debian | tar |

@uninstall-host
Scenario Outline: Un-installing the installed <os> agent
Given a "<os>" agent is deployed to Fleet with "tar" installer
Given a "<os>" agent is deployed to Fleet with "<installer>" 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 |
| centos |
| debian |
| os | installer |
| centos | tar |
| debian | tar |
2 changes: 1 addition & 1 deletion e2e/_suites/fleet/features/stand_alone_agent.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@stand_alone_agent
@stand_alone_mode
Feature: Stand-alone Agent
Scenarios for a standalone mode Elastic Agent in Fleet, where an Elasticseach
and a Kibana instances are already provisioned, so that the Agent is able to communicate
Expand Down

0 comments on commit 09fbc41

Please sign in to comment.