From 8f09c8bbeadb8aa3046c76f01d56ad672d7323b1 Mon Sep 17 00:00:00 2001 From: sameeram Date: Wed, 6 May 2015 17:34:42 +0530 Subject: [PATCH] Migrated product-es to carbon 4.4.0 --- .../utils/ESServerExtensionForWait.java | 4 +-- .../ArtifactUploadClientTestCase.java | 7 ++++ pom.xml | 36 +++++++++---------- 3 files changed, 27 insertions(+), 20 deletions(-) diff --git a/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/es/integration/common/utils/ESServerExtensionForWait.java b/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/es/integration/common/utils/ESServerExtensionForWait.java index d50aa30e..19834e63 100644 --- a/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/es/integration/common/utils/ESServerExtensionForWait.java +++ b/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/es/integration/common/utils/ESServerExtensionForWait.java @@ -25,7 +25,7 @@ public class ESServerExtensionForWait extends ExecutionListenerExtension { private static final Log LOG = LogFactory.getLog(ESServerExtensionForWait.class); - private static final long WAIT_TIME = 3000; + private static final long WAIT_TIME = 10000; private static final int MAX_ATTEMPT_COUNT = 10; /** @@ -88,4 +88,4 @@ private static void waitTillIndexingCompletes() throws IOException, InterruptedE //Waiting before the next check for the registry index completion... } } -} \ No newline at end of file +} diff --git a/modules/integration/tests-integration/tests/src/test/java/org/wso2/es/integration/ArtifactUploadClientTestCase.java b/modules/integration/tests-integration/tests/src/test/java/org/wso2/es/integration/ArtifactUploadClientTestCase.java index f3259de8..455040eb 100644 --- a/modules/integration/tests-integration/tests/src/test/java/org/wso2/es/integration/ArtifactUploadClientTestCase.java +++ b/modules/integration/tests-integration/tests/src/test/java/org/wso2/es/integration/ArtifactUploadClientTestCase.java @@ -84,7 +84,14 @@ public void publisherTest() throws Exception { writer = new StringWriter(); IOUtils.copy(errorIn, writer, "utf-8"); String errorString = writer.toString(); + log.info("Result of asset client execution "); log.info(consoleMsg); + //If the execution fails we need to know the reason for the failure + if(errorString.length() > 0){ + log.error("Error in executing asset client: "); + log.error(errorString); + } + Assert.assertEquals("Assets not uploaded successfully", 0, errorString.length()); } diff --git a/pom.xml b/pom.xml index 20fd8f15..80408967 100644 --- a/pom.xml +++ b/pom.xml @@ -75,11 +75,11 @@ org.apache.maven.plugins maven-compiler-plugin ${maven.compilerplugin.version} - + org.jacoco @@ -600,21 +600,21 @@ github-scm UTF-8 - 4.3.0 - 1.2.1 - 2.0.1 + 4.4.0 + 1.3.0-SNAPSHOT + 2.1.0-SNAPSHOT 2.0.0-SNAPSHOT 4.3.1 4.3.0 - 4.3.4 - 4.3.0 - 4.3.0 - 4.3.1 - 4.3.2 - 4.3.4 + 4.4.0 + 4.4.1 + 4.4.0 + 4.4.0 + 4.4.0 + 4.4.0 0.8.1 2.40.0 @@ -647,17 +647,17 @@ 2.2 1.2.140.wso2v3 - 0.9.0 + 0.10.1 1.0.1 1.0.0 1.0.0 - 1.2.2 - 1.2.2 - 1.2.2 - 1.2.2 - 1.2.2 + 1.3.0 + 1.3.0 + 1.3.0 + 1.3.0 + 1.3.0 1.5.10.wso2v1 - 1.1.0-wso2v11 + 1.1.0-wso2v12 1.0.1 4.1.1-wso2v1 4.1.0-wso2v1