forked from elastic/e2e-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
gherkin syntax changes and steps rework #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mdelapenya
merged 2 commits into
mdelapenya:124-ingest-management
from
EricDavisX:patch-3
Jun 8, 2020
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
66 changes: 34 additions & 32 deletions
66
e2e/_suites/ingest-manager/features/ingest-manager.feature
This file contains hidden or 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,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 | ||
| When the agent is listed in Fleet as online | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
EricDavisX marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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 | ||
EricDavisX marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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 | ||
mdelapenya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 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 | ||
EricDavisX marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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.
How would you see this as a When? I see it as the main action in this test