Skip to content

Commit

Permalink
[Data telemetry] Add Async Search to the tests (#96693) (#97992)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
  • Loading branch information
kibanamachine and afharo authored Apr 22, 2021
1 parent d2ac4bf commit 85cae4c
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 85cae4c

Please sign in to comment.