From c92d1b61109a8a055932c318bc85d60c4ecdaa9f Mon Sep 17 00:00:00 2001 From: Owais Kazi Date: Tue, 12 Apr 2022 20:13:35 +0000 Subject: [PATCH] Fixed failing tests Signed-off-by: Owais Kazi --- .linelint.yml | 3 +++ .../resources/org/opensearch/action/bulk/simple-bulk11.json | 2 +- .../org/opensearch/action/search/simple-msearch5.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.linelint.yml b/.linelint.yml index 9e2c2c98acad4..7b7bc162eef28 100644 --- a/.linelint.yml +++ b/.linelint.yml @@ -35,6 +35,9 @@ ignore: - 'qa/os/oel-6/build.gradle' - 'qa/os/oel-7/build.gradle' - 'qa/os/sles-12/build.gradle' + # Test requires no new line for these files + - 'server/src/test/resources/org/opensearch/action/bulk/simple-bulk11.json' + - 'server/src/test/resources/org/opensearch/action/search/simple-msearch5.json' rules: # checks if file ends in a newline character diff --git a/server/src/test/resources/org/opensearch/action/bulk/simple-bulk11.json b/server/src/test/resources/org/opensearch/action/bulk/simple-bulk11.json index e36d1b7fc00b8..2242dd01c8145 100644 --- a/server/src/test/resources/org/opensearch/action/bulk/simple-bulk11.json +++ b/server/src/test/resources/org/opensearch/action/bulk/simple-bulk11.json @@ -2,4 +2,4 @@ { "field1" : "value1" } { "delete" : { "_index" : "test", "_id" : "2" } } { "create" : { "_index" : "test", "_id" : "3" } } -{ "field1" : "value3" } +{ "field1" : "value3" } \ No newline at end of file diff --git a/server/src/test/resources/org/opensearch/action/search/simple-msearch5.json b/server/src/test/resources/org/opensearch/action/search/simple-msearch5.json index b5563e55657f9..ac3fb4b62d693 100644 --- a/server/src/test/resources/org/opensearch/action/search/simple-msearch5.json +++ b/server/src/test/resources/org/opensearch/action/search/simple-msearch5.json @@ -3,4 +3,4 @@ {"index" : "test2,test3", "preference": "_local"} {"query" : {"match_all" : {}}} {"index" : ["test4", "test1"], "routing": "123"} -{"query" : {"match_all" : {}}} +{"query" : {"match_all" : {}}} \ No newline at end of file