فهرست منبع

Add more traces in case of failure when testing with actual plugins
(cherry picked from commit 0b2ff1e)

David Pilato 11 سال پیش
والد
کامیت
36e58c092b
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      src/test/java/org/elasticsearch/plugin/PluginManagerTests.java

+ 5 - 0
src/test/java/org/elasticsearch/plugin/PluginManagerTests.java

@@ -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;
         }
     }