As a temporary fix, to write the test cases, increase the sleep time assigned at carbon core. I have attached the necessary changes as a patch here
Regards, Suho On Tue, Dec 20, 2011 at 7:52 PM, Shelan Perera <she...@wso2.com> wrote: > Hi, > > Integration tests are failing with the current migration as follows in > DSS. The work around for that is to increase the sleep in ServerUtils: > startServerUsingCarbonHome( ) in Carbon core integration framework so > it succeeded . > Will it be fixed at the integration frame work or do we need to handle it > at the products' integration test levels ? > > Revision: 118138 > > > carbontmp1324390242371/wso2dataservices-2.6.0-SNAPSHOT/repository/conf/advanced/qpid-config.xml > [2011-12-20 19:41:18,849] INFO > {org.wso2.carbon.integration.framework.utils.ServerUtils} - Successfully > started Carbon server. Returning ... > [2011-12-20 19:41:19,034] INFO > {org.wso2.carbon.integration.framework.ClientConnectionUtil} - > Successfully connected to the server on port 9763 > [2011-12-20 19:41:19,262] INFO > {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: rahas - > file:/home/shelan/.m2/repository/org/apache/rampart/wso2/rampart-trust/1.6.1.wso2v2/rampart-trust-1.6.1.wso2v2.jar > [2011-12-20 19:41:19,262] INFO > {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: rahas - > file:/home/shelan/.m2/repository/org/apache/rampart/wso2/rampart-trust/1.6.1.wso2v2/rampart-trust-1.6.1.wso2v2.jar > [2011-12-20 19:41:19,287] INFO > {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: rampart - > file:/home/shelan/.m2/repository/org/apache/rampart/wso2/rampart-core/1.6.1.wso2v2/rampart-core-1.6.1.wso2v2.jar > [2011-12-20 19:41:19,287] INFO > {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: rampart - > file:/home/shelan/.m2/repository/org/apache/rampart/wso2/rampart-core/1.6.1.wso2v2/rampart-core-1.6.1.wso2v2.jar > [2011-12-20 19:41:19,449] INFO > {org.apache.axis2.transport.http.HTTPSender} - Unable to sendViaPost to > url[http://localhost:9763/services/SecurityVerifierService] > org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found > at > org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:308) > at > org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194) > at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:450) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:277) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443) > at > org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406) > at > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) > at > org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) > at > org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:475) > at org.apache.axis2.client.ServiceClient.sendRobust(ServiceClient.java:456) > at > org.wso2.carbon.integration.framework.SecurityVerificationTest.verifyAdminServiceSecurity(SecurityVerificationTest.java:50) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80) > at org.testng.internal.Invoker.invokeMethod(Invoker.java:673) > at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842) > at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166) > at > org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) > at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) > at org.testng.TestRunner.runWorkers(TestRunner.java:1178) > at org.testng.TestRunner.privateRun(TestRunner.java:757) > at org.testng.TestRunner.run(TestRunner.java:608) > at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) > at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) > at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) > at org.testng.SuiteRunner.run(SuiteRunner.java:240) > at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) > at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) > at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158) > at org.testng.TestNG.runSuitesLocally(TestNG.java:1083) > at org.testng.TestNG.run(TestNG.java:999) > at > org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:60) > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:153) > at > org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:99) > at > org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111) > at sun.re > > Thanks > -- > *Shelan Perera* > > Software Engineer > ** > *WSO2, Inc. : wso2.com* > lean.enterprise.middleware. > > *Home Page* : shelan.org > *Blog* : blog.shelan.org > *Linked-i*n :http://www.linkedin.com/pub/shelan-perera/a/194/465 > *Twitter* :https://twitter.com/#!/shelan > > *Mobile* : +94 772 604 402 > > > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- *S. Suhothayan * Software Engineer *WSO2, Inc. *http://wso2.com lean.enterprise.middleware. *email: **s...@wso2.com* <s...@wso2.com>* cell: (+94) 779 756 757 blog: **http://suhothayan.blogspot.com/* <http://suhothayan.blogspot.com/>* twitter: **http://twitter.com/suhothayan* <http://twitter.com/suhothayan>* linked-in: **http://lk.linkedin.com/in/suhothayan* * *
Index: integration/tests/src/test/java/org/wso2/carbon/integration/tests/CarbonTestServerManager.java =================================================================== --- integration/tests/src/test/java/org/wso2/carbon/integration/tests/CarbonTestServerManager.java (revision 118130) +++ integration/tests/src/test/java/org/wso2/carbon/integration/tests/CarbonTestServerManager.java (working copy) @@ -51,7 +49,7 @@ } @Override - @AfterSuite(timeOut = 60000, + @AfterSuite(timeOut = 180000, description = "Stops the Carbon core server") public void stopServer() throws Exception { super.stopServer(); Index: integration/framework/src/main/java/org/wso2/carbon/integration/framework/utils/ServerUtils.java =================================================================== --- integration/framework/src/main/java/org/wso2/carbon/integration/framework/utils/ServerUtils.java (revision 118130) +++ integration/framework/src/main/java/org/wso2/carbon/integration/framework/utils/ServerUtils.java (working copy) @@ -106,7 +106,7 @@ } } try { - Thread.sleep(5000); + Thread.sleep(15000); } catch (InterruptedException ignored) { } } catch (IOException e) {
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev