You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: e2e/README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ Ok, you want to contribute the tests for a new integration module. Then you have
52
52
- A `configuration file`, in YAML format, with any Metricbeat configuration that is specific to the module.
53
53
54
54
### Feature files
55
-
We will create use cases for the module in a separate `.feature` file, ideally named after module's name (i.e. _apache.feature_). This feature file is a Cucumber requirement, that will be parsed by the test runner and matched against the Golang code implementing the tests.
55
+
We will create use cases for the module in a separate `.feature` file, ideally named after module's name (i.e. _apache.feature_), and located under the `metricbeat` features directory. This feature file is a Cucumber requirement, that will be parsed by the test runner and matched against the Golang code implementing the tests.
56
56
57
57
```cucumber
58
58
@apache
@@ -61,15 +61,17 @@ Feature: As a Metricbeat developer I want to check that the Apache module works
61
61
Scenario Outline: Check module is sending metrics to Elasticsearch without errors
62
62
Given Apache "<apache_version>" is running for metricbeat
63
63
And metricbeat is installed and configured for Apache module
64
+
And metricbeat waits "20" seconds for the service
65
+
When metricbeat runs for "20" seconds
64
66
Then there are "Apache" events in the index
65
67
And there are no errors in the index
66
68
Examples:
67
69
| apache_version |
68
-
| 2.2 |
69
-
| 2.4 |
70
+
| 2.4.12 |
71
+
| 2.4.20 |
70
72
```
71
73
72
-
>You should write as many scenarios as you considering, covering different use cases in each scenario, taking care of duplicated steps that could be reused by other module.
74
+
>You should write as many scenarios as you consider, covering different use cases in each scenario, taking care of duplicated steps that could be reused by other module.
73
75
74
76
The anatomy of a feature file is:
75
77
@@ -110,8 +112,8 @@ or simply run as the CI does:
110
112
111
113
```shell
112
114
$ export GO_VERSION=1.12.7 # exports which GIMME version to use
113
-
$ export STACK_VERSION=7.5.0 # exports stack version as runtime
114
-
$ export METRICBEAT_VERSION=7.5.0 # exports metricbeat version
115
+
$ export STACK_VERSION=7.6.0 # exports stack version as runtime
116
+
$ export METRICBEAT_VERSION=7.6.0 # exports metricbeat version
115
117
$ #export FEATURE=redis # exports which feature to run (default 'all')
0 commit comments