elastic / kibana

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

[Dataset quality] Meta - Use deployment-agnostic testing in api tests #191980

Open yngrdyn opened 2 months ago

yngrdyn commented 2 months ago

📓 Summary

With the introduction of Deployment-agnostic tests we want to cover our api tests in both stateful and serverless flavours. At the moment mos of our tests are only being run in stateful. Most of our APIs behaves the same in stateful or serverless so they are suited to be migrated.

Test ESS Serverless Notes
GET /internal/dataset_quality/data_streams/stats ESS: x-pack/test/dataset_quality_api_integration/tests/data_streams/stats.spec.ts
GET /internal/dataset_quality/data_streams/{dataStream}/degraded_fields ESS: x-pack/test/dataset_quality_api_integration/tests/data_streams/degraded_fields.spec.ts
GET /internal/dataset_quality/data_streams/degraded_docs ESS: x-pack/test/dataset_quality_api_integration/tests/data_streams/degraded_docs.spec.ts
GET /internal/dataset_quality/data_streams/{dataStream}/settings Duplicate tests
Serverless: x-pack/test_serverless/api_integration/test_suites/observability/dataset_quality_api_integration/data_stream_details.ts ESS: /Users/yng/Projects/kibana/x-pack/test/dataset_quality_api_integration/tests/data_streams/data_stream_details.spec.ts
GET /internal/dataset_quality/data_streams/{dataStream}/details Duplicate tests
Serverless: x-pack/test_serverless/api_integration/test_suites/observability/dataset_quality_api_integration/data_stream_settings.ts ESS: /Users/yng/Projects/kibana/x-pack/test/dataset_quality_api_integration/tests/data_streams/data_stream_settings.spec.ts
GET /internal/dataset_quality/integrations/{integration}/dashboards ESS: x-pack/test/dataset_quality_api_integration/tests/integrations/integration_dashboards.spec.ts
GET /internal/dataset_quality/integrations ESS: x-pack/test/dataset_quality_api_integration/tests/integrations/integrations.spec.ts
GET /internal/dataset_quality/data_streams/{dataStream}/degraded_field/{degradedField}/values Duplicate tests
Serverless: x-pack/test_serverless/api_integration/test_suites/observability/dataset_quality_api_integration/degraded_field_values.ts ESS: x-pack/test/dataset_quality_api_integration/tests/data_streams/degraded_field_values.spec.ts

❔ Caveats

💡 Resources

elasticmachine commented 2 months ago

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