Skip to content

Commit 7930dcc

Browse files
author
Kishore Kumaar Natarajan
committed
Updated Exporter and Reader
Signed-off-by: Kishore Kumaar Natarajan <[email protected]>
1 parent 779bb3f commit 7930dcc

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package org.opensearch.plugin.insights.core.exporter;
2+
3+
public class ExporterDeleteAfterIT {
4+
}

src/test/java/org/opensearch/plugin/insights/core/exporter/QueryInsightsExporterIT.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,8 @@ private void checkQueryInsightsIndexTemplate() throws IOException {
122122
Request request = new Request("GET", "/_index_template");
123123
Response response = client().performRequest(request);
124124
String responseContent = new String(response.getEntity().getContent().readAllBytes(), StandardCharsets.UTF_8);
125-
assertTrue(
126-
"Expected default index template for my_template to be present",
127-
responseContent.contains("my_template")
128-
);
129-
assertTrue(
130-
"Expected priority for my_template to be 2000",
131-
responseContent.contains("2000")
132-
);
125+
assertTrue("Expected default index template for my_template to be present", responseContent.contains("my_template"));
126+
assertTrue("Expected priority for my_template to be 2000", responseContent.contains("2000"));
133127
}
134128

135129
private void disableLocalIndexExporter() throws IOException {

src/test/java/org/opensearch/plugin/insights/core/reader/QueryInsightsReaderIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private String checkLocalIndices() throws IOException {
126126

127127
String fetchResponseContent = new String(fetchResponse.getEntity().getContent().readAllBytes(), StandardCharsets.UTF_8);
128128
assertTrue(
129-
"Expected title field with value 'Test Document' in query insights data in local Indices",
129+
"Expected ƒtitle field with value 'Test Document' in query insights data in local Indices",
130130
fetchResponseContent.contains("\"Test Document\"")
131131
);
132132
return fullIndexName;
@@ -144,7 +144,7 @@ private void cleanup(String fullIndexName) throws IOException, InterruptedExcept
144144
} catch (ResponseException ignored) {}
145145

146146
try {
147-
client().performRequest(new Request("DELETE", "/_index_template"));
147+
client().performRequest(new Request("DELETE", "/_index_templateƒ"));
148148
} catch (ResponseException ignored) {}
149149

150150
String resetSettings = "{ \"persistent\": { "

0 commit comments

Comments
 (0)