Skip to content

Commit

Permalink
Remove version barrier for synthetic version based features in tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mosche authored Jul 10, 2024
1 parent 62ca6d0 commit 0fff906
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,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.CURRENT.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 CURRENT (8.14.x).
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#createAdditionalFeatureSpecifications()",
Version.CURRENT
)
);
}
return version.onOrAfter(extractedVersion);
}

Expand Down

0 comments on commit 0fff906

Please sign in to comment.