Skip to content

Commit 0b2ff1e

Browse files
committed
Add more traces in case of failure when testing with actual plugins
1 parent aa82e22 commit 0b2ff1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/org/elasticsearch/plugin/PluginManagerTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ public void testInstallSitePlugin() throws IOException {
213213

214214

215215
private void singlePluginInstallAndRemove(String pluginShortName, String pluginCoordinates) throws IOException {
216+
logger.info("--> trying to download and install [{}]", pluginShortName);
216217
PluginManager pluginManager = pluginManager(pluginCoordinates);
217218
try {
218219
pluginManager.downloadAndExtract(pluginShortName);
@@ -225,8 +226,12 @@ private void singlePluginInstallAndRemove(String pluginShortName, String pluginC
225226
plugins = pluginManager.getListInstalledPlugins();
226227
assertThat(plugins, notNullValue());
227228
assertThat(plugins.length, is(0));
229+
} catch (IOException e) {
230+
logger.warn("--> IOException raised while downloading plugin [{}].", e, pluginShortName);
231+
throw e;
228232
} catch (ElasticSearchTimeoutException e) {
229233
logger.warn("--> timeout exception raised while downloading plugin [{}]. Skipping test.", pluginShortName);
234+
throw e;
230235
}
231236
}
232237

0 commit comments

Comments
 (0)