The following ILM tests all contain switch statements with branches that will never execute. The tests use a `between(x, y)` switch expression, but there are `case` values that are outside the randomised range. We need to fix these before #88739 can be merged. By "fix", I mean either remove the spurious cases, or if we actually want them, then extend the randomized range.

   * ActionConfigStatsTests
   * AllocateActionTests
   * CopyExecutionStateStepTests
   * RolloverActionTests
   * WaitForRolloverReadyStepTests

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/CopyExecutionStateStepTests.java
}
    public void testAllStateCopied() {
        CopyExecutionStateStep step = createRandomInstance();
        String indexName = randomAlphaOfLengthBetween(5, 20);
        IndexMetadata originalIndexMetadata = IndexMetadata.builder(indexName)
            .settings(settings(Version.CURRENT))
            .numberOfShards(randomIntBetween(1, 5))
            .numberOfReplicas(randomIntBetween(1, 5))
            .putCustom(ILM_CUSTOM_METADATA_KEY, createCustomMetadata())
            .build();
        IndexMetadata shrunkIndexMetadata = IndexMetadata.builder(
            step.getTargetIndexNameSupplier().apply(indexName, LifecycleExecutionState.builder().build())
        ).settings(settings(Version.CURRENT)).numberOfShards(randomIntBetween(1, 5)).numberOfReplicas(randomIntBetween(1, 5)).build();
        ClusterState originalClusterState = ClusterState.builder(ClusterName.DEFAULT)
            .metadata(Metadata.builder().put(originalIndexMetadata, false).put(shrunkIndexMetadata, false))
            .build();
        ClusterState newClusterState = step.performAction(originalIndexMetadata.getIndex(), originalClusterState);
        LifecycleExecutionState oldIndexData = originalIndexMetadata.getLifecycleExecutionState();
        LifecycleExecutionState newIndexData = newClusterState.metadata()
            .index(step.getTargetIndexNameSupplier().apply(indexName, LifecycleExecutionState.builder().build()))
            .getLifecycleExecutionState();
        Map<String, String> beforeMap = new HashMap<>(oldIndexData.asMap());
        
        beforeMap.put("phase", step.getTargetNextStepKey().getPhase());
        beforeMap.put("action", step.getTargetNextStepKey().getAction());
        beforeMap.put("step", step.getTargetNextStepKey().getName());
        Map<String, String> newMap = newIndexData.asMap();
        assertThat(beforeMap, equalTo(newMap));
    }
    public void testPerformActionWithNoTarget() {