[Data telemetry] Add Async Search to the tests (#96693)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Alejandro Fernández Haro 2021-04-14 12:32:40 +02:00 committed by GitHub
parent 8c8fcf16c4
commit f4f49bc32e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,6 +46,15 @@ describe('get_data_telemetry', () => {
).toStrictEqual([]);
});
test('should not include Async Search indices', () => {
expect(
buildDataTelemetryPayload([
{ name: '.async_search', docCount: 0 },
{ name: '.async-search', docCount: 0 },
])
).toStrictEqual([]);
});
test('matches some indices and puts them in their own category', () => {
expect(
buildDataTelemetryPayload([