diff --git a/distribution/tools/plugin-cli/src/test/java/org/opensearch/plugins/ListPluginsCommandTests.java b/distribution/tools/plugin-cli/src/test/java/org/opensearch/plugins/ListPluginsCommandTests.java index 7bbced38c7adb..864dbc3482c0e 100644 --- a/distribution/tools/plugin-cli/src/test/java/org/opensearch/plugins/ListPluginsCommandTests.java +++ b/distribution/tools/plugin-cli/src/test/java/org/opensearch/plugins/ListPluginsCommandTests.java @@ -172,7 +172,8 @@ public void testPluginWithVerbose() throws Exception { "Native Controller: false", "Extended Plugins: []", " * Classname: org.fake", - "Folder name: custom-folder" + "Folder name: custom-folder", + "SemVer Range Compatible: false" ), terminal.getOutput() ); @@ -195,7 +196,8 @@ public void testPluginWithNativeController() throws Exception { "Native Controller: true", "Extended Plugins: []", " * Classname: org.fake", - "Folder name: custom-folder" + "Folder name: custom-folder", + "SemVer Range Compatible: false" ), terminal.getOutput() ); @@ -220,6 +222,7 @@ public void testPluginWithVerboseMultiplePlugins() throws Exception { "Extended Plugins: []", " * Classname: org.fake", "Folder name: custom-folder", + "SemVer Range Compatible: false", "fake_plugin2", "- Plugin information:", "Name: fake_plugin2", @@ -230,7 +233,8 @@ public void testPluginWithVerboseMultiplePlugins() throws Exception { "Native Controller: false", "Extended Plugins: []", " * Classname: org.fake2", - "Folder name: custom-folder" + "Folder name: custom-folder", + "SemVer Range Compatible: false" ), terminal.getOutput() ); diff --git a/server/src/main/java/org/opensearch/plugins/PluginInfo.java b/server/src/main/java/org/opensearch/plugins/PluginInfo.java index bb4bac28a44e4..e5749cdd21cd6 100644 --- a/server/src/main/java/org/opensearch/plugins/PluginInfo.java +++ b/server/src/main/java/org/opensearch/plugins/PluginInfo.java @@ -254,7 +254,6 @@ public static PluginInfo readFromProperties(final Path path) throws IOException final String isSemVerRangeCompatibleValue = propsMap.remove("is.semVer.range.compatible"); final boolean isSemVerRangeCompatible = getBooleanProperty("is.semVer.range.compatible", isSemVerRangeCompatibleValue, false); - ; if (propsMap.isEmpty() == false) { throw new IllegalArgumentException("Unknown properties in plugin descriptor: " + propsMap.keySet());