Skip to content

Commit

Permalink
Remove version barrier for synthetic version based features in tests (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
mosche authored Jul 10, 2024
1 parent 4ddca13 commit 8e39f01
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,6 @@ public boolean clusterHasFeature(String featureId) {
Matcher matcher = VERSION_FEATURE_PATTERN.matcher(featureId);
if (matcher.matches()) {
Version extractedVersion = Version.fromString(matcher.group(1));
if (Version.V_8_15_0.before(extractedVersion)) {
// As of version 8.14.0 REST tests have been migrated to use features only.
// For migration purposes we provide a synthetic version feature gte_vX.Y.Z for any version at or before 8.15.0
// allowing for some transition period.
throw new IllegalArgumentException(
Strings.format(
"Synthetic version features are only available before [%s] for migration purposes! "
+ "Please add a cluster feature to an appropriate FeatureSpecification; test-only historical-features "
+ "can be supplied via ESRestTestCase#additionalTestOnlyHistoricalFeatures()",
Version.V_8_15_0
)
);
}
return version.onOrAfter(extractedVersion);
}

Expand Down

0 comments on commit 8e39f01

Please sign in to comment.