Skip to content

Commit

Permalink
Spotless apply and build fix
Browse files Browse the repository at this point in the history
Signed-off-by: Siddhant Deshmukh <[email protected]>
  • Loading branch information
deshsidd committed Sep 4, 2024
1 parent 9da0cbc commit dd844a8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ protected String getTopQueries(String type) throws IOException {
String endpoint = "/_insights/top_queries?pretty";

if (type != null) {
switch (type.toLowerCase()) {
switch (type) {
case "cpu":
case "memory":
case "latency":
Expand All @@ -372,7 +372,6 @@ protected String getTopQueries(String type) throws IOException {
return responseBody;
}


protected void updateClusterSettings(Supplier<String> settingsSupplier) throws IOException {
Request request = new Request("PUT", "/_cluster/settings");
request.setJsonEntity(settingsSupplier.get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
package org.opensearch.plugin.insights.core.service.grouper;

import java.io.IOException;
import org.junit.Assert;
import org.opensearch.plugin.insights.QueryInsightsRestTestCase;
import org.opensearch.plugin.insights.settings.QueryInsightsSettings;

/**
* ITs for Grouping Top Queries by none
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
package org.opensearch.plugin.insights.core.service.grouper;

import java.io.IOException;
import org.junit.Assert;
import org.opensearch.client.Request;
import org.opensearch.client.Response;
import org.opensearch.client.ResponseException;
import org.opensearch.plugin.insights.QueryInsightsRestTestCase;
import org.opensearch.plugin.insights.settings.QueryInsightsSettings;

/**
* ITs for Grouping Top Queries by similarity
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
package org.opensearch.plugin.insights.core.service.grouper;

import org.junit.Assert;
import org.opensearch.plugin.insights.QueryInsightsRestTestCase;
import org.opensearch.plugin.insights.settings.QueryInsightsSettings;

import java.io.IOException;
import org.opensearch.plugin.insights.QueryInsightsRestTestCase;

public class MinMaxQueryGrouperIT extends QueryInsightsRestTestCase {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Optional;

import org.junit.Assert;
import org.opensearch.client.Request;
import org.opensearch.client.Response;
Expand All @@ -21,7 +19,6 @@
import org.opensearch.common.xcontent.json.JsonXContent;
import org.opensearch.core.xcontent.NamedXContentRegistry;
import org.opensearch.plugin.insights.QueryInsightsRestTestCase;
import org.opensearch.plugin.insights.settings.QueryInsightsSettings;

/** Rest Action tests for Top Queries */
public class TopQueriesRestIT extends QueryInsightsRestTestCase {
Expand Down

0 comments on commit dd844a8

Please sign in to comment.