From e0261a733e38ffa9c4d2a6e3ccea0099175abc6a Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Mon, 13 Nov 2023 15:04:54 -0800 Subject: [PATCH] Only support the new framework for now --- .../main/java/org/elasticsearch/test/rest/ESRestTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java b/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java index a06bb07f892ea..64236b2e82094 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java @@ -2224,7 +2224,7 @@ protected Map getHistoricalFeatures() { Map historicalFeaturesMap = new HashMap<>(); String metadataPath = System.getProperty("tests.features.metadata.path"); if (metadataPath == null) { - throw new IllegalStateException("System property 'tests.features.metadata.path' is undefined."); + throw new UnsupportedOperationException("Historical features information is unavailable when using legacy test plugins."); } String[] metadataFiles = metadataPath.split(File.pathSeparator);