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/AllocateActionTests.java
case 4 -> totalShardsPerNode = randomIntBetween(11, 20);
            default -> throw new AssertionError("Illegal randomisation branch");
        }
        return new AllocateAction(numberOfReplicas, totalShardsPerNode, include, exclude, require);
    }
    public void testAllMapsNullOrEmpty() {
        Map<String, String> include = randomBoolean() ? null : Collections.emptyMap();
        Map<String, String> exclude = randomBoolean() ? null : Collections.emptyMap();
        Map<String, String> require = randomBoolean() ? null : Collections.emptyMap();
        IllegalArgumentException exception = expectThrows(
            IllegalArgumentException.class,
            () -> new AllocateAction(null, null, include, exclude, require)
        );
        assertEquals(
            "At least one of "
                + AllocateAction.INCLUDE_FIELD.getPreferredName()
                + ", "
                + AllocateAction.EXCLUDE_FIELD.getPreferredName()
                + " or "
                + AllocateAction.REQUIRE_FIELD.getPreferredName()
                + " must contain attributes for action "
                + AllocateAction.NAME
                + ". Otherwise the "
                + NUMBER_OF_REPLICAS_FIELD.getPreferredName()
                + " or the "
                + TOTAL_SHARDS_PER_NODE_FIELD.getPreferredName()
                + " options must be configured.",
            exception.getMessage()
        );
    }