Hi Indika,
Issue seems to be tests were not updated to the final state of the
connectors. (Since re factoring was done several times)
I have attached a diff for the salesforce connector test.
Similarly you can change the other test cases if you need to check.
We will fix this for the next release. (4.8.1)
Best Regards,
Malaka
On Tue, Jan 7, 2014 at 12:44 PM, indika prasad <[email protected]> wrote:
> Hi,
>
> I am attempting to maven build the Integration Tests for the Google
> Spreadsheets connector. I receive the following error:
>
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 276.19 sec
> <<< FAILURE!
>
> testImportCSV(org.wso2.carbon.connector.integration.test.googlespreadsheet.GoogleSpreadsheetConnectorIntegrationTest)
> Time elapsed: 1.275 sec <<< FAILURE!
> org.apache.axis2.AxisFault: AxisFault while getting response :The input
> stream for an incoming message is null.
> at
>
> org.wso2.carbon.automation.utils.axis2client.AxisServiceClient.sendReceive(AxisServiceClient.java:61)
> at
>
> org.wso2.carbon.connector.integration.test.googlespreadsheet.GoogleSpreadsheetConnectorIntegrationTest.testImportCSV(GoogleSpreadsheetConnectorIntegrationTest.java:120)
> Caused by: org.apache.axis2.AxisFault: The input stream for an incoming
> message is null.
> at
>
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:93)
> at
>
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:68)
> at
>
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:346)
> at
>
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413)
> at
>
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
> at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
> at
>
> org.wso2.carbon.automation.utils.axis2client.AxisServiceClient.sendReceive(AxisServiceClient.java:55)
> ... 35 more
>
> Running the same connector zip with the same proxy service defined in the
> integration test with the same soap request on a separate ESB instance
> works
> fine.
>
> When running the integration test, the connector and proxy service are
> added
> to the ESB instance successfully and the proxy service also logs all its
> property mediators according to the SOAP request that is sent.
>
> However, it seems to me that the synapse template within the connector
> itself is not being hit as nothing related to the connector is executed
> after the proxy service.
>
> I'd greatly appreciate any help anyone could give in solving this issue.
>
> Thanks.
>
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Issue-with-Integration-Tests-for-the-Google-Spreadsheets-connector-tp90411.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
--
Best Regards,
Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/<http://wso2.com/about/team/malaka-silva/>
Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
Index:
src/test/java/org/wso2/carbon/connector/integration/test/salesforce/SalesforceConnectorIntegrationTest.java
===================================================================
---
src/test/java/org/wso2/carbon/connector/integration/test/salesforce/SalesforceConnectorIntegrationTest.java
(revision 194055)
+++
src/test/java/org/wso2/carbon/connector/integration/test/salesforce/SalesforceConnectorIntegrationTest.java
(working copy)
@@ -88,7 +88,7 @@
Thread.sleep(30000);
//adminServiceStub.addImport("salesforce",
"org.wso2.carbon.connectors");
-
adminServiceStub.updateStatus("{org.wso2.carbon.connectors}salesforce_1.0.0",
"salesforce_1.0.0",
+
adminServiceStub.updateStatus("{org.wso2.carbon.connectors}salesforce",
"salesforce",
"org.wso2.carbon.connectors", "enabled");
salesforceConnectorProperties =
Index: src/test/resources/artifacts/ESB/config/SalesforceQueryProxy.xml
===================================================================
--- src/test/resources/artifacts/ESB/config/SalesforceQueryProxy.xml
(revision 194055)
+++ src/test/resources/artifacts/ESB/config/SalesforceQueryProxy.xml
(working copy)
@@ -11,16 +11,16 @@
scope="default" type="STRING"
xmlns:per="http://connector.esb.wso2.org"/>
<property action="set" expression="//per:conifg/per:url"
name="url" scope="default" type="STRING"
xmlns:per="http://connector.esb.wso2.org"/>
- <salesforce_1.0.0.config>
+ <salesforce.init>
<username>{get-property('username')}</username>
<password>{get-property('password')}</password>
<loginUrl>{get-property('url')}</loginUrl>
- </salesforce_1.0.0.config>
+ </salesforce.init>
<log category="INFO" level="full" separator=","/>
- <salesforce_1.0.0.queryAll>
+ <salesforce.queryAll>
<batchSize>200</batchSize>
<queryString>select id,name from Account</queryString>
- </salesforce_1.0.0.queryAll>
+ </salesforce.queryAll>
<header action="remove" name="To"/>
<property action="remove" name="NO_ENTITY_BODY" scope="axis2"/>
<property action="set" name="RESPONSE" scope="default"
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev