Skip to content

Commit

Permalink
[APM] Update docs on running API tests (#70765)
Browse files Browse the repository at this point in the history
* [APM] Update docs on running API tests

* Update x-pack/plugins/apm/readme.md

Co-authored-by: Cauê Marcondes <[email protected]>

* Update x-pack/plugins/apm/readme.md

Co-authored-by: Cauê Marcondes <[email protected]>
  • Loading branch information
sorenlouv and cauemarcondes authored Jul 6, 2020
1 parent 2c27bad commit d12a80e
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions x-pack/plugins/apm/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,37 +81,32 @@ For debugging access Elasticsearch on http://localhost:9220` (elastic/changeme)
### API integration tests

Our tests are separated in two suites: one suite runs with a basic license, and the other
with a trial license (the equivalent of gold+). This requires separate test servers and test runs.
with a trial license (the equivalent of gold+). This requires separate test servers and test runners.

**Start server**

Basic:
**Basic**

```
# Start server
node scripts/functional_tests_server --config x-pack/test/apm_api_integration/basic/config.ts
```

Trial:
```
node scripts/functional_tests_server --config x-pack/test/apm_api_integration/trial/config.ts
# Run tests
node scripts/functional_test_runner --config x-pack/test/apm_api_integration/basic/config.ts
```

**Run tests**
The API tests for "basic" are located in `x-pack/test/apm_api_integration/basic/tests`.

Basic:
**Trial**

```
node scripts/functional_test_runner --config x-pack/test/apm_api_integration/basic/config.ts
```

Trial:
# Start server
node scripts/functional_tests_server --config x-pack/test/apm_api_integration/trial/config.ts
```
# Run tests
node scripts/functional_test_runner --config x-pack/test/apm_api_integration/trial/config.ts
```

APM tests are located in `x-pack/test/apm_api_integration`.
The API tests for "trial" are located in `x-pack/test/apm_api_integration/trial/tests`.

For debugging access Elasticsearch on http://localhost:9220` (elastic/changeme)

### Linting
Expand Down

0 comments on commit d12a80e

Please sign in to comment.