Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 34 additions & 32 deletions e2e/_suites/ingest-manager/features/ingest-manager.feature
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
@ingest
Feature: Enable Fleet user and create initial Kibana setup
Feature: Enable Fleet and Deploy Agent

@enroll
Scenario: Enrolling an agent
Given there is a "Fleet" user in Kibana
And the "Fleet" Kibana setup has been created
When the agent binary is installed in the target host
Then the dashboards for the agent are present in Elasticsearch
And the agent shows up in Kibana
Scenario: Deploying an agent
Given the "Fleet" Kibana setup has been executed
And an agent is deployed to Fleet
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you see this as a When? I see it as the main action in this test

When the agent is listed in Fleet as online
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Therefore, this would be an And, and the below would be Ands

Then system package dashboards are listed in Fleet
And new documents are inserted into Elasticsearch

@start-agent
Scenario: Starting the agent starts backend processes
Given an agent is deployed to Fleet
Then filebeat is started
And metricbeat is started

@stop-agent
Scenario: Stopping the agent stops backend processes
Given an agent is deployed to Fleet
When the agent is stopped on the host
Then filebeat is stopped
And metricbeat is stopped

@unenroll
Scenario: Un-enrolling an agent
Given an agent is enrolled
When the agent is un-enrolled from Kibana
Then no new data shows up in Elasticsearc locations using the enrollment token
Given an agent is deployed to Fleet
When the agent is un-enrolled
Then the agent is not listed as online in Fleet
And no new documents are inserted into Elasticsearch

@reenroll
Scenario: Enrolling, un-enrolling and re-enrolling an agent
Scenario: Re-enrolling an agent
Given an agent is enrolled
And the agent is un-enrolled from Kibana
When the agent is re-enrolled from the host
And the agent runs from the host
Then the agent shows up in Kibana
And the agent is un-enrolled
And the Agent is stopped on the host
When the agent is re-enrolled on the host
And the agent is run on the host
Then the agent is listed in Fleet as online
And new documents are inserted into Elasticsearch

@revoke-token
Scenario: Revoking the enrollment token for an agent
Given an agent is enrolled
When the enrollment token is revoked
Then it's not possible to use the token to enroll more agents
And the enrolled agent continues to work

@start-agent
Scenario: Starting the agent starts backend processes
When the agent is started in the host
Then filebeat is started
And metricbeat is started
And endpoint is started

@stop-agent
Scenario: Stopping the agent stops backend processes
Given an agent is started in the host
When the agent is stopped in the host
Then filebeat is stopped
And metricbeat is stopped
And endpoint is stopped
And new documents are inserted into Elasticsearch
And the agent is un-enrolled and stopped on the host
Then the agent cannot be re-enrolled with the same command