Skip to content

Commit

Permalink
Fix test for Support trailing slashes on plugin _site URLs #2654
Browse files Browse the repository at this point in the history
  • Loading branch information
dadoonet committed Feb 19, 2013
1 parent 3b31c12 commit b7afa0f
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -30,6 +30,8 @@
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import java.io.File;

import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
Expand All @@ -42,9 +44,10 @@ public class SitePluginTests extends AbstractNodesTests {


@BeforeClass
public void setupPluginDirectory() {
public void setupPluginDirectory() throws Exception {
File pluginDir = new File(SitePluginTests.class.getResource("/org/elasticsearch/test/integration/plugin").toURI());
putDefaultSettings(settingsBuilder()
.put("path.plugins", "target/test-classes/org/elasticsearch/test/integration/plugin/")
.put("path.plugins", pluginDir.getAbsolutePath())
.build());
}

Expand Down

0 comments on commit b7afa0f

Please sign in to comment.