### 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
return doSection;
    }
    private static final Logger logger = LogManager.getLogger(DoSection.class);
    private final XContentLocation location;
    private String catchParam;
    private ApiCallSection apiCallSection;
    private List<String> expectedWarningHeaders = emptyList();
    private List<Pattern> expectedWarningHeadersRegex = emptyList();
    private List<String> allowedWarningHeaders = emptyList();
    private List<Pattern> allowedWarningHeadersRegex = emptyList();
    public DoSection(XContentLocation location) {
        this.location = location;
    }
    public String getCatch() {
        return catchParam;
    }
    public void setCatch(String param) {
        this.catchParam = param;
    }
    public ApiCallSection getApiCallSection() {
        return apiCallSection;
    }
    void setApiCallSection(ApiCallSection apiCallSection) {
        this.apiCallSection = apiCallSection;
    }
    /**
     * Warning headers patterns that we expect from this response.
     * If the headers don't match exactly this request is considered to have failed.
     * Defaults to emptyList.
     */