Skip to content

Commit

Permalink
plugin -remove deletes bin directory
Browse files Browse the repository at this point in the history
Adding test for #3847.
  • Loading branch information
dadoonet committed Oct 8, 2013
1 parent 4ee7f35 commit 88a2f54
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -184,4 +185,10 @@ public void testRemovePlugin() throws Exception {
// 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");
}
}

0 comments on commit 88a2f54

Please sign in to comment.