elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.51k stars 8.05k forks source link

[Obs-Ux-Management] Migrate api integration tests to deployment agnostic solution #183263

Open mgiota opened 2 months ago

mgiota commented 2 months ago

πŸ’ Summary

After https://github.com/elastic/kibana/pull/183113 is merged, we have a way to write deployment agnostic tests for SLO and o11y alerting features.

Test Type ESS Serverless Notes
Custom threshold rule type Alerting βœ… βœ… Duplicate tests
Serverless: x-pack/test_serverless/api_integration/test_suites/observability/custom_threshold_rule ESS: x-pack/test/alerting_api_integration/observability/custom_threshold_rule
Metric threshold rule type Alerting βœ… ❌ ESS: x-pack/test/alerting_api_integration/observability/metric_threshold_rule.ts
ES query rule type Alerting ❌ βœ… ESS: x-pack/test_serverless/api_integration/test_suites/observability/es_query_rule
SLO tests SLO βœ… βœ… Different implementation in both environments.
Serverless: x-pack/test_serverless/api_integration/test_suites/observability/slos ESS: x-pack/test/api_integration/apis/slos

The above table is a compilation of our current API integration tests for the slo and alerting features. Some tests are duplicated in both environments, others are implemented either in serverless or ESS environments and there are also some tests (SLO) where the implementation is not the same in both environments and should be unified.

## API integration tests Migration
- [ ] https://github.com/elastic/kibana/issues/183378
- [ ] https://github.com/elastic/kibana/issues/183395
- [ ] https://github.com/elastic/kibana/issues/183401
- [ ] https://github.com/elastic/kibana/issues/183397
elasticmachine commented 2 months ago

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)