mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
parent
4ee7f3521f
commit
88a2f54dfe
@ -18,6 +18,7 @@
|
||||
|
||||
package org.elasticsearch.plugin;
|
||||
|
||||
import org.elasticsearch.ElasticSearchIllegalArgumentException;
|
||||
import org.elasticsearch.action.admin.cluster.node.info.NodesInfoResponse;
|
||||
import org.elasticsearch.common.collect.Tuple;
|
||||
import org.elasticsearch.common.io.FileSystemUtils;
|
||||
@ -184,4 +185,10 @@ public class PluginManagerTests extends AbstractIntegrationTest {
|
||||
// We want to remove plugin with groupid/artifactid form
|
||||
singlePluginInstallAndRemove("groupid/plugintest", "file://".concat(PluginManagerTests.class.getResource("plugin_without_folders.zip").getFile()));
|
||||
}
|
||||
|
||||
@Test(expected = ElasticSearchIllegalArgumentException.class)
|
||||
public void testRemovePluginWithURLForm() throws Exception {
|
||||
PluginManager pluginManager = pluginManager(null);
|
||||
pluginManager.removePlugin("file://whatever");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user