Re: [Dev] Can't we use waitForAPIDeploymentSync() for standalone mode tests?

2016-03-06 Thread Dharshana Warusavitharana
Ye lets remove the spring dependency from code . And use default product version. Thank you, Dharshana. On Sat, Mar 5, 2016 at 1:06 PM, Bhathiya Jayasekara wrote: > FYI: In APIM we have spring.framework_3.2.9.wso2v1.jar. (I don't see any > spring dependency in your webapp

Re: [Dev] Can't we use waitForAPIDeploymentSync() for standalone mode tests?

2016-03-04 Thread Bhathiya Jayasekara
FYI: In APIM we have spring.framework_3.2.9.wso2v1.jar. (I don't see any spring dependency in your webapp code.) Thanks, Bhathiya On Sat, Mar 5, 2016 at 12:18 PM, Bhathiya Jayasekara wrote: > Hi Dharshana, > > I updated the webapp, and now I'm getting this runtime exception.

Re: [Dev] Can't we use waitForAPIDeploymentSync() for standalone mode tests?

2016-03-04 Thread Bhathiya Jayasekara
Hi Dharshana, I updated the webapp, and now I'm getting this runtime exception. *java.lang.NoSuchMethodError: org.springframework.beans.factory.xml.XmlBeanDefinitionReader.setEnvironment(Lorg/springframework/core/env/Environment;)V* As per [1], it needs a later version of spring-beans. Can you

Re: [Dev] Can't we use waitForAPIDeploymentSync() for standalone mode tests?

2016-02-26 Thread Bhathiya Jayasekara
Thanks a lot for the detailed information Dharshana. I will add and use this webapp. Thanks, Bhathiya On Fri, Feb 26, 2016 at 9:42 PM, Dharshana Warusavitharana < dharsha...@wso2.com> wrote: > Hi Bhatiya, > > This uses web app deployed in product to expose set of APIs deployed to > Synapse

Re: [Dev] Can't we use waitForAPIDeploymentSync() for standalone mode tests?

2016-02-26 Thread Dharshana Warusavitharana
Hi Bhatiya, This uses web app deployed in product to expose set of APIs deployed to Synapse context. We originally developed this to monitor dep sync between gateway nodes. You can take the web app form [1] and implement until as this to check this. There is a web app on APIM repo as well on [2].

[Dev] Can't we use waitForAPIDeploymentSync() for standalone mode tests?

2016-02-26 Thread Bhathiya Jayasekara
Hi TA team, In [1], inside waitForAPIDeploymentSync() method, it checks for ExecutionEnvironment.PLATFORM before proceeding to wait. But even in standalone mode, I have seen API invocations sometimes fail as API is not completely deployed at that time. So, removing above conditional check and