Skip to content

Commit dc8513b

Browse files
authored
Extend validity of synthetic version features on 8.14 to 8.15.0 (#109464)
1 parent 807dc6c commit dc8513b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestFeatureService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ public boolean clusterHasFeature(String featureId) {
8181
Matcher matcher = VERSION_FEATURE_PATTERN.matcher(featureId);
8282
if (matcher.matches()) {
8383
Version extractedVersion = Version.fromString(matcher.group(1));
84-
if (Version.V_8_14_0.before(extractedVersion)) {
84+
if (Version.CURRENT.before(extractedVersion)) {
8585
// As of version 8.14.0 REST tests have been migrated to use features only.
86-
// For migration purposes we provide a synthetic version feature gte_vX.Y.Z for any version at or before 8.14.0.
86+
// For migration purposes we provide a synthetic version feature gte_vX.Y.Z for any version at or before CURRENT (8.14.x).
8787
throw new IllegalArgumentException(
8888
Strings.format(
8989
"Synthetic version features are only available before [%s] for migration purposes! "
90-
+ "Please add a cluster feature to an appropriate FeatureSpecification; features only necessary for "
91-
+ "testing can be supplied via ESRestTestCase#createAdditionalFeatureSpecifications()",
92-
Version.V_8_14_0
90+
+ "Please add a cluster feature to an appropriate FeatureSpecification; test-only historical-features "
91+
+ "can be supplied via ESRestTestCase#createAdditionalFeatureSpecifications()",
92+
Version.CURRENT
9393
)
9494
);
9595
}

0 commit comments

Comments
 (0)