kibana/x-pack/test/api_integration_basic
Walter Rafelsberger ce0114b3d6
[ML] AIOps: Log Rate Analysis V2 REST API, replaces references to term with item. (#170274)
This PR uses [conditional
types](https://www.typescriptlang.org/docs/handbook/2/conditional-types.html)
to allow the handling of both multiple API versions within one route handler. The more tricky bit turned out
to be not the updated request body, but the response since it is an
NDJSON stream where some messages were updated. In this case also the
functions that create these messages were updated with conditional types
to be able to create a message that fits the definition of the API
version.

The API integration tests originally had these message identifiers in
the `expected` section of their `testData`. I changed that to use helper
functions that retrieve the expected messages from the stream according
to the expected version. All API integration tests are run on both
versions. The functional tests are run only on the newer version since
the UI is expected to work with version `2` only.
2023-11-10 13:57:59 +01:00
..
apis [ML] AIOps: Log Rate Analysis V2 REST API, replaces references to term with item. (#170274) 2023-11-10 13:57:59 +01:00
config.ts [kbn/test] move types/ftr into src (#99555) 2021-05-17 09:51:53 -07:00
ftr_provider_context.d.ts [kbn/test] move types/ftr into src (#99555) 2021-05-17 09:51:53 -07:00