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
CopyExecutionStateStep step = createRandomInstance();
        String indexName = randomAlphaOfLengthBetween(5, 20);
        Map<String, String> customMetadata = createCustomMetadata();
        IndexMetadata originalIndexMetadata = IndexMetadata.builder(indexName)
            .settings(settings(Version.CURRENT))
            .numberOfShards(randomIntBetween(1, 5))
            .numberOfReplicas(randomIntBetween(1, 5))
            .putCustom(ILM_CUSTOM_METADATA_KEY, customMetadata)
            .build();
        ClusterState originalClusterState = ClusterState.builder(ClusterName.DEFAULT)
            .metadata(Metadata.builder().put(originalIndexMetadata, false))
            .build();
        IllegalStateException e = expectThrows(
            IllegalStateException.class,
            () -> step.performAction(originalIndexMetadata.getIndex(), originalClusterState)
        );
        assertThat(
            e.getMessage(),
            equalTo(
                "unable to copy execution state from ["
                    + indexName
                    + "] to ["
                    + step.getTargetIndexNameSupplier()
                        .apply(originalIndexMetadata.getIndex().getName(), LifecycleExecutionState.builder().build())
                    + "] as target index does not exist"
            )
        );
    }
}