From 3382f360ae82908208faef4533b9e21b494151c2 Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Thu, 17 Dec 2020 20:55:36 +0200 Subject: [PATCH] Add missing change --- .../elasticsearch/test/eql/stats/EqlUsageRestTestCase.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/eql/qa/common/src/main/java/org/elasticsearch/test/eql/stats/EqlUsageRestTestCase.java b/x-pack/plugin/eql/qa/common/src/main/java/org/elasticsearch/test/eql/stats/EqlUsageRestTestCase.java index dac95d5bb76d1..6acb17fb5fbb0 100644 --- a/x-pack/plugin/eql/qa/common/src/main/java/org/elasticsearch/test/eql/stats/EqlUsageRestTestCase.java +++ b/x-pack/plugin/eql/qa/common/src/main/java/org/elasticsearch/test/eql/stats/EqlUsageRestTestCase.java @@ -199,7 +199,8 @@ public void testEqlRestUsage() throws IOException { " [process where opcode == 2] by user"); } responseAsMap = getStats(); - metricsToCheck = unmodifiableSet(new HashSet<>("sequence", "sequence_queries_three", "join_keys_one", "sequence_maxspan", defaultPipe))); + metricsToCheck = unmodifiableSet(new HashSet<>(Arrays.asList("sequence", "sequence_queries_three", "join_keys_one", + "sequence_maxspan", defaultPipe))); assertFeaturesMetrics(randomThreeQueriesSequences, responseAsMap, metricsToCheck); assertFeaturesMetricsExcept(responseAsMap, metricsToCheck); assertAllQueryMetrics(allTotalQueries, responseAsMap); @@ -252,7 +253,7 @@ public void testEqlRestUsage() throws IOException { " [process where opcode == 1]"); } responseAsMap = getStats(); - metricsToCheck = unmodifiableSet(new HashSet<>(Arrays.asList("sequence", "sequence_queries_two", + metricsToCheck = unmodifiableSet(new HashSet<>(Arrays.asList("sequence", "sequence_queries_two", "join_keys_five_or_more", defaultPipe))); assertFeaturesMetrics(randomFiveJoinKeysExecutions, responseAsMap, metricsToCheck); assertFeaturesMetricsExcept(responseAsMap, metricsToCheck);