### Description

In #84210 we added logic to bypass an assertion when running BWC tests against some released versions since the assertion is known to fail on them. At the time there were no released versions on which the assertion holds, although it does hold on all the the relevant branches. This means we cannot be sure which versions will eventually carry the fix. When fixed versions are released, we should update the logic to reflect reality. This'll need doing in every active 8.x branch.
test/yaml-rest-runner/src/main/java/org/elasticsearch/test/rest/yaml/section/DoSection.java
"Test [{}] uses deprecated legacy index templates and should be updated to use composable templates",
                    (testPath == null ? "<unknown>" : testPath) + ":" + getLocation().lineNumber()
                );
                warnings.remove();
            }
        }
        if (unexpected.isEmpty() == false
            || unmatched.isEmpty() == false
            || missing.isEmpty() == false
            || missingRegex.isEmpty() == false) {
            final StringBuilder failureMessage = new StringBuilder();
            appendBadHeaders(failureMessage, unexpected, "got unexpected warning header" + (unexpected.size() > 1 ? "s" : ""));
            appendBadHeaders(failureMessage, unmatched, "got unmatched warning header" + (unmatched.size() > 1 ? "s" : ""));
            appendBadHeaders(failureMessage, missing, "did not get expected warning header" + (missing.size() > 1 ? "s" : ""));
            appendBadHeaders(
                failureMessage,
                missingRegex,
                "the following regular expression" + (missingRegex.size() > 1 ? "s" : "") + " did not match any warning header"
            );
            fail(failureMessage.toString());
        }
    }
    private void appendBadHeaders(final StringBuilder sb, final List<String> headers, final String message) {
        if (headers.isEmpty() == false) {
            sb.append(message).append(" [\n");
            for (final String header : headers) {
                sb.append("\t").append(header).append("\n");
            }
            sb.append("]\n");
        }