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 dd1ba5b commit bc53c79
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ public void testTemplateMetadataUpgrades() throws Exception {
}
}

@SuppressWarnings("unchecked")
private static void verifyTemplateMetadataInClusterState() throws Exception {
Request request = new Request("GET", "_cluster/state/metadata");
Response response = client().performRequest(request);
assertOK(response);
assertNotNull(((Map<String, Object>) entityAsMap(response).get("metadata")).get("templates"));
Map<String, Object> metadata = (Map<String, Object>) entityAsMap(response).get("metadata");
assertNotNull(metadata.get("templates"));
}
}

0 comments on commit bc53c79

Please sign in to comment.