kibana/x-pack/test/detection_engine_api_integration
Ryland Herrick 5c352cace7
[Security Solution][Detections] Fix flaky indicator enrichment tests (#94241)
* Make indicator enrichment tests order-independent

Due to the fact that we use named queries to determine matches, and the
fact that the order in which named queries are returned is undefined, we
cannot guarantee a consistent ordering of enrichments if a given event
matches multiple named queries.

Because the ordering is not in itself important to enrichment, in order
to assert the multi-match functionality we must make the assertions
order independent.

* PR feedback

* Since we're only looping for side effects, prefer forEach to map for
  more idiomatic FP.
2021-03-10 16:00:05 -06:00
..
basic Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
common Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
security_and_spaces [Security Solution][Detections] Fix flaky indicator enrichment tests (#94241) 2021-03-10 16:00:05 -06:00
utils.ts [kbn/test] add import/export support to KbnClient (#92526) 2021-02-25 16:13:27 -07:00