Skip to content

Commit

Permalink
Improve documentation for system tests (#249)
Browse files Browse the repository at this point in the history
* Fix: describe test-default-config.yml

* Hint
  • Loading branch information
mtojek authored Feb 16, 2021
1 parent f8106b6 commit e481ad2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/howto/system_testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ Notice the use of the `TEST_RUN_ID` variable. It contains a unique ID, which can

### Test case definition

Next, we must define configuration for each data stream that we want to system test.
Next, we must define at least one configuration for each data stream that we want to system test. There can be multiple test cases defined for the same data stream.

_Hint: if you plan to define only one test case, you can consider the filename `test-default-config.yml`._

```
<package root>/
Expand All @@ -129,10 +131,10 @@ Next, we must define configuration for each data stream that we want to system t
_dev/
test/
system/
config.yml
test-<test_name>-config.yml
```

The `config.yml` file allows you to define values for package and data stream-level variables. For example, the `apache/access` data stream's `config.yml` is shown below.
The `test-<test_name>-config.yml` file allows you to define values for package and data stream-level variables. For example, the `apache/access` data stream's `test-access-log-config.yml` is shown below.

```
vars: ~
Expand All @@ -154,7 +156,7 @@ whose input type matches the `input` value will be tested. By default, the first

#### Placeholders

The `SERVICE_LOGS_DIR` placeholder is not the only one available for use in a data stream's `config.yml` file. The complete list of available placeholders is shown below.
The `SERVICE_LOGS_DIR` placeholder is not the only one available for use in a data stream's `test-<test_name>-config.yml` file. The complete list of available placeholders is shown below.

| Placeholder name | Data type | Description |
| --- | --- | --- |
Expand All @@ -164,7 +166,7 @@ The `SERVICE_LOGS_DIR` placeholder is not the only one available for use in a da
| `Logs.Folder.Agent` | string | Path to integration service's logs folder, as addressable by the Agent. |
| `SERVICE_LOGS_DIR` | string | Alias for `Logs.Folder.Agent`. Provided as a convenience. |

Placeholders used in the `config.yml` must be enclosed in `{{` and `}}` delimiters, per Handlebars syntax.
Placeholders used in the `test-<test_name>-config.yml` must be enclosed in `{{` and `}}` delimiters, per Handlebars syntax.

## Running a system test

Expand Down

0 comments on commit e481ad2

Please sign in to comment.