Skip to content

Commit 779bb3f

Browse files
author
Kishore Kumaar Natarajan
committed
Updated Exporter and Reader
Signed-off-by: Kishore Kumaar Natarajan <kkumaarn@amazon.com>
1 parent 861f6ae commit 779bb3f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,12 @@ private void checkQueryInsightsIndexTemplate() throws IOException {
123123
Response response = client().performRequest(request);
124124
String responseContent = new String(response.getEntity().getContent().readAllBytes(), StandardCharsets.UTF_8);
125125
assertTrue(
126-
"Expected default index template for Query Insights to be present",
127-
responseContent.contains(
128-
"{\"index_templates\":[{\"name\":\"my_template\",\"index_template\":{\"index_patterns\":[\"*\"],\"template\":{\"settings\":{\"index\":{\"number_of_shards\":\"1\",\"number_of_replicas\":\"1\",\"blocks\":{\"write\":\"false\"}}},\"mappings\":{\"properties\":{\"group_by\":{\"type\":\"keyword\"}}},\"aliases\":{\"my_alias\":{}}},\"composed_of\":[],\"priority\":2000}}]}"
129-
)
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")
130132
);
131133
}
132134

0 commit comments

Comments
 (0)