Skip to content

Commit

Permalink
Add more coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Sooraj Sinha <[email protected]>
  • Loading branch information
soosinha committed Dec 17, 2024
1 parent 1c55c53 commit ab77523
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2354,6 +2354,14 @@ public void testReadLatestClusterStateFromCache() throws IOException {
.getState(clusterState.getClusterName().value(), expectedManifest);
assertEquals(stateFromCache.getMetadata(), state.getMetadata());

ClusterState stateFromCache2 = remoteClusterStateService.getClusterStateForManifest(
clusterState.getClusterName().value(),
expectedManifest,
"nodeA",
true
);
assertEquals(stateFromCache2.getMetadata(), state.getMetadata());

final ClusterMetadataManifest notExistMetadata = ClusterMetadataManifest.builder()
.indices(List.of())
.clusterTerm(1L)
Expand Down

0 comments on commit ab77523

Please sign in to comment.