Skip to content

Commit

Permalink
Fix spotless failures
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Singh <[email protected]>
  • Loading branch information
dreamer-89 committed May 19, 2022
1 parent 058ad39 commit 14ad80d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@

package org.opensearch.test.rest.yaml.section;

import org.opensearch.LegacyESVersion;
import org.opensearch.Version;
import org.opensearch.client.NodeSelector;
import org.opensearch.common.ParsingException;
import org.opensearch.common.xcontent.XContentLocation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,7 @@ public void testIgnoreTypesWarnings() {
}

public void testParseDoSectionNoBody() throws Exception {
parser = createParser(
YamlXContent.yamlXContent,
"get:\n" + " index: test_index\n" + " id: 1"
);
parser = createParser(YamlXContent.yamlXContent, "get:\n" + " index: test_index\n" + " id: 1");

DoSection doSection = DoSection.parse(parser);
ApiCallSection apiCallSection = doSection.getApiCallSection();
Expand All @@ -203,10 +200,7 @@ public void testParseDoSectionNoParamsNoBody() throws Exception {

public void testParseDoSectionWithJsonBody() throws Exception {
String body = "{ \"include\": { \"field1\": \"v1\", \"field2\": \"v2\" }, \"count\": 1 }";
parser = createParser(
YamlXContent.yamlXContent,
"index:\n" + " index: test_1\n" + " id: 1\n" + " body: " + body
);
parser = createParser(YamlXContent.yamlXContent, "index:\n" + " index: test_1\n" + " id: 1\n" + " body: " + body);

DoSection doSection = DoSection.parse(parser);
ApiCallSection apiCallSection = doSection.getApiCallSection();
Expand Down Expand Up @@ -321,10 +315,7 @@ public void testParseDoSectionWithYamlBodyMultiGet() throws Exception {
+ " - { _index: test_2, _id: 1}\n"
+ " - { _index: test_1, _id: 1}"
);
String body = "{ \"docs\": [ "
+ "{\"_index\": \"test_2\", \"_id\":1}, "
+ "{\"_index\": \"test_1\", \"_id\":1} "
+ "]}";
String body = "{ \"docs\": [ " + "{\"_index\": \"test_2\", \"_id\":1}, " + "{\"_index\": \"test_1\", \"_id\":1} " + "]}";

DoSection doSection = DoSection.parse(parser);
ApiCallSection apiCallSection = doSection.getApiCallSection();
Expand Down

0 comments on commit 14ad80d

Please sign in to comment.