elasticsearch/qa/rolling-upgrade
Lorenzo Dematté 385e0d9259
[BC Upgrage] Fix incorrect version parsing in tests (#129243)
This PR introduces several fixes to various IT tests, related to the use and misuse of the version identifier for the start cluster:

    wherever we can, we replace of versions in test code with features
    where we can't, we make sure we use the actual stack version (the one provided by -Dtests.bwc.main.version and not the bogus "0.0.0" version string)
    when requesting the cluster version we make sure we do use the "unresolved" version identifier (the value of the tests.old_cluster_version system property e.g. 0.0.0 ) so we resolve the right distribution

These changes enabled the tests to be used in BC upgrade tests (and potentially in serverless upgrade tests too, where they would have also failed)

Relates to ES-12010

Precedes #128614, #128823 and #128983
2025-06-11 17:22:54 +02:00
..
src/javaRestTest/java/org/elasticsearch/upgrades [BC Upgrage] Fix incorrect version parsing in tests (#129243) 2025-06-11 17:22:54 +02:00
build.gradle Add initial bcUpgradeTask (#128588) 2025-06-02 11:21:51 +02:00