Skip to content

Commit

Permalink
mod test
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <[email protected]>
  • Loading branch information
shiv0408 committed Mar 13, 2024
1 parent 7de2bc6 commit dd1ba5b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import org.opensearch.client.Request;
import org.opensearch.client.Response;

import java.util.Map;

public class ClusterStateIT extends AbstractRollingTestCase{
public void testTemplateMetadataUpgrades() throws Exception {
if (CLUSTER_TYPE == ClusterType.OLD) {
Expand All @@ -28,6 +30,6 @@ private static void verifyTemplateMetadataInClusterState() throws Exception {
Request request = new Request("GET", "_cluster/state/metadata");
Response response = client().performRequest(request);
assertOK(response);
assertNotNull("response: " + entityAsMap(response).toString(), entityAsMap(response).get("templates"));
assertNotNull(((Map<String, Object>) entityAsMap(response).get("metadata")).get("templates"));
}
}

0 comments on commit dd1ba5b

Please sign in to comment.