Skip to content

Commit

Permalink
Migrate Custom threshold duplicated tests to the deployment agnostic …
Browse files Browse the repository at this point in the history
…framework (elastic#198691)

Closes elastic#183378
Closes elastic#179095

## Summary
This PR moves the Custom threshold rule duplicated API integration tests
to the deployment agnostic test.

## How to run

To run serverless
```
node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts
node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/serverless/oblt.serverless.config.ts --grep="Custom Threshold rule"
```

To run stateful
```
node scripts/functional_tests_server --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts
node scripts/functional_test_runner --config x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts --grep="Custom Threshold rule"
```

### TODO

- [x] Test in MKI before merging


#### How to run tests on MKI

According to this
[discussion](elastic/observability-dev#3519 (comment)),
we should test in MKI environment before merging. For details on how to
run in MKI, see [this section of the
document](https://docs.google.com/document/d/1tiax7xoDYwFXYZjRTgVKkVMjN-SQzBWk4yn1JY6Z5UY/edit#heading=h.ece2z8p74izh)
and [this
readme](https://github.com/elastic/kibana/blob/main/x-pack/test_serverless/README.md#run-tests-on-mki).

---------

Co-authored-by: kibanamachine <[email protected]>
  • Loading branch information
maryam-saeidi and kibanamachine authored Nov 6, 2024
1 parent 436405f commit b585ca6
Show file tree
Hide file tree
Showing 25 changed files with 422 additions and 1,619 deletions.

This file was deleted.

This file was deleted.

Loading

0 comments on commit b585ca6

Please sign in to comment.