Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrone committed Oct 31, 2023
1 parent ac96d26 commit a7d7fbe
Showing 1 changed file with 24 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,14 @@ public void testShouldBeRedWhenThereAreUnassignedPrimariesAndUnassignedReplicas(
public void testAllReplicasUnassigned() {
{
ClusterState clusterState = createClusterStateWith(
List.of(index("myindex", new ShardAllocation(randomNodeId(), AVAILABLE),
new ShardAllocation(randomNodeId(), AVAILABLE),
new ShardAllocation(randomNodeId(), AVAILABLE))),
List.of(
index(
"myindex",
new ShardAllocation(randomNodeId(), AVAILABLE),
new ShardAllocation(randomNodeId(), AVAILABLE),
new ShardAllocation(randomNodeId(), AVAILABLE)
)
),
List.of()
);
var service = createShardsAvailabilityIndicatorService(clusterState);
Expand All @@ -334,9 +339,14 @@ public void testAllReplicasUnassigned() {
}
{
ClusterState clusterState = createClusterStateWith(
List.of(index("myindex", new ShardAllocation(randomNodeId(), AVAILABLE),
new ShardAllocation(randomNodeId(), randomFrom(UNAVAILABLE, INITIALIZING)),
new ShardAllocation(randomNodeId(), AVAILABLE))),
List.of(
index(
"myindex",
new ShardAllocation(randomNodeId(), AVAILABLE),
new ShardAllocation(randomNodeId(), randomFrom(UNAVAILABLE, INITIALIZING)),
new ShardAllocation(randomNodeId(), AVAILABLE)
)
),
List.of()
);
var service = createShardsAvailabilityIndicatorService(clusterState);
Expand All @@ -351,9 +361,14 @@ public void testAllReplicasUnassigned() {
}
{
ClusterState clusterState = createClusterStateWith(
List.of(index("myindex", new ShardAllocation(randomNodeId(), AVAILABLE),
new ShardAllocation(randomNodeId(), randomFrom(UNAVAILABLE, INITIALIZING)),
new ShardAllocation(randomNodeId(), randomFrom(UNAVAILABLE, INITIALIZING)))),
List.of(
index(
"myindex",
new ShardAllocation(randomNodeId(), AVAILABLE),
new ShardAllocation(randomNodeId(), randomFrom(UNAVAILABLE, INITIALIZING)),
new ShardAllocation(randomNodeId(), randomFrom(UNAVAILABLE, INITIALIZING))
)
),
List.of()
);
var service = createShardsAvailabilityIndicatorService(clusterState);
Expand Down

0 comments on commit a7d7fbe

Please sign in to comment.