Add more traces in case of failure when testing with actual plugins
(cherry picked from commit 0b2ff1e)
This commit is contained in:
parent
2e4b70d40f
commit
36e58c092b
|
@ -213,6 +213,7 @@ public class PluginManagerTests extends ElasticsearchIntegrationTest {
|
|||
|
||||
|
||||
private void singlePluginInstallAndRemove(String pluginShortName, String pluginCoordinates) throws IOException {
|
||||
logger.info("--> trying to download and install [{}]", pluginShortName);
|
||||
PluginManager pluginManager = pluginManager(pluginCoordinates);
|
||||
try {
|
||||
pluginManager.downloadAndExtract(pluginShortName);
|
||||
|
@ -225,8 +226,12 @@ public class PluginManagerTests extends ElasticsearchIntegrationTest {
|
|||
plugins = pluginManager.getListInstalledPlugins();
|
||||
assertThat(plugins, notNullValue());
|
||||
assertThat(plugins.length, is(0));
|
||||
} catch (IOException e) {
|
||||
logger.warn("--> IOException raised while downloading plugin [{}].", e, pluginShortName);
|
||||
throw e;
|
||||
} catch (ElasticsearchTimeoutException e) {
|
||||
logger.warn("--> timeout exception raised while downloading plugin [{}]. Skipping test.", pluginShortName);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue