Re: [Dev] GReg530: Governance REST API: Adding Associations to an Asset
Hi Rajith, For Registry API we need to use the registry path; but is there a way to create an association using asset ids of two assets? Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Fri, Jan 12, 2018 at 6:02 PM, Saneth Dharmakeerthi <sane...@wso2.com> wrote: > Thanks Rajith for the information. > > Thanks and Best Regards, > > Saneth Dharmakeerthi > *Associate Technical Lead* > WSO2, Inc. > Mobile: +94772325511 <+94%2077%20232%205511> > > <http://wso2.com/signature> > > On Fri, Jan 12, 2018 at 3:27 PM, Rajith Roshan <raji...@wso2.com> wrote: > >> Hi Saneth, >> >> Can you try this with the Registry Rest API[1] >> >> [1] - https://docs.wso2.com/display/Governance530/Associations+ >> with+REST+API >> >> >> Thanks! >> Rajith >> >> On Fri, Jan 12, 2018 at 3:19 PM, Saneth Dharmakeerthi <sane...@wso2.com> >> wrote: >> >>> Hi, >>> >>> Is there a way that I can create an association among 2 assets >>> using Governance REST API? >>> >>> Thanks and Best Regards, >>> >>> Saneth Dharmakeerthi >>> *Associate Technical Lead* >>> WSO2, Inc. >>> Mobile: +94772325511 <+94%2077%20232%205511> >>> >>> <http://wso2.com/signature> >>> >> >> >> >> -- >> Rajith Roshan >> Senior Software Engineer, WSO2 Inc. >> Mobile: +94-7 <%2B94-71-554-8430>17-064-214 >> > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] GReg530: Governance REST API: Adding Associations to an Asset
Thanks Rajith for the information. Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Fri, Jan 12, 2018 at 3:27 PM, Rajith Roshan <raji...@wso2.com> wrote: > Hi Saneth, > > Can you try this with the Registry Rest API[1] > > [1] - https://docs.wso2.com/display/Governance530/ > Associations+with+REST+API > > > Thanks! > Rajith > > On Fri, Jan 12, 2018 at 3:19 PM, Saneth Dharmakeerthi <sane...@wso2.com> > wrote: > >> Hi, >> >> Is there a way that I can create an association among 2 assets >> using Governance REST API? >> >> Thanks and Best Regards, >> >> Saneth Dharmakeerthi >> *Associate Technical Lead* >> WSO2, Inc. >> Mobile: +94772325511 <+94%2077%20232%205511> >> >> <http://wso2.com/signature> >> > > > > -- > Rajith Roshan > Senior Software Engineer, WSO2 Inc. > Mobile: +94-7 <%2B94-71-554-8430>17-064-214 > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] GReg530: Governance REST API: Adding Associations to an Asset
Hi, Is there a way that I can create an association among 2 assets using Governance REST API? Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <+94%2077%20232%205511> <http://wso2.com/signature> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Add asset information with multivalue attributes using Governance REST API
Thanks, Chandana & Prasanna for the information. Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <+94%2077%20232%205511> <http://wso2.com/signature> On Sat, Dec 9, 2017 at 5:32 PM, Chandana Napagoda <cnapag...@gmail.com> wrote: > Hi, > > It seems that the code is written in a way that, adding and retrieval of > the unbounded tables fields are not supported. So we might have to change > some codes to support this requirement. > > Regards, > Chandana > > Blog: http://blog.napagoda.com > Linkedin: https://www.linkedin.com/in/chandananapagoda/ > > On 7 December 2017 at 18:56, Saneth Dharmakeerthi <sane...@wso2.com> > wrote: > >> Hi Prasanna, >> >> Thanks for the investigation help. I tried to GET request in GREG 530 it >> also not returning the unbounded table values (multivalue tables). it >> seems this issue is there in both GET and POST in GREG 530 >> >> >> Thanks and Best Regards, >> >> Saneth Dharmakeerthi >> *Associate Technical Lead* >> WSO2, Inc. >> Mobile: +94772325511 <+94%2077%20232%205511> >> >> <http://wso2.com/signature> >> >> On Thu, Dec 7, 2017 at 12:32 PM, Prasanna Dangalla <prasa...@wso2.com> >> wrote: >> >>> HI All, >>> >>> Saneth and I Investigated this issue and it seems to be the POST request >>> cannot send unbounded table field values. But I remember fixing this in GET >>> requests. [1,2]. >>> >>> [1] - https://github.com/wso2/carbon-governance/pull/103/ >>> <https://github.com/wso2/carbon-governance/pull/242/files> >>> [2] - https://github.com/wso2/carbon-governance/pull/242/files >>> >>> Thanks >>> >>> *Prasanna Dangalla* >>> Senior Software Engineer, WSO2, Inc.; http://wso2.com/ >>> lean.enterprise.middleware >>> >>> >>> *cell: +94 718 11 27 51* >>> *twitter: @prasa77* >>> >>> On Wed, Dec 6, 2017 at 2:54 PM, Saneth Dharmakeerthi <sane...@wso2.com> >>> wrote: >>> >>>> Hi, >>>> >>>> I am writing a client to import asset information to GREG using >>>> Governance REST API [1]. >>>> If assert has multivalue tables I wonder how we can include them in the >>>> POST request. >>>> >>>> Appreciate your feedback on how can I accomplish this task. >>>> >>>> >>>> >>>> [1] https://docs.wso2.com/display/Governance500/Governance+REST+API >>>> >>>> >>>> Thanks and Best Regards, >>>> >>>> Saneth Dharmakeerthi >>>> *Associate Technical Lead* >>>> WSO2, Inc. >>>> Mobile: +94772325511 <+94%2077%20232%205511> >>>> >>>> <http://wso2.com/signature> >>>> >>> >>> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Add asset information with multivalue attributes using Governance REST API
Hi Prasanna, Thanks for the investigation help. I tried to GET request in GREG 530 it also not returning the unbounded table values (multivalue tables). it seems this issue is there in both GET and POST in GREG 530 Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Thu, Dec 7, 2017 at 12:32 PM, Prasanna Dangalla <prasa...@wso2.com> wrote: > HI All, > > Saneth and I Investigated this issue and it seems to be the POST request > cannot send unbounded table field values. But I remember fixing this in GET > requests. [1,2]. > > [1] - https://github.com/wso2/carbon-governance/pull/103/ > <https://github.com/wso2/carbon-governance/pull/242/files> > [2] - https://github.com/wso2/carbon-governance/pull/242/files > > Thanks > > *Prasanna Dangalla* > Senior Software Engineer, WSO2, Inc.; http://wso2.com/ > lean.enterprise.middleware > > > *cell: +94 718 11 27 51* > *twitter: @prasa77* > > On Wed, Dec 6, 2017 at 2:54 PM, Saneth Dharmakeerthi <sane...@wso2.com> > wrote: > >> Hi, >> >> I am writing a client to import asset information to GREG using >> Governance REST API [1]. >> If assert has multivalue tables I wonder how we can include them in the >> POST request. >> >> Appreciate your feedback on how can I accomplish this task. >> >> >> >> [1] https://docs.wso2.com/display/Governance500/Governance+REST+API >> >> >> Thanks and Best Regards, >> >> Saneth Dharmakeerthi >> *Associate Technical Lead* >> WSO2, Inc. >> Mobile: +94772325511 <+94%2077%20232%205511> >> >> <http://wso2.com/signature> >> > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Add asset information with multivalue attributes using Governance REST API
Hi, I am writing a client to import asset information to GREG using Governance REST API [1]. If assert has multivalue tables I wonder how we can include them in the POST request. Appreciate your feedback on how can I accomplish this task. [1] https://docs.wso2.com/display/Governance500/Governance+REST+API Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <+94%2077%20232%205511> <http://wso2.com/signature> ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] An error message(s) popup when testing on throttling.
Hi Senuwan. Please check your configuration where the connections to TM node is correct[1]. The same issue in [2] [1] https://docs.wso2.com/display/AM210/Distributed+ Deployment+of+API+Manager [2]. [Dev] API with Ip based throttling gives an error Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <+94%2077%20232%205511> <http://wso2.com/signature> On Thu, Nov 23, 2017 at 12:56 PM, Senuwan Withana <senu...@wso2.com> wrote: > Hi Team, > > *I have added IP base throttling to my API Manager pack. * > > > > > > *When I tried throttling scenario Following error messages popup* > > [2017-11-23 12:50:30,421] INFO - DependencyTracker Local entry : > gov:/apimgt/statistics/ga-config.xml was added to the Synapse > configuration successfully > [2017-11-23 12:50:30,484] INFO - JMSConnectionFactory JMS > ConnectionFactory : jmsEventPublisher initialized > [2017-11-23 12:50:30,514] INFO - AMQConnection Unable to connect to > broker at tcp://localhost:5672 > org.wso2.andes.transport.TransportException: Could not open connection > at org.wso2.andes.transport.network.mina.MinaNetworkTransport$I > oConnectorCreator.connect(MinaNetworkTransport.java:216) > at org.wso2.andes.transport.network.mina.MinaNetworkTransport. > connect(MinaNetworkTransport.java:74) > at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerCo > nnection(AMQConnectionDelegate_8_0.java:130) > at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631) > at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628) > at java.security.AccessController.doPrivileged(Native Method) > at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQ > Connection.java:628) > at org.wso2.andes.client.AMQConnection.(AMQConnection.java:409) > at org.wso2.andes.client.AMQConnectionFactory.createConnection( > AMQConnectionFactory.java:351) > at org.wso2.andes.client.AMQConnectionFactory.createConnection( > AMQConnectionFactory.java:40) > at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSUt > ils.createConnection(JMSUtils.java:387) > at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSCo > nnectionFactory.createConnection(JMSConnectionFactory.java:268) > at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSCo > nnectionFactory$PoolableJMSConnectionFactory.makeObject(JMSC > onnectionFactory.java:356) > at org.apache.commons.pool.impl.GenericObjectPool.borrowObject( > GenericObjectPool.java:1181) > at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSCo > nnectionFactory.getConnectionFromPool(JMSConnectionFactory.java:286) > at org.wso2.carbon.event.output.adapter.jms.internal.util.JMSMe > ssageSender.send(JMSMessageSender.java:86) > at org.wso2.carbon.event.output.adapter.jms.JMSEventAdapter$JMS > Sender.run(JMSEventAdapter.java:284) > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool > Executor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo > lExecutor.java:617) > at java.lang.Thread.run(Thread.java:748) > [2017-11-23 12:50:30,518] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << > "GET /services/AsiriPatientService/patient HTTP/1.1[\r][\n]" > [2017-11-23 12:50:30,519] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << > "Authorization: Basic YWRtaW46YWRtaW4=[\r][\n]" > [2017-11-23 12:50:30,519] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << > "Origin: https://10.100.7.13:9444[\r][\n]; > [2017-11-23 12:50:30,519] DEBUG - wire HTTPS-Sender I/O dispatcher-2 << > "X-JWT-Assertion: eyJ0eXAiOiJKV1QiLCJhbGciOiJub2 > 5lIn0=.eyJodHRwOlwvXC93c28yLm9yZ1wvY2xhaW1zXC91c2VyaWQiOiIwM > zY0MDVkMC03MDM4LTQxNmUtYTVmYy05M2QzZTc4OWEzZWQiLCJodHRwOlwvX > C93c28yLm9yZ1wvY2xhaW1zXC91c2VybmFtZSI6InBhdGllbnQiLCJodHRwO > lwvXC93c28yLm9yZ1wvY2xhaW1zXC9yb2xlIjpbIkFwcGxpY2F0aW9uXC9wY > XRpZW50X3Nzc3NfUFJPRFVDVElPTiIsIkludGVybmFsXC9zdWJzY3JpYmVyI > iwiSW50ZXJuYWxcL2NyZWF0b3IiLCJJbnRlcm5hbFwvcHVibGlzaGVyIiwiS > W50ZXJuYWxcL2V2ZXJ5b25lIiwicGF0aWVudFJvbGUiXSwiaHR0cDpcL1wvd > 3NvMi5vcmdcL2NsYWltc1wvYXBwbGljYXRpb250aWVyIjoiVW5saW1pdGVkI > iwiaHR0cDpcL1wvd3NvMi5vcmdcL2NsYWltc1wva2V5dHlwZSI6IlBST0RVQ > 1RJT04iLCJodHRwOlwvXC93c28yLm9yZ1wvY2xhaW1zXC92ZXJzaW9uIjoid > jEiLCJpc3MiOiJ3c28yLm9yZ1wvcHJvZHVjdHNcL2FtIiwiaHR0cDpcL1wvd > 3NvMi5vcmdcL2NsYWltc1wvYXBwbGljYXRpb25uYW1lIjoiVGVzdGFQUCIsI > mh0dHA6XC9cL3dzbzIub3JnXC9jbGFpbXNcL2VuZHVzZXIiOiJwYXRpZW50Q > GNhcmJvbi5zdXBlciIsImh0dHA6XC9cL3dzbzIub3JnXC9jbGFpbXNcL2VuZ > HVzZXJUZW5hbnRJZCI6Ii0xMjM0IiwiaHR0cDpcL1wvd3NvMi5vcmdcL2NsY >
Re: [Dev] Secure Communication using JSON Web Token (JWT)
Hi Thivya, To check the JWT is get altered or not, you need to do a signature verification. Please refer articles. [1] https://jwt.io/introduction/ <https://jwt.io/introduction/> [2] http://sanjeewamalalgoda.blogspot.com/2015/05/wso2-api-manager-decode-jwt-in-esb.html [3] http://xacmlinfo.org/2015/03/19/validate-and-process-jwt-tokens-with-java/ Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Thu, Nov 23, 2017 at 11:10 AM, Thivya Mahenthirarasa <thi...@wso2.com> wrote: > Hi Dev, > > I'm transferring some attributes by the claims of *JSON Web Token (JWT) *from > the end user(APIM210) to my backend(ESB500) by following the wos2 doc[1]. > > And I have used Base64Utils to decode the head attributes and received the > needed attribute at the synapse level of the ESB(backend). The piece of > codes is as follows. > > But I feel not satisfied that it's not a secure way as this encoding and > decoding can be modified by the third party in during the communication. > > Could you help in suggesting ideas in achieving the validation to be done > in ESB level(decoding should be done in ESB level )? > > > String jwt_assertion = (String) headers.get("x-jwt-assertion"); //the header > element from jwt > > String [] jwt_assertion_items = jwt_assertion.split("\\."); > > byte[] byteArray = Base64Utils.decode(jwt_assertion_items[1]); // retrieve > the JWT payload > > > > [1] https://docs.wso2.com/display/AM200/Passing+Enduser+ > Attributes+to+the+Backend+Using+JWT#PassingEnduserAttributestotheB > ackendUsingJWT-ChangingtheJWTencodingtoBase64URLencoding > > > Thanks in advance > > > > Regards, > Thivya > -- > > *Thivya Mahenthirarasa* > > *Software Engineer -Support Team | WSO2* > > > *Email: thi...@wso2.com <thi...@wso2.com>* > > *Mobile: +94766461966 <+94%2076%20646%201966> <http://wso2.com/signature>* > *Web: http://wso2.com <http://wso2.com>* > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Not able to access xslt from inside wso2 xslt mediator. Please guide.
Hi Aditya, Seems you adding it correctly, let us know if you are experiencing any issues on this. Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Tue, Nov 21, 2017 at 8:57 PM, aditya shivankar < shivankar.adit...@gmail.com> wrote: > Respected Sir, > > I also tried putting the xslt in registry through management console. But > something I am doing wrong. > > Please check attachment. > > With Regards, > Aditya > > On Tue, Nov 21, 2017 at 8:31 PM, aditya shivankar < > shivankar.adit...@gmail.com> wrote: > >> Respected Sir, >> >> I think I need to learn by the word registry, where actually I am suppose >> to keep the xslt file. >> >> Went through all the links pasted in the mail chain, but still not clear. >> >> As shown in the screenshot attached, I creted the xsl file inside >> registry folder that gets created when we create "ESB Solution project". >> >> Please let me know , how to correct it( if wrong ). Please consider I am >> very new to wso2. >> >> With Regards, >> Aditya >> >> >> >> On Mon, Nov 20, 2017 at 10:16 PM, Vijitha Ekanayake <vijit...@wso2.com> >> wrote: >> >>> Hi Aditya, >>> >>> It seems that the reason for xsl file not picking up from the registry >>> is, you are not referring the registry entry in the correct way inside XSLT >>> mediator configurations. You need to point the relevant registry entry with >>> XSLT mediator as below. >>> >>> >>> >>> >>> Also make sure to provide correct registry (whether config or govanance >>> registry) as key to XSLT mediator. >>> >>> >>> Thanks. >>> >>> On Mon, Nov 20, 2017 at 9:55 PM, aditya shivankar < >>> shivankar.adit...@gmail.com> wrote: >>> >>>> Respected Sir, >>>> >>>> Now I tried putting xsl file under registry, still not able to use >>>> it. Please check the screenshot attached. >>>> Could you please send the screenshot of your workspace in eclipse >>>> (similar to the attached screenshot), showing where to keep the xslt in >>>> project structure and also project xml file showing how you access it. >>>> >>>> With Regards, >>>> Aditya >>>> >>>> >>>> On Mon, Nov 20, 2017 at 11:42 AM, aditya shivankar < >>>> shivankar.adit...@gmail.com> wrote: >>>> >>>>> Respected Sir/Madam, >>>>> >>>>> Now I tried putting xsl file under registry, still not able to use >>>>> it. Please check the screenshot attached. >>>>> Could you please send the screenshot of your workspace in eclipse >>>>> (similar to the attached screenshot), showing where to keep the xslt in >>>>> project structure and also project xml file showing how you access it. >>>>> >>>>> With Regards, >>>>> Aditya >>>>> >>>>> On Wed, Nov 15, 2017 at 7:41 PM, Saneth Dharmakeerthi < >>>>> sane...@wso2.com> wrote: >>>>> >>>>>> Hi Aditya, >>>>>> >>>>>> It seems you have put the XSLT in API folder and try to access it in >>>>>> incorrect way. >>>>>> >>>>>> You can do this by either one of following ways and the first one is >>>>>> the recommended. >>>>>> >>>>>> >>>>>>1. Put the XSLT to the registry. you can find more information >>>>>>in[1][3]. If you change the xslt in registry it will effect imidiatly. >>>>>>2. Put it as local entry[1][2], XSLT change exffect only after >>>>>>next API or peoxy deployment. >>>>>> - >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> [1]https://docs.wso2.com/display/ESB500/Sample+8%3A+Introduc >>>>>> tion+to+Static+and+Dynamic+Registry+Resources+and+Using+XSLT >>>>>> +Transformations >>>>>> [2] http://mytecheye.blogspot.com/2013/12/wso2-esb-xslt-medi >>>>>> ator-xslt-imports.html >>>>>> [3] https://www.linkedin.com/pulse/wso2-esb-message-transfor >>>>>> mation-mapping-using-xslt-isuru-jayakantha >>>>>> >>>>>&
Re: [Dev] Pass user details into the out sequence.
Hi Senuwan, If you set a value to a property in default context (Synapse), It should be accessible throughout in and out sequence[1][2][3]. The behavior might different if you set this value inside a Clone or Iterator? [1]https://docs.wso2.com/display/EI610/Property+Mediator [2]http://soatutorials.blogspot.com/2014/03/wso2-esb- properties-tutorial.html [3] http://blog.facilelogin.com/2011/02/wso2-esb-property- mediator-different.html Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <+94%2077%20232%205511> <http://wso2.com/signature> On Wed, Nov 22, 2017 at 11:13 AM, Senuwan Withana <senu...@wso2.com> wrote: > Hi Guys, > > Thanks for the replies . > > I was able to take the user role from class mediator in the in sequence > But I could not able to pass that value into the out sequence. > > Thanks, > *Senuwan Withana* > Software Engineer - Support Team | WSO2 > > Email : senu...@wso2.com > Mobile: 94773212853 > Web: http://www.wso2.com > > > > On Wed, Nov 22, 2017 at 10:51 AM, Himasha Guruge <himas...@wso2.com> > wrote: > >> Hi Senuwan, >> >> What is your requirement here? Could you post your complete synapse >> configuration? >> >> Thanks, >> Himasha >> >> On Wed, Nov 22, 2017 at 10:09 AM, Senuwan Withana <senu...@wso2.com> >> wrote: >> >>> Hi Team, >>> >>> >>> I have created the below class mediator to call my JWTRoleReder, in >>> Sequence . >>> >>> >>> >>> >>> >>> >>> However I could not able to pass above details into the outSequence . >>> Kindly suggest solutions? >>> >>> Thanks. >>> *Senuwan Withana* >>> Software Engineer - Support Team | WSO2 >>> >>> Email : senu...@wso2.com >>> Mobile: 94773212853 >>> Web: http://www.wso2.com >>> >>> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Himasha Guruge >> Senior Software Engineer >> WS*O2* *Inc.* >> Mobile: +94 777459299 <+94%2077%20745%209299> >> himas...@wso2.com >> > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Build fails in identity-outbound-auth-passwordPolicy
Hi, IMO this should be a part of automation test. Before starting the test method, it should set all the prerequisites. Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Thu, Nov 16, 2017 at 5:46 PM, Prakhash Sivakumar <prakh...@wso2.com> wrote: > Hi Nadeeshani, > > You need to add the CARBON_CONFIG_DIR_PATH as environment variable before > building the code > ex : export CARBON_CONFIG_DIR_PATH="/repository/conf" > > Thanks, > Prakhash > > On Thu, Nov 16, 2017 at 2:12 PM, Nadeeshani Pathirennehelage < > nadeesha...@wso2.com> wrote: > >> Hi All, >> >> When I am trying to build the identity-outbound-auth-passwordPolicy[1] >> it fails due to a test failure. >> >> Error is given below. >> >> Tests run: 19, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.746 >> sec <<< FAILURE! - in TestSuite >> testInitiateAuthRequestSuccess(org.wso2.carbon.extension.ide >> ntity.authenticator.passwordpolicy.test.PasswordChangeEnforcerOnExpirationTest) >> Time elapsed: 0.09 sec <<< FAILURE! >> java.lang.ExceptionInInitializerError: null >> at java.util.Hashtable.put(Hashtable.java:514) >> at java.util.Properties.setProperty(Properties.java:161) >> at java.lang.System.setProperty(System.java:787) >> at org.wso2.carbon.utils.CarbonUtils.getCarbonHome(CarbonUtils. >> java:240) >> at org.wso2.carbon.utils.CarbonUtils.getCarbonConfigDirPath(Car >> bonUtils.java:284) >> at org.wso2.carbon.identity.policy.password.PasswordChangeUtils >> .loadProperties(PasswordChangeUtils.java:52) >> at org.wso2.carbon.identity.policy.password.PasswordChangeUtils >> .(PasswordChangeUtils.java:41) >> at org.wso2.carbon.identity.policy.password.PasswordChangeEnfor >> cerOnExpiration.initiateAuthRequest(PasswordCh >> angeEnforcerOnExpiration.java:165) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce >> ssorImpl.java:57) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >> thodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:606) >> at org.powermock.reflect.internal.WhiteboxImpl.performMethodInv >> ocation(WhiteboxImpl.java:1899) >> at org.powermock.reflect.internal.WhiteboxImpl.doInvokeMethod( >> WhiteboxImpl.java:801) >> at org.powermock.reflect.internal.WhiteboxImpl.invokeMethod( >> WhiteboxImpl.java:666) >> at org.powermock.reflect.Whitebox.invokeMethod(Whitebox.java:401) >> at org.wso2.carbon.extension.identity.authenticator.passwordpol >> icy.test.PasswordChangeEnforcerOnExpirationTest.testInitiate >> AuthRequestSuccess(PasswordChangeEnforcerOnExpirationTest.java:265) >> >> >> Results : >> >> Failed tests: >> PasswordChangeEnforcerOnExpirationTest.testInitiateAuthRequestSuccess:265 >> » ExceptionInInitializer >> >> >> I tried to build it using both Java7 and Java8. But it gives the same >> error. >> >> Any thoughts or help on this is highly appreciated. >> >> [1] https://github.com/wso2-extensions/identity-outbound-auth-pa >> sswordPolicy >> >> Thanks, >> Nadeeshani. >> -- >> Pathirennehelage Nadeeshani >> Software Engineer | WSO2 Inc. >> Platform Security Team >> mobile : +94 716545223 <+94%2071%20654%205223> >> >> > > > -- > Prakhash Sivakumar > Software Engineer | WSO2 Inc > Platform Security Team > Mobile : +94771510080 <+94%2077%20151%200080> > Blog : https://medium.com/@PrakhashS > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Not able to access xslt from inside wso2 xslt mediator. Please guide.
Hi Aditya, It seems you have put the XSLT in API folder and try to access it in incorrect way. You can do this by either one of following ways and the first one is the recommended. 1. Put the XSLT to the registry. you can find more information in[1][3]. If you change the xslt in registry it will effect imidiatly. 2. Put it as local entry[1][2], XSLT change exffect only after next API or peoxy deployment. - [1] https://docs.wso2.com/display/ESB500/Sample+8%3A+Introduction+to+Static+and+Dynamic+Registry+Resources+and+Using+XSLT+Transformations [2] http://mytecheye.blogspot.com/2013/12/wso2-esb-xslt-mediator-xslt-imports.html [3] https://www.linkedin.com/pulse/wso2-esb-message-transformation-mapping-using-xslt-isuru-jayakantha Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Wed, Nov 15, 2017 at 6:40 PM, aditya shivankar < shivankar.adit...@gmail.com> wrote: > Respected Sir, > > I have one xslt . > I have saved it inside api(src/main/synapse-config/api) folder in my > project. > I am trying to access it using xslt mediator like below. > > > > But getting below error.Full logs can be found in attachment . > > [2017-11-15 18:11:39,128] [EI-Core] INFO - DependencyTracker Local entry > : api/test.xsl was added to the Synapse configuration successfully > [2017-11-15 18:11:39,129] [EI-Core] WARN - SynapseConfigUtils Cannot > convert null to a StreamSource > [2017-11-15 18:11:39,131] [EI-Core] ERROR - XSLTMediator Error creating > XSLT transformer using : Value {name ='null', keyValue ='api/test.xsl'} > org.apache.synapse.SynapseException: Cannot convert null to a StreamSource > at org.apache.synapse.config.SynapseConfigUtils.handleException( > SynapseConfigUtils.java:580) > at org.apache.synapse.config.SynapseConfigUtils.getStreamSource( > SynapseConfigUtils.java:81) > at org.apache.synapse.mediators.transform.XSLTMediator. > createTemplate(XSLTMediator.java:420) > at org.apache.synapse.mediators.transform.XSLTMediator. > performXSLT(XSLTMediator.java:268) > at org.apache.synapse.mediators.transform.XSLTMediator. > mediate(XSLTMediator.java:227) > --- > I tried printing body/jsonObject just one line before call to xslt. And it > printed full payload, somewhat like below. So the payload is not empty. > > . > > > > > > Please Guide. > > With Regards, > Aditya > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS] [OAuth] Validating and renewing an access token with one call.
Hi all Two options provided by Farasath is better than using refresh token all the time and creating a custom API to do both validate and refresh task. - Using refresh token all the time is not good for performance wise. - Creating a custom API to do both validate and refresh task is not suitable because resource server does the access token validation and the refresh token call happens in between OAuth client and authorization server. So giving the refresh token to resource server seems a spec violation and security risk. Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Wed, Nov 15, 2017 at 11:24 AM, Farasath Ahamed <farasa...@wso2.com> wrote: > > > Farasath Ahamed > Software Engineer, WSO2 Inc.; http://wso2.com > Mobile: +94777603866 > Blog: blog.farazath.com > Twitter: @farazath619 <https://twitter.com/farazath619> > <http://wso2.com/signature> > > > > On Wed, Nov 15, 2017 at 10:56 AM, Thilina Madumal <thilina...@wso2.com> > wrote: > >> >> >> On Wed, Nov 15, 2017 at 9:42 AM, Farasath Ahamed <farasa...@wso2.com> >> wrote: >> >>> >>> >>> >>> On Wed, Nov 15, 2017 at 9:03 AM, Thilina Madumal <thilina...@wso2.com> >>> wrote: >>> >>>> Hi Farazath, >>>> >>>> Thanks for the reply. Please see the inline comments. >>>> >>>> On Tue, Nov 14, 2017 at 11:10 PM, Farasath Ahamed <farasa...@wso2.com> >>>> wrote: >>>> >>>>> >>>>> >>>>> On Tuesday, November 14, 2017, Thilina Madumal <thilina...@wso2.com> >>>>> wrote: >>>>> >>>>>> Hi Devs, >>>>>> >>>>>> I'm working implementing an SPA that uses OAuth access-token in >>>>>> securing resource access. >>>>>> In the documentation [1] I found that to validate the access token >>>>>> that I already have obtained, the introspection endpoint can be used. >>>>>> >>>>>> My question is, is there a way where I can send both the accesss >>>>>> token and the refresh token, then IS will validate the access token, and >>>>>> if >>>>>> the access token is expired IS will issue a new access token for the >>>>>> given >>>>>> refresh token. >>>>>> >>>>>> I understand that the above use-case can be achieved by 2 requests to >>>>>> the IS. But I'm curious is to know whether there is a way to achieve this >>>>>> by a single request. >>>>>> >>>>> >>>>> Introspection Endpoint is basically an endpoint used to gather >>>>> validate and gather metadata about the access token. >>>>> >>>>> Usually this will be used by a resource server to validate an access >>>>> token presented by an oauth client. Resource server will introspect the >>>>> token to get metadata and authorize access. >>>>> >>>>> Meanwhile, a refresh token flow is between the oauth client and >>>>> authorization server. >>>>> >>>>> So the requirement you have presented does not fit into the >>>>> introspection call/endpoint. ie. Introspection and token refresh in one >>>>> call simply because there are two completely different flows. >>>>> >>>> >>>> In end-user perspective this would be a nice to have feature unless it >>>> is not a spec violation. >>>> On the other hand it do not need to be the introspection endpoint, it >>>> can be some custom endpoint where it takes the access-token and >>>> refresh-token and has the following behavior; >>>> >>>>- if the access-token is still valid return the same accesss-token >>>>and refresh-token. >>>>- if access-token is expired exchange the refresh-token for a new >>>>access-token, and return the new access-token and a new refresh-token. >>>> >>>> Okay in that case we can go for a custom grant type. Grant type will >>> accept an access token and a refresh token and have the behaviour you have >>> described. Anyways if the requirement is to make sure we have an active >>> token all the time why not simply refresh the token :) >>> >> >> Is it a recommended approach? I mean refreshing the a
Re: [Dev] Exception while invoking proxy service in ESB 5.0.0
Hi Dilusha, Your calling method is In only wsdl:operation name="postMediData"> If the WSDL is defined the service endpoint as an IN-ONLY operation, then you should call that service in the same manner. For that; we can use the below property before calling that particular service. ** Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Mon, Nov 13, 2017 at 12:52 PM, Dilusha Alphonso <dilu...@wso2.com> wrote: > 1.I invoke the proxy service in ESB 5.0.0. > > 2.I attached a wire log of the proxy service. > > [2017-11-13 12:48:06,483] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "POST /services/Durdans HTTP/1.1[\r][\n]" > [2017-11-13 12:48:06,484] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "Accept-Encoding: gzip,deflate[\r][\n]" > [2017-11-13 12:48:06,484] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "Content-Type: text/xml;charset=UTF-8[\r][\n]" > [2017-11-13 12:48:06,484] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "SOAPAction: "urn:postMediData"[\r][\n]" > [2017-11-13 12:48:06,484] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "Content-Length: 2149[\r][\n]" > [2017-11-13 12:48:06,484] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "Host: dilusha-ThinkPad-X1-Carbon-5th:8243[\r][\n]" > [2017-11-13 12:48:06,484] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "Connection: Keep-Alive[\r][\n]" > [2017-11-13 12:48:06,484] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]" > [2017-11-13 12:48:06,484] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "[\r][\n]" > [2017-11-13 12:48:06,484] DEBUG - headers http-incoming-4 >> POST > /services/Durdans HTTP/1.1 > [2017-11-13 12:48:06,484] DEBUG - headers http-incoming-4 >> > Accept-Encoding: gzip,deflate > [2017-11-13 12:48:06,484] DEBUG - headers http-incoming-4 >> Content-Type: > text/xml;charset=UTF-8 > [2017-11-13 12:48:06,484] DEBUG - headers http-incoming-4 >> SOAPAction: > "urn:postMediData" > [2017-11-13 12:48:06,484] DEBUG - headers http-incoming-4 >> > Content-Length: 2149 > [2017-11-13 12:48:06,484] DEBUG - headers http-incoming-4 >> Host: > dilusha-ThinkPad-X1-Carbon-5th:8243 > [2017-11-13 12:48:06,484] DEBUG - headers http-incoming-4 >> Connection: > Keep-Alive > [2017-11-13 12:48:06,485] DEBUG - headers http-incoming-4 >> User-Agent: > Apache-HttpClient/4.1.1 (java 1.5) > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "http://schemas. > xmlsoap.org/soap/envelope/" xmlns:ser="http://service.sample.durdans.com; > xmlns:xsd="http://dto.service.sample.durdans.com/xsd;>[\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " [\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " [\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " [\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " [\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " [\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "[\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "[\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " [\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " ?[\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " [\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " ?[\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " [\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > " ?[\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "[\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "[\n]" > [2017-11-13 12:48:06,487] DEBUG - wire HTTPS-Listener I/O dispatcher-1 >> > "[\n]" > [2017-11-13
Re: [Dev] Exception while invoking proxy service in ESB 5.0.0
Hi Dilusha, Its bit unclear how you execute this, 1) From SOAP-UI you invoke APIM or ESB? 2) Enable the wire logs and share them (both APIM and ESB as needed) Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Sat, Nov 11, 2017 at 3:22 PM, Dilusha Alphonso <dilu...@wso2.com> wrote: > I have attached the diagram of task. > [image: Inline image 1] > > In ESB 5.0.0 I created the proxy service. Those configurations attached > below. > > > http://ws.apache.org/ns/synapse; >name="Durdans" >startOnLoad="true" >statistics="disable" >trace="disable" >transports="http,https"> > > > scope="transport" >value="Basic ZGlsdXNoYTpkaWx1c2hhMTIz"/> > > >https://192.168.55.160:9443/services/ > DurdansPatientService"/> > > > > > > > >http://192.168.55.160:9763/services/ > DurdansPatientService?wsdl"/> > > > > When I invoke the proxy service using SOAPUI. I got the above exception. > > Thanks > Dilusha > > > > > On Sat, Nov 11, 2017 at 12:38 AM, Vijitha Ekanayake <vijit...@wso2.com> > wrote: > >> Hi Dilusha, >> >> Can you provide more context about the scenario and share the complete >> configurations to provide you a solution. >> >> Thanks. >> >> On Fri, Nov 10, 2017 at 5:29 PM, Dilusha Alphonso <dilu...@wso2.com> >> wrote: >> >>> Hi All, >>> >>> I am working on the scenario. where I have to create a proxy service in >>> ESB 5.0.0 using a WSDL of a SOAP backend service. When I invoke the proxy >>> service using SOAPUI I am getting some error. >>> >>> When I invoke the service with the GET method I get the proper >>> response, but for POST method I could get 202 Accepted response with some >>> exception in the log. >>> >>> java.lang.UnsupportedOperationException: An access occurred >>> that is not valid. >>> at org.apache.axis2.description.InOnlyAxisOperation.getMessage( >>> InOnlyAxisOperation.java:117) >>> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handle >>> Message(SynapseCallbackReceiver.java:324) >>> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receiv >>> e(SynapseCallbackReceiver.java:188) >>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) >>> at org.apache.synapse.transport.passthru.ClientWorker.run(Clien >>> tWorker.java:261) >>> at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.r >>> un(NativeWorkerPool.java:172) >>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >>> Executor.java:1142) >>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >>> lExecutor.java:617) >>> at java.lang.Thread.run(Thread.java:748) >>> >>> Could you please advice on this? >>> >>> Thanks >>> Dilusha >>> -- >>> >>> >>> *Best Regards,Dilusha Alphonso* >>> >>> *Software Engineer - Support Team* >>> >>> >>> *WSO2* >>> *Mobile : * >>> >>> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature] >>> <http://wso2.com/signature>* >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Vijitha Ekanayake >> Senior Software Engineer*, *WSO2, Inc.; http://wso2.com/ >> Mobile : +94 777 24 73 39 | +94 718 74 44 08 >> lean.enterprise.middleware >> > > > > -- > > > *Best Regards,Dilusha Alphonso* > > *Software Engineer - Support Team* > > > *WSO2* > *Mobile : * > > *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature] > <http://wso2.com/signature>* > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [IS as Key Manager] Error when generating keys for application
Hi APIM Team, Docent this a limitation of Store UI? Customer who is using SAML or authorization code grant, Why he needs to enable client_credential? Inst this a security risk? The only thing he needs to do is getting the Client ID and Client Secret, But in Store UI it only shows those after click Generate Key button. Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Thu, Nov 9, 2017 at 9:37 AM, Dilshani Subasinghe <dilsh...@wso2.com> wrote: > Hi Fazlan, > > Ok, now I got it. Thanks for explaining it. > > Regards, > Dilshani > > On Thu, Nov 9, 2017 at 9:21 AM, Fazlan Nazeem <fazl...@wso2.com> wrote: > >> Hi Dilshani, >> >> SAML grant does not depend on client_credentials grant being enabled, but >> in store UI when we generate keys using the Generate Keys button, >> client_credentials grant is used to generate the token. Therefore you have >> to enable client_credentials grant if you are generating keys via UI. I >> think this is what Hrasha meant. >> >> On Thu, Nov 9, 2017 at 12:20 AM, Dilshani Subasinghe <dilsh...@wso2.com> >> wrote: >> >>> Hi Harsha, >>> >>> Thanks for prompt reply. Will follow that. Hope we need to specify that >>> client_credentials grant need for enabling SAML grant in the documentation. >>> >>> Regards, >>> Dilshani >>> >>> On Thu, Nov 9, 2017 at 12:08 AM, Harsha Kumara <hars...@wso2.com> wrote: >>> >>>> Hi Dilshani, >>>> >>>> If you need to generate a token using SAML2 grant you may follow [1]. >>>> In store, you need to select client_credentials grant as we used it in the >>>> store to generate the token for an application. >>>> >>>> [1] https://docs.wso2.com/display/AM1100/Exchanging+SAML2+Be >>>> arer+Tokens+with+OAuth2+-+SAML+Extension+Grant+Type >>>> >>>> On Thu, Nov 9, 2017 at 12:01 AM, Dilshani Subasinghe <dilsh...@wso2.com >>>> > wrote: >>>> >>>>> Hi APIM/IS Team, >>>>> >>>>> I'm working with IS as Key manager setup. (APIM 2.1.0 and >>>>> wso2is-km-5.3.0). In APIM, while generating keys for Applications with >>>>> "SAML" as grant type, it may give an error as follows [1]: >>>>> >>>>> [2017-11-08 23:51:34,102] ERROR - APIUtil Error occurred while >>>>> executing SubscriberKeyMgtClient. >>>>> java.lang.RuntimeException: Error occurred while calling token >>>>> endpoint: HTTP error code : 400 >>>>> at org.wso2.carbon.apimgt.impl.AMDefaultKeyManagerImpl.getNewAp >>>>> plicationAccessToken(AMDefaultKeyManagerImpl.java:367) >>>>> at org.wso2.carbon.apimgt.impl.workflow.AbstractApplicationRegi >>>>> strationWorkflowExecutor.dogenerateKeysForApplication(Abstra >>>>> ctApplicationRegistrationWorkflowExecutor.java:151) >>>>> at org.wso2.carbon.apimgt.impl.workflow.AbstractApplicationRegi >>>>> strationWorkflowExecutor.generateKeysForApplication(Abstract >>>>> ApplicationRegistrationWorkflowExecutor.java:118) >>>>> at org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistration >>>>> SimpleWorkflowExecutor.complete(ApplicationRegistrationSimpl >>>>> eWorkflowExecutor.java:78) >>>>> at org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistration >>>>> SimpleWorkflowExecutor.execute(ApplicationRegistrationSimple >>>>> WorkflowExecutor.java:54) >>>>> at org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalF >>>>> orApplicationRegistration(APIConsumerImpl.java:2789) >>>>> at org.wso2.carbon.apimgt.impl.UserAwareAPIConsumer.requestAppr >>>>> ovalForApplicationRegistration(UserAwareAPIConsumer.java:36) >>>>> at org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject.jsFunc >>>>> tion_getApplicationKey(APIStoreHostObject.java:385) >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>> at sun.reflect.NativeMethodAccessorIm >>>>> >>>>> Any idea on the issue? >>>>> >>>>> [1] error.png >>>>> >>>>> Thanks, >>>>> Dilshani >>>>> >>>>> -- >>>>> >>>>> Dilshani Subasinghe >>>>> Software Engineer - QA *|* WSO2 >>>>> lean *|* enterprise *|* middleware >
Re: [Dev] Docker ReadMe is unclear
Hi Aparna, How to build the Docker image and running steps are mention in the ReadMe file inside the dockerfile folder[1]. Agreed with you, There should be a link form root ReadMe file to this one. [1] https://github.com/wso2/docker-is/tree/release-5.3.0/dockerfile Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Tue, Oct 31, 2017 at 3:37 PM, Aparna Karunarathna <apa...@wso2.com> wrote: > Hi All, > > Docker images creating steps are not clear. > > I have configured the K8S cluster and then started creating the docker > images. In order to do that, I followed the link [1] ReadMe, after > executing the last command "git submodule update" there's no way to find > out what to do next? > > Seems like this is common to all docker repos. > > > [1] https://github.com/wso2/docker-is/tree/release-5.3.0 > > -- > *Regards,* > > *Aparna Karunarathna.* > > > *Associate Technical Lead - QAWSO2 Inc.Mobile: 0714002533* > > * <http://wso2.com/signature>* > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] how can i customize basic authentication of wso2 api manager for authorization code grant type.
Hi Shiva, It is not clear which part you need to do customization here. In authorization code grant type[1- page 6], 1) First, you need to hit the Authorization endpoint and do the logging and get the authorization code. 2) Then need to provide the authorization code to the authorization_code grant type and get the access token. I don't believe you need to do a customization on step 2. if so you don't need to change the authorization_code grant type. If you need to customized step 1 please refer[2][3][4] [1]https://tools.ietf.org/html/rfc6749 [2] http://wdfdo1986.blogspot.com/2016/03/oauth-custom-basic-authenticator-with.html [3] http://xacmlinfo.org/2015/10/15/custom-authenticator-for-wso2-identity-server-wso2is-sso-login/ [4] https://dzone.com/articles/custom-authenticator-for-wso2-identity-server-wso2 Thanks and Best Regards, Saneth Dharmakeerthi *Associate Technical Lead* WSO2, Inc. Mobile: +94772325511 <http://wso2.com/signature> On Wed, Sep 6, 2017 at 6:29 PM, <shiv...@securelyshare.com> wrote: > How can I customize basic authentication of Authorization code grant type > page. Any handlers I can override. > > I tried to extend ExtendedAuthorizationCodeGrantHandler and overriding > validateGrant method, but when i click sign in the validateGrant method is > not invoking. Please see the configuration below. > > > > In WSO2_HOME/repository/conf/identity/identity.xml I have changed handler > to my implementation please suggest any way to override authentication when > I click sign in. > > > > > > authorization_code > > > > org.wso2.carbon.test. > SSAuthorizationCodeGrantHanlder > > > > > > > > Thank You, > > Shiva Kumar KR > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Commented Test Cases in API-M Master
Hi APIM Team, Above fix for TA-974 was submitted via pull request [1] on Jun 11, 2015, It is still on open stage. [1] https://github.com/wso2/product-apim/pull/224/files Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Apr 22, 2016 at 3:33 PM, Bhathiya Jayasekara <bhath...@wso2.com> wrote: > Hi Yasassri > > Thanks for pointing out. Will have a look. > > Regards, > Bhathiya > > On Fri, Apr 22, 2016 at 3:30 PM, Yasassri Ratnayake <yasas...@wso2.com> > wrote: > >> Hi API-M Team, >> >> When we are mapping Automation tests against test cases in test-link we >> observed the $subject. Although some Tests are commented by pointing to >> JIRAs, the corresponding JIRAs are fixed. >> >> For instance [1 >> <https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/resources/testng.xml#L32>] >> is commented due to [2 <https://wso2.org/jira/browse/TA-974>] but it has >> being resolved last year. I see around 15 test cases commented in the >> Master. Can you guys look into this and enable the tests that can be enabled >> >> [1] - >> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/resources/testng.xml#L32 >> [2] - https://wso2.org/jira/browse/TA-974 >> >> With Regards, >> -- >> Yasassri Ratnayake >> Software Engineer - QA >> WSO2 Inc ; http://wso2.com >> lean.enterprise.middleware >> *Mobile : +94715933168 <%2B94715933168>* >> *Blogs : http://yasassriratnayake.blogspot.com >> <http://yasassriratnayake.blogspot.com/>* >> *http://wso2logs.blogspot.com <http://wso2logs.blogspot.com>* >> > > > > -- > *Bhathiya Jayasekara* > *Senior Software Engineer,* > *WSO2 inc., http://wso2.com <http://wso2.com>* > > *Phone: +94715478185 <%2B94715478185>* > *LinkedIn: http://www.linkedin.com/in/bhathiyaj > <http://www.linkedin.com/in/bhathiyaj>* > *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>* > *Blog: http://movingaheadblog.blogspot.com > <http://movingaheadblog.blogspot.com/>* > ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error on FHIR connector integration Test case
Hi Hariprasath, 1) What do you mean by "testing with the test server"? 2) Could you able to do this task manually using same pack?. 3) Put a debug point at the line you add the certification and execute that line, then try the rest of the actions manually and see the behaviour. Also share the testcase code Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Oct 13, 2015 at 4:52 PM, Hariprasath Thanarajah < haripras...@wso2.com> wrote: > Hi Rajjaz, > > I already added the certification like you mentioned in [2]. But still > it's giving the same error. > > On Tue, Oct 13, 2015 at 4:41 PM, Rajjaz Mohammed <raj...@wso2.com> wrote: > >> Hi, >> its seems to be like a error i got earlier so what i did is i import the >> certificate through the terminal like[1] and its solved my error. >> >> AFAIK test server not will be the reason for this error. and try the way >> [2]. >> >> [1]Navigate to "/repository/resources/security/" using command prompt >> and execute keytool -importcert -file CERT_FILE_NAME -keystore >> client-truststore.jks -alias "CERT_NAME" in command line to import api >> certificate in to keystore. Give "*wso2carbon*" as password. >> >> [2] >> http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Connector-Integration-Test-Error-SSL-Handshake-Exception-td98612.html >> >> On Tue, Oct 13, 2015 at 3:55 PM, Rajeenthini Satkunam < >> rajeenth...@wso2.com> wrote: >> >>> Hi Hariprasanth, >>> >>> You can search for this subject "*[Dev] Connector Integration Test >>> Error!- SSL Handshake Exception*" .This could help you to give some >>> idea about the error. >>> >>> On Tue, Oct 13, 2015 at 3:42 PM, Hariprasath Thanarajah < >>> haripras...@wso2.com> wrote: >>> >>>> Hi all, >>>> >>>> Is it the error came because of the testing server? I am testing with >>>> the test server because it is only available for FHIR. The FHIR is in the >>>> development phase. >>>> >>>> On Tue, Oct 13, 2015 at 11:13 AM, Hariprasath Thanarajah < >>>> haripras...@wso2.com> wrote: >>>> >>>>> Hi All , >>>>> >>>>> I got the response at the wire. But after that only i am getting the >>>>> above error[1]. >>>>> >>>>> On Tue, Oct 13, 2015 at 11:08 AM, Hariprasath Thanarajah < >>>>> haripras...@wso2.com> wrote: >>>>> >>>>>> Hi Elilmatha, >>>>>> >>>>>> I already included the certificates at client-truststore.jks as well >>>>>> as wso2carbon.jks. >>>>>> >>>>>> On Tue, Oct 13, 2015 at 11:06 AM, Elilmatha Sivanesan < >>>>>> elilma...@wso2.com> wrote: >>>>>> >>>>>>> Hi Hariprasath, >>>>>>> >>>>>>> As per you error log you need to include the certificate. >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> On Tue, Oct 13, 2015 at 10:56 AM, Hariprasath Thanarajah < >>>>>>> haripras...@wso2.com> wrote: >>>>>>> >>>>>>>> Hi All, >>>>>>>> >>>>>>>> I am working on FHIR connector. I got the following[1] error while >>>>>>>> I am running the integration test case of FHIR. Any suggestion on this >>>>>>>> error? >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> [1] >>>>>>>> [2015-10-13 10:49:58,488] ERROR >>>>>>>> {org.wso2.carbon.automation.core.PlatformTestManager} - On Test >>>>>>>> failure.. >>>>>>>> [2015-10-13 10:49:58,488] ERROR >>>>>>>> {org.wso2.carbon.automation.core.PlatformTestManager} - >>>>>>>> javax.net.ssl.SSLHandshakeException: >>>>>>>> sun.security.validator.ValidatorException: PKIX path building failed: >>>>>>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to >>>>>>>> find >>>>>>>> valid certification path to requested target >>>>>>>> [2015-10-13 10:49:58,489] INFO >>>>>>>> {org.wso2.carbon.automation.core.PlatformTestManager} -
Re: [Dev] [Patch Automation] Can we deploy a war file programmatically?
HI Abimaran, It seems there is a some issue with file path. Refer following log, which printing the file path. there is "//" in between "resources" and " artifacts" [2015-10-01 13:34:33,524] INFO {org.wso2.carbon.automation.core.PlatformTestManager} - Running the test method --- org.wso2.carbon.am.tests.ESBJAVA3530TimeoutHandlerLogMessageTestCase.testBackendTimeoutLog File PAth /home/abimaran/sources/wso2-dev/support/trunk/products/apimgt/1.6.0/modules/integration/tests-patches/src/test/resources *//*artifacts/AM/war/backendTimeout/RESTFulExample.war Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Thu, Oct 1, 2015 at 2:27 PM, Abimaran Kugathasan <abima...@wso2.com> wrote: > HI Irham, > > > Please find it from [1]. I have attached that test module. > > > [1] : > https://drive.google.com/a/wso2.com/file/d/0B368ZmWTkoFpNHI5MHVPaDBTTDA/view?usp=sharing > > On Thu, Oct 1, 2015 at 1:47 PM, Irham Iqbal <iq...@wso2.com> wrote: > >> Hi Abimaran, >> >> Can you send the whole test case as well. >> >> Thanks, >> Iqbal >> >> On Thu, Oct 1, 2015 at 1:41 PM, Abimaran Kugathasan <abima...@wso2.com> >> wrote: >> >>> Yes, It works fine when deploying manually. >>> >>> I'm copying the details error log here. >>> >>> [2015-10-01 13:34:33,524] INFO >>> {org.wso2.carbon.automation.core.PlatformTestManager} - Running the test >>> method --- >>> org.wso2.carbon.am.tests.ESBJAVA3530TimeoutHandlerLogMessageTestCase.testBackendTimeoutLog >>> >>> File PAth >>> /home/abimaran/sources/wso2-dev/support/trunk/products/apimgt/1.6.0/modules/integration/tests-patches/src/test/resources//artifacts/AM/war/backendTimeout/RESTFulExample.war >>> [2015-10-01 13:34:33,585] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>> data handler for dataHandler >>> [2015-10-01 13:34:33,585] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>> data handler for dataHandler >>> [2015-10-01 13:34:33,586] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>> [2015-10-01 13:34:33,586] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>> [2015-10-01 13:34:33,594] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>> data handler for dataHandler >>> [2015-10-01 13:34:33,594] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>> data handler for dataHandler >>> [2015-10-01 13:34:33,594] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>> [2015-10-01 13:34:33,594] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>> [2015-10-01 13:34:33,600] INFO >>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>> [2015-10-01 13:34:33,600] ERROR - ResponseTimeCalculator >>> wso2statistics.request.received.time is null in the IN MessageContext >>> [2015-10-01 13:34:33,602] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>> data handler for dataHandler >>> [2015-10-01 13:34:33,602] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - I/O exception >>> (org.apache.axis2.AxisFault) caught when processing request: Unable to read >>> data handler for dataHandler >>> [2015-10-01 13:34:33,603] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>> [2015-10-01 13:34:33,603] INFO >>> {org.apache.commons.httpclient.HttpMethodDirector} - Retrying request >>> [2015-10-01 13:34:33,603] INFO >>> {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - >>> [2015-10-01 13:34:33,602] ERROR - PassThroughHttpSSLSender IO Error >>> sending response message >>> [2015-10-01 13:34:33,604] INFO >>> {org.wso2.carbon.automation.core.utils.core
Re: [Dev] [DEV][Automation] Unable to upload a file using Selenium
HI Lasantha, I think you can get some input form Dev mail thread "Unable to automate a UI test case with Selenium for a file uploading in Jaggery" Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Oct 9, 2015 at 11:54 AM, Lasantha Samarakoon <lasant...@wso2.com> wrote: > Hi all, > > I am working in Selenium based UI automation testing for the UES. In the > scenario which I am working on, I need to upload an image when I click on a > button. The code for the functionality as follows. > > *HTML:* > > > id="ues-dashboard-upload-banner-form" action="/path/to/form" class="hidden"> > > ... > > Edit > ... > > > > *Javascript:* > > (function() { > var initBanner = function() { > > // clicking the edit button will trigger the click event of the > input[type=file] field and opens the file browser > $('.ues-banner-placeholder').on('click', '#btn-edit-banner', > function(e) {$('#file-banner').click(); > }); > // once the value of the input[type=file] field changed, do > some processing > document.getElementById('file-banner').addEventListener('change', function > (e) { > ... > }); > ... > } > > initBanner(); > ... > })(); > > > Here when I tried to automate the functionality using Selenium, seems like > it cannot manipulate the file browser. Instead they are suggesting to > inject the path of the file directly into the input[type=file] field as > below. > > driver.findElement(By.id("file-banner")).sendKeys(Keys.DELETE); > driver.findElement(By.id("file-banner")).sendKeys(pathToFile); > > > But this works only when the form field is visible. While it is hidden, > Selenium gives the following exception. > > org.openqa.selenium.ElementNotVisibleException: Element is not currently > visible and so may not be interacted with > Command duration or timeout: 30.07 seconds > Build info: version: '2.43.0', revision: > 'accb3003b9fb8f7cae30f9669b4c594a065396a6', time: '2014-09-09 22:22:51' > System info: host: 'lasanthas-Latitude-E6540', ip: '127.0.1.1', os.name: > 'Linux', os.arch: 'amd64', os.version: '3.13.0-24-generic', java.version: > '1.7.0_80' > Session ID: 4f035f7f-f554-4206-a94c-5b0f79d5d0a5 > Driver info: org.openqa.selenium.firefox.FirefoxDriver > Capabilities [{platform=LINUX, acceptSslCerts=true, > javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, > browserName=firefox, handlesAlerts=true, browserConnectionEnabled=true, > webStorageEnabled=true, nativeEvents=false, rotatable=false, > locationContextEnabled=true, applicationCacheEnabled=true, > takesScreenshot=true, version=28.0}] > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:526) > at > org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204) > at > org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156) > at > org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599) > at > org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268) > at > org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:89) > at > org.wso2.ues.ui.integration.test.dashboard.BannerTest.testCreateDashboard(BannerTest.java:190) > at > org.wso2.ues.ui.integration.test.dashboard.BannerTest.testRunner(BannerTest.java:94) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) > at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) > at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) > at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) > at > org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) > at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) > at org.testng.TestRunner.privateRun(TestRunner.java:767) > at org.testng.TestRunner.run(TestRu
Re: [Dev] [DEV][Patch Automation][APIM] How to retrieve a perticualt log from a Class using LogViewerClient?
Hi Abimaran, If you run this test case on DEBUG mode and execute the bellow line LogEvent[] timeoutLogs = logViewerClient.getLogs("WARN", "TimeoutHandler", "", "AM"); Do you get the needed information.(execute this few times, and check whether you get the log ) ? IF this happens, you have to implement the log reading task inside a loop. You have to try several time keeping small thread sleeps until you get the needed log information. Put a max wait time to the loop as a threshold. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Thu, Oct 8, 2015 at 5:24 PM, Abimaran Kugathasan <abima...@wso2.com> wrote: > HI Waruna, > > This is for APIM 1.6.0 which uses automation framewotk version 4.2.1. > > LogViewerClient has these below methods only in that version. > > getLogs(String logType, String searchKey, String domain, String > serverKey), > getServiceNames(), > getAllSystemLogs(), > clearLogs() > > > On Thu, Oct 8, 2015 at 5:15 PM, Waruna Perera <waru...@wso2.com> wrote: > >> Hi, >> >> getLogs is deprecated now. Can you use getRemoteLogs and see the result? >> >> >> https://github.com/wso2/carbon-platform-integration-utils/blob/94f80cd6e2352ac832c40d572562407c3963ee0f/common-admin-clients/src/main/java/org/wso2/carbon/integration/common/admin/client/LogViewerClient.java >> >> On Thu, Oct 8, 2015 at 4:58 PM, Abimaran Kugathasan <abima...@wso2.com> >> wrote: >> >>> Hi Waruna, >>> >>> Thanks for the reply. >>> >>> No, I didn't use time delay. I have attached the class. >>> >>> On Thu, Oct 8, 2015 at 4:53 PM, Waruna Perera <waru...@wso2.com> wrote: >>> >>>> Hi, >>>> >>>> Do you use in time delay in between get all logs? Please provide the >>>> full code block. Some times in our test cases we use time out delays to get >>>> logs. >>>> >>>> Thanks, >>>> >>>> Waruna >>>> >>>> On Thu, Oct 8, 2015 at 3:08 PM, Abimaran Kugathasan <abima...@wso2.com> >>>> wrote: >>>> >>>>> Any updates on this? >>>>> >>>>> On Thu, Oct 8, 2015 at 12:51 PM, Abimaran Kugathasan < >>>>> abima...@wso2.com> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I want to get a log from a perticular class. I have >>>>>> used LogViewerClient. Please check my below code snaps. >>>>>> >>>>>> I need to get the below log. >>>>>> >>>>>> [2015-10-08 12:35:38,966] WARN - TimeoutHandler Expiring message ID >>>>>>> : urn:uuid:354104e6-eea7-41fd-88c7-de19d0b5a27f; dropping message after >>>>>>> timeout of : 10 seconds >>>>>> >>>>>> >>>>>> >>>>>> // Initialized the client >>>>>> >>>>>> LogViewerClient logViewerClient = new >>>>>> LogViewerClient(amServer.getBackEndUrl(), amServer.getSessionCookie()); >>>>>> >>>>>> // Calling it with parameters >>>>>> >>>>>> LogEvent[] timeoutLogs = logViewerClient.getLogs("WARN", >>>>>> "TimeoutHandler", "", "AM"); >>>>>> >>>>>> This returns empty array. >>>>>> >>>>>> >>>>>> I could get the system logs through below method. >>>>>> >>>>>> LogEvent[] logEvents = logViewerClient.getAllSystemLogs(); >>>>>> >>>>>> >>>>>> How can I get above mention log? >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> Thanks >>>>>> Abimaran Kugathasan >>>>>> >>>>>> Software Engineer | WSO2 Inc >>>>>> Data & APIs Technologies Team >>>>>> Mobile : +94 773922820 >>>>>> >>>>>> <http://stackoverflow.com/users/515034> >>>>>> <http://lk.linkedin.com/in/abimaran> >>>>>> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimarank> >>>>>> <https://twitter.com/abimaran> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Thanks >>
Re: [Dev] [APIM] - Required parameters for add documentation to an API with the source type File
HI Madusanka, We have referred that document and it contains how to add inline document, its working fine, problem is how to add a .txt file or a .pdf using the REST API. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Sep 16, 2015 at 1:04 PM, Madusanka Premaratne <madusan...@wso2.com> wrote: > Hi Bhagya, > Did you try WSO2 Publisher APIs[1]. Find Add/Update API Document in the > link > > [1] - https://docs.wso2.com/display/AM191/Publisher+APIs > > Thanks, > Madusanka > > On Wed, Sep 16, 2015 at 12:11 PM, Bhagya Dimenguwari <bha...@wso2.com> > wrote: > >> Hi, >> >> I tried to add new document to an API with the Source Type "File". I used >> the requested parameters as [1] referring firebug information [2] and it >> does not allow to add the document and got the exception [3]. >> >> I am going to test Integration test by referring test case - *APIM2-622:Add >> documentation to an API [ sample & SDK | File ] through the publisher REST >> api* in test link >> >> *.* >> Are there any document to refer for add a new file through the REST Api? >> >> >> [1] >> >> >> action=addDocumentation=admin=APIM620PublisherTest=1.0.0=APIM622PublisherTestHowTo-File-summary=samples=file=http://==Testingfilename="filters.txt; >> Content-Type: text/plain -org.wso2.carbon.caching.core.identity.* >> -org.wso2.carbon.caching.core.permissiontree.* >> -org.wso2.carbon.caching.infinispan.* >> -org.wso2.carbon.event.core.internal.delivery.jms.* >> -org.wso2.carbon.event.core.qpid.* >> -org.wso2.carbon.registry.synchronization.* -org.wso2.throttle.* >> -org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject.java >> -org.wso2.carbon.apimgt.gateway.handlers.security.thrift.* >> -org.wso2.carbon.apimgt.keymgt.service.thrift.* >> -org.wso2.carbon.apimgt.impl.workflow.* -org.wso2.carbon.apimgt.usage.* >> -org.wso2.carbon.throttle.module.utils.* >> -org.wso2.carbon.throttle.module.utils.impl.* >> -org.wso2.carbon.throttle.module.handler.* >> -org.wso2.carbon.throttle.core.impl.domainbase.* >> -org.wso2.carbon.throttle.module.* >> -org.wso2.carbon.throttle.core.impl.ipbase.* >> -org.wso2.uri.template.parser.*=text/plain=samples=file >> >> [2] >> >> -95753468186848783342988543 >> Content-Disposition: form-data; name="mode" >> -95753468186848783342988543 >> Content-Disposition: form-data; name="docUrl" http:// >> -95753468186848783342988543 >> Content-Disposition: form-data; name="sourceType" file >> -95753468186848783342988543 >> Content-Disposition: form-data; name="summary" add new doc >> -95753468186848783342988543 >> Content-Disposition: form-data; name="docType" samples >> -95753468186848783342988543 >> Content-Disposition: form-data; name="docName" filterdoc >> -95753468186848783342988543 >> Content-Disposition: form-data; name="version" 1.1.2 >> -95753468186848783342988543 >> Content-Disposition: form-data; name="apiName" APIM1234 >> -95753468186848783342988543 >> Content-Disposition: form-data; name="action" addDocumentation >> -95753468186848783342988543 >> Content-Disposition: form-data; name="provider" admin >> -95753468186848783342988543 >> Content-Disposition: form-data; name="mimeType" text/plain >> -95753468186848783342988543 >> Content-Disposition: form-data; name="optionsRadios" samples >> -95753468186848783342988543 >> Content-Disposition: form-data; name="optionsRadios1" file >> -95753468186848783342988543 >> Content-Disposition: form-data; name="docLocation"; filename="filters.txt" >> Content-Type: text/plain -org.wso2.carbon.caching.core.identity.* >> -org.wso2.carbon.caching.core.permissiontree.* >> -org.wso2.carbon.caching.infinispan.* >> -org.wso2.carbon.event.core.internal.delivery.jms.* >> -org.wso2.carbon.event.core.qpid.* >> -org.wso2.carbon.registry.synchronization.* -org.wso2.throttle.* >> -org.wso2.carbon.apimgt.hostobjects.AssetStoreHostObject.java >> -org.wso2.carbon.apimgt.gateway.handlers.security.thrift
Re: [Dev] Failover Endpoint function is not working in APIM 1.9.0
Thanks Kishanthan for the information. Lasitha, Please try this out with given instruction.(Try it manually and see). If it success, You can continue with the failover test case. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Jul 21, 2015 at 10:18 AM, Kishanthan Thangarajah kishant...@wso2.com wrote: On Thu, Jul 9, 2015 at 5:36 PM, Evanthika Amarasiri evanth...@wso2.com wrote: Hi Saneth, On Thu, Jul 9, 2015 at 7:48 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Evanthika, Why is service is deactivation is not a failover scenario?, The main problem here is the server return HTTP 200 for a URL which is not there. Here there might not be problem in Failover function, but as i see there is issue with web application deployment function. I had an offline chat with Kicha and he explained the reason for this. So when we ‘Stop’ a service, it removes the relevant service context from Tomcat. And when you invoke this service, it would respond with a HTTP 302 redirection to Carbon (The same behaviour can be observed when you undeploy services too he explained). So the way Carbon is written is that when a context is not available, it redirects to the default /carbon ctx. Hence the reason for this behaviour. Adding more to the above. We could change this behaviour by configuring the default value of root context to a different value, if we expect to have 404 for non existing contexts (webapps). Else this will always return a 302 with the redirection to /carbon webapp. Regards, Evanthika After web application un-deploy if we access the web application why it navigate to carbon login page ? we can't expect all the time client side to use a web browser to assess a web application. In our case the web app is a REST web service where it is accessed by a Java client or CURL. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jul 8, 2015 at 6:54 PM, Lasitha Deergawansa lasi...@wso2.com wrote: I have tried this with different servers as backends and failover endpoint function is working fine. On Wed, Jul 8, 2015 at 5:55 PM, Evanthika Amarasiri evanth...@wso2.com wrote: I got Lasitha's web apps and tried to recreate the issue. In his scenario, he's deactivating the service from the UI. Once the service is deactivated, when you send a request to that endpoint, it redirects you to the Carbon login page with a HTTP 200 OK. Response headers: HTTP/1.1 200 OK Set-Cookie: JSESSIONID=BF80113B54C712FAA4810A027BA1CB03; Path=/; Secure; HttpOnly X-FRAME-OPTIONS: DENY Content-Type: text/html;charset=UTF-8 Content-Language: en-US Transfer-Encoding: chunked Vary: Accept-Encoding Date: Wed, 08 Jul 2015 12:18:01 GMT Server: WSO2 Carbon Server So it actually does not consider it as a failed scenario. That is why it's not failing over. @Lasith, could you kindly try with an actual scenario where the endpoint fails? Regards, Evanthika On Wed, Jul 8, 2015 at 2:03 PM, Lasitha Deergawansa lasi...@wso2.com wrote: Hi All, I'm in process of automating Failover end point function test case - APIM-45 [1] and figured out the Failover Endpoint function is not working in APIM 1.9.0. This is a blocker for the completion of the test case. Tracking purpose I have created a JIRA APIMANAGER-3967 [2] Steps to recreate: 1. Create, Publish and Subscribe a API with Endpoint Type=Failover Endpoint with a production endpoint and multiple production failover endpoints. 2. Send a request to the API and it will correctly invoked the production end point. 3. Make the production end point unavailable and send the request again 4. No response from the API. [1] https://testlink.wso2.com/linkto.php?tprojectPrefix=APIMitem=testcaseid=APIM-45 [2] https://wso2.org/jira/browse/APIMANAGER-3967 Thanks Best Regards, Lasitha. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kishanthan Thangarajah* Associate Technical Lead, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com http://kishanthan.wordpress.com* Twitter - *http://twitter.com/kishanthan http://twitter.com/kishanthan* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV] Running Intergration Tests On ESB 490 Cluster
Hi Yasassri, What you mean by ESB Cluster here. Are you goon to run the integration test on ESB cluster with multiple nodes? Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sun, Jul 12, 2015 at 11:54 PM, Yasassri Ratnayake yasas...@wso2.com wrote: Hi Malaka, I ran the tests in an Open Stack Instances with Java 1.7.0_65. In the tests-mediator-1 module following tests failed - CallOut-mediator-Test (2 Test Cases) - Call-mediator-Test (2 Test Cases) - Property-mediator-Test-1 (I Test Case) - Fault-mediator-Test (1 Test Case) In tests-mediator-2 there was only one skipped test case (Above table should be corrected), and it has occurred due to an connection failure with the following exception. Unable to add local entry :: Error connecting to URL : https://svn.wso2.org/repos/wso2/trunk/commons/qa/qa-artifacts/esb/esb450/mediators/xslt/transform.xslt I have added both sure-fire reports, please have a look. With Regards, On Sun, Jul 12, 2015 at 8:07 PM, Malaka Silva mal...@wso2.com wrote: Hi Yasassri, There are some tests fails and we are currently fixing those. (There were few some commented tests and we uncomment it last week.) However tests-mediator-1 and tests-mediator-2 is passing all the tests in our ec2 instance. What is the environment and jdk you are running the tests? What are the failing test cases? What On Sun, Jul 12, 2015 at 4:53 PM, Yasassri Ratnayake yasas...@wso2.com wrote: Hi All, Before running the integration tests on the cluster I tried to run some of the test modules locally. I ran following two scenarios. 1. Executed the integration tests after building the pack. 2. Executed the integration tests by pointing to an already started ESB server with an offset. For the above scenarios I executed tests-mediator-1 and tests-mediator-2 modules located at [1] In the second scenario I commented out the CarbonServerExtension and Axis2ServerExtension from the automation.xml and I started an Axis2 Server locally by deploying the sample web-services available. After running the above scenarios following results were obtained. (Summary) *Scenario 01 (Running tests after building the pack) * *tests-mediator-1* StatusMethods PassedScenarios Passed# skipped# failedNo of Tests38238206 *tests-mediator-2* StatusMethods PassedScenarios Passed# skipped# failedNo of Tests18518516 *Scenario 02 (Running tests by pointing to a remote server)* *tests-mediator-1* StatusMethods PassedScenarios Passed# skipped# failedNo of Tests16216216066 *tests-mediator-2* The test didn't complete and surefire reports were not generated. By looking at the above results it's clear that some of the test cases are not intended to executed in a remote manner or in a clustered environment. (Please note that I didn't analyze the results in-depth). @Automation Team: Is there something I'm doing wrong here? Can I improve the above results and run it on the cluster? And if I'm running this on an ESB cluster how should I configure the back-end Axis2 Server? Do I need to start an Axis2 Server on each worker node? @ESB Team : Some test cases are failing in the 1st scenario, these need to be investigated and fixed. [1] - https://github.com/wso2/product-esb/tree/master/modules/integration/tests-integration With Regards, -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blogs : http://yasassriratnayake.blogspot.com http://yasassriratnayake.blogspot.com/* *http://wso2logs.blogspot.com http://wso2logs.blogspot.com* -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva 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. -- Yasassri Ratnayake Software Engineer - QA WSO2 Inc ; http://wso2.com lean.enterprise.middleware *Mobile : +94715933168 %2B94715933168* *Blogs : http://yasassriratnayake.blogspot.com http://yasassriratnayake.blogspot.com/* *http://wso2logs.blogspot.com http://wso2logs.blogspot.com* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Failover Endpoint function is not working in APIM 1.9.0
Hi Evanthika, Thanks for the detail reply and effort put to identify the actual behaviour. This explain why this behaviour is bit odd with un-deployed web-apps. APIM Team, I closed issue with Not a bug status , since this is not a bug in APIM. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Thu, Jul 9, 2015 at 5:36 PM, Evanthika Amarasiri evanth...@wso2.com wrote: Hi Saneth, On Thu, Jul 9, 2015 at 7:48 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Evanthika, Why is service is deactivation is not a failover scenario?, The main problem here is the server return HTTP 200 for a URL which is not there. Here there might not be problem in Failover function, but as i see there is issue with web application deployment function. I had an offline chat with Kicha and he explained the reason for this. So when we ‘Stop’ a service, it removes the relevant service context from Tomcat. And when you invoke this service, it would respond with a HTTP 302 redirection to Carbon (The same behaviour can be observed when you undeploy services too he explained). So the way Carbon is written is that when a context is not available, it redirects to the default /carbon ctx. Hence the reason for this behaviour. Regards, Evanthika After web application un-deploy if we access the web application why it navigate to carbon login page ? we can't expect all the time client side to use a web browser to assess a web application. In our case the web app is a REST web service where it is accessed by a Java client or CURL. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jul 8, 2015 at 6:54 PM, Lasitha Deergawansa lasi...@wso2.com wrote: I have tried this with different servers as backends and failover endpoint function is working fine. On Wed, Jul 8, 2015 at 5:55 PM, Evanthika Amarasiri evanth...@wso2.com wrote: I got Lasitha's web apps and tried to recreate the issue. In his scenario, he's deactivating the service from the UI. Once the service is deactivated, when you send a request to that endpoint, it redirects you to the Carbon login page with a HTTP 200 OK. Response headers: HTTP/1.1 200 OK Set-Cookie: JSESSIONID=BF80113B54C712FAA4810A027BA1CB03; Path=/; Secure; HttpOnly X-FRAME-OPTIONS: DENY Content-Type: text/html;charset=UTF-8 Content-Language: en-US Transfer-Encoding: chunked Vary: Accept-Encoding Date: Wed, 08 Jul 2015 12:18:01 GMT Server: WSO2 Carbon Server So it actually does not consider it as a failed scenario. That is why it's not failing over. @Lasith, could you kindly try with an actual scenario where the endpoint fails? Regards, Evanthika On Wed, Jul 8, 2015 at 2:03 PM, Lasitha Deergawansa lasi...@wso2.com wrote: Hi All, I'm in process of automating Failover end point function test case - APIM-45 [1] and figured out the Failover Endpoint function is not working in APIM 1.9.0. This is a blocker for the completion of the test case. Tracking purpose I have created a JIRA APIMANAGER-3967 [2] Steps to recreate: 1. Create, Publish and Subscribe a API with Endpoint Type=Failover Endpoint with a production endpoint and multiple production failover endpoints. 2. Send a request to the API and it will correctly invoked the production end point. 3. Make the production end point unavailable and send the request again 4. No response from the API. [1] https://testlink.wso2.com/linkto.php?tprojectPrefix=APIMitem=testcaseid=APIM-45 [2] https://wso2.org/jira/browse/APIMANAGER-3967 Thanks Best Regards, Lasitha. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Failover Endpoint function is not working in APIM 1.9.0
Hi Evanthika, Why is service is deactivation is not a failover scenario?, The main problem here is the server return HTTP 200 for a URL which is not there. Here there might not be problem in Failover function, but as i see there is issue with web application deployment function. After web application un-deploy if we access the web application why it navigate to carbon login page ? we can't expect all the time client side to use a web browser to assess a web application. In our case the web app is a REST web service where it is accessed by a Java client or CURL. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jul 8, 2015 at 6:54 PM, Lasitha Deergawansa lasi...@wso2.com wrote: I have tried this with different servers as backends and failover endpoint function is working fine. On Wed, Jul 8, 2015 at 5:55 PM, Evanthika Amarasiri evanth...@wso2.com wrote: I got Lasitha's web apps and tried to recreate the issue. In his scenario, he's deactivating the service from the UI. Once the service is deactivated, when you send a request to that endpoint, it redirects you to the Carbon login page with a HTTP 200 OK. Response headers: HTTP/1.1 200 OK Set-Cookie: JSESSIONID=BF80113B54C712FAA4810A027BA1CB03; Path=/; Secure; HttpOnly X-FRAME-OPTIONS: DENY Content-Type: text/html;charset=UTF-8 Content-Language: en-US Transfer-Encoding: chunked Vary: Accept-Encoding Date: Wed, 08 Jul 2015 12:18:01 GMT Server: WSO2 Carbon Server So it actually does not consider it as a failed scenario. That is why it's not failing over. @Lasith, could you kindly try with an actual scenario where the endpoint fails? Regards, Evanthika On Wed, Jul 8, 2015 at 2:03 PM, Lasitha Deergawansa lasi...@wso2.com wrote: Hi All, I'm in process of automating Failover end point function test case - APIM-45 [1] and figured out the Failover Endpoint function is not working in APIM 1.9.0. This is a blocker for the completion of the test case. Tracking purpose I have created a JIRA APIMANAGER-3967 [2] Steps to recreate: 1. Create, Publish and Subscribe a API with Endpoint Type=Failover Endpoint with a production endpoint and multiple production failover endpoints. 2. Send a request to the API and it will correctly invoked the production end point. 3. Make the production end point unavailable and send the request again 4. No response from the API. [1] https://testlink.wso2.com/linkto.php?tprojectPrefix=APIMitem=testcaseid=APIM-45 [2] https://wso2.org/jira/browse/APIMANAGER-3967 Thanks Best Regards, Lasitha. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Production Endpoint validation button returns invalid for Wikipedia sample- API Manager 1.9.0
Hi Sanjeewa, 1) Doesn't this Test functionality confuse because it return as invalid for the wikipedia endpoint that is used in APIM samples [1] ?. But sample is working correctly with out any issue. 2) Backend automation of APIM-29 [2] is blocked due to this, what is the correct and recommended approach to test the functionality of Test button ? [1] https://docs.wso2.com/display/AM160/Deploying+and+Testing+Wikipedia+API [2] https://testlink.wso2.com/linkto.php?tprojectPrefix=APIMitem=testcaseid=APIM-29 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Jun 30, 2015 at 11:42 AM, Sanjeewa Malalgoda sanje...@wso2.com wrote: In test method what we do is HTTP head call to back end(standard approach for check service availability). And it should return 2XX or 3XX response for that. Otherwise it will fail. Thanks, sanjeewa. On Tue, Jun 30, 2015 at 11:38 AM, Lasitha Deergawansa lasi...@wso2.com wrote: Hi APIM Team, Is there any reason for this behavior of this test button? Regards, Lasitha. On Tue, Jun 23, 2015 at 12:44 PM, Lasitha Deergawansa lasi...@wso2.com wrote: Hi All, I have created the Wikipedia API manually which was in sample[1] and it is working fine. After I clicked on Edit and try to validate Test button in Production end point in API implementation page it gives as invalid. Endpoint: http://en.wikipedia.org/w/api.php [1]- https://docs.wso2.com/display/AM160/Deploying+and+Testing+Wikipedia+API Regards, Lasitha. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [TAF] Cleaning carbontmp after test execution
Hi Maheeka. AFAIK It is not good idea to implement deletion logic inside serverShoudown method. Because in integration tests you can start multiple carbon servers with port offsets. So if you call the serverShoudown() of one carbon server(port offset) it will try to delete the distribution which is still under test. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Jun 19, 2015 at 4:17 PM, Maheeka Jayasuriya mahe...@wso2.com wrote: Hi, During each test execution a copy of ESB distribution is unzipped to target folder to run the tests against. The problem is that distribution gets copied per execution per module. Each of this is ~250MB and therefore, extremely space consuming. As per [1], we can add carbontmp folder deletion logic in serverShutdown method. Is there any particular reason to preserve them? [1] https://github.com/wso2/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.extensions/src/main/java/org/wso2/carbon/automation/extensions/servers/carbonserver/CarbonServerManager.java Thanks, Maheeka Jayasuriya Software Engineer Mobile : +9450661 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Test Automation] Non admin users have admin role.
Hi Thusitha, As we discuss yesterday this happens because of the automation.xml that you are using does not define any roles to those tenant users. If automation.xml not contain any user-role mapping the automation framework will add admin role to those users. You can add roles and do the mapping as bellow, user key=user2 userNametestuser21/userName passwordtestuser21/password roles rolerole1/role /roles /user /users /tenant /tenants roles role name=role1 permissions permission/permission/admin/configure/permission permission/permission/admin/login/permission permission/permission/admin/manage/permission permission/permission/admin/monitor/permission /permissions /role role name=role2 permissions permission/permission/admin/configure/permission permission/permission/admin/login/permission /permissions /role /roles /userManagement Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Thu, Jun 18, 2015 at 6:36 PM, Thusitha Thilina Dayaratne thusit...@wso2.com wrote: Hi, I'm trying to write some tests for the user core functionalities. While doing so when I try to create a user from a non admin user as follows. super.init(TestUserMode.SUPER_TENANT_USER); userManagementClient.addUser(username, password, null, null); Since non-admin users don't have permissions to create users this should throws an Exception. But this get executed and user is getting created. When I checked the roles of the executing user at the debug time using userManagementClient.getRolesOfCurrentUser() It has the admin role as well. I have create the JIRA[1] [1] - https://wso2.org/jira/browse/TA-978 Please correct me if my assumption is wrong. Thanks -- Thusitha Dayaratne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com Abouthttp://about.me/thusithathilina ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Sam Sivayogam
Congratulations Sam... Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Jun 15, 2015 at 8:31 AM, Nuwan Dias nuw...@wso2.com wrote: Hi, It is with great pleasure we welcome Sam Sivayogam as a WSO2 Committer. @Sam, congratulations and keep up the good work! Thanks, NuwanD. -- Nuwan Dias Technical Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to set axis.xml in integration test for DSS 3.2.2
Hi Madhawa, You can use ServerConfigurationManager.applyConfiguration(File sourceFile, File targetFile, boolean backupConfigFile, boolean restartServer) to do this task. If you pass backupConfigFile as true it will backup the configuration and using restoreToLastConfiguration() method you can revert to the original file. Sample code is available at [1]. Instead of BeforeTest you can add the configurations in BeforeClass and instead of AfterTest you can restore the configurations at AfterClass. [1]https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sat, Jun 6, 2015 at 11:12 AM, Thusitha Thilina Dayaratne thusit...@wso2.com wrote: Hi Madhawa, I wrote a TestCase for ESB and in there we can set like below. Hope this will help you to get some idea :) private ServerConfigurationManager configManager; @BeforeClass(alwaysRun = true) public void setEnvironment() throws Exception { ... File customAxisConfig = new File(path_to_axis2.xml); configManager = new ServerConfigurationManager( esbServer.getBackEndUrl()); configManager.applyConfiguration(customAxisConfig); ... } Thanks /Thusitha On Sat, Jun 6, 2015 at 8:43 AM, Madhawa Gunasekara madha...@wso2.com wrote: Hi All, I am writing a test case for DSS 3.2.2 to test the org.apache.axis2.json.JSONMessageFormatter (old json formatter) for some queries, In default configurations DSS3.2.2 uses org.apache.axis2.json.gson.JsonFormatter as json formatter. Therefore I think, I need to replace the axis.xml in test scope. How can I do it in DSS 3.2.2 ? Any help on this is highly appreciated. Thanks, Madhawa -- *Madhawa Gunasekara* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 719411002 +94+719411002 blog: *http://madhawa-gunasekara.blogspot.com http://madhawa-gunasekara.blogspot.com* linkedin: *http://lk.linkedin.com/in/mgunasekara http://lk.linkedin.com/in/mgunasekara* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Thusitha Dayaratne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com Abouthttp://about.me/thusithathilina ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] APIM tests fails due to Youtube API no longer available
Hi , Lifecycle test cases are fixed with in-host web application. Please find the pull request[1] Pull request [1] is ready to merge. Please review and merge. [1]https://github.com/wso2/product-apim/pull/210 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Thu, Jun 4, 2015 at 1:33 PM, Irham Iqbal iq...@wso2.com wrote: Hi All, I have noticed some test fails due to youtube api[1] is no longer available. We are in the process of fixing it by replacing it by deploying a webapp with a simple rest service before test execution. According to the youtube api document[2] Youtube API v2 (which we are using) is deprecated . Since it returns status code 410 and message no longer available i checked the YoutubeFeeds sample as well it's also returning the same message for all three curl requests listed there. Please check on this. [1]http://gdata.youtube.com/feeds/api/standardfeeds/most_popular [2]https://developers.google.com/youtube/2.0/developers_guide_protocol Thanks, Iqbal -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Change configuration file during the integration test running
Hi Gihan, At the moment that is the only available way to change a configuration. you can use ServerConfigurationManager.applyConfiguration(File sourceFile, File targetFile, boolean backupConfigFile, boolean restartServer) to do this task. If you pass backupConfigFile as true it will backup the configuration and using restoreToLastConfiguration() method you can revert to the original file. Sample cone can is available at [1]. [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Jun 5, 2015 at 6:25 PM, Gihan Anuruddha gi...@wso2.com wrote: Hi Automation team, I have a configuration file which has below entry. Basically, I want to set true for purging-enable and add table tags. One option is I can maintain a copy and do a file copy and do the server restart. Is there any other way to do this? analytics-data-purging purging-enablefalse/purging-enable purge-nodetrue/purge-node cron-expression0 0 0 * * ?/cron-expression purge-include-table-patterns table.*/table !--table.*jmx.*/table-- /purge-include-table-patterns data-retention-days365/data-retention-days /analytics-data-purging Regards, Gihan -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Error - Running Integration test for connector with ESB-4.9.0.ALPHA
Hi Elilmatha, There is no 4.4.1 version for org.wso2.carbon.automation. Please update the test integration dependencies as bellow. carbon.automation.version4.3.1/carbon.automation.version carbon.automationutils.version4.3.0/carbon.automationutils.versio Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jun 3, 2015 at 3:43 PM, Elilmatha Sivanesan elilma...@wso2.com wrote: adding integration team. On Wed, Jun 3, 2015 at 12:49 PM, Elilmatha Sivanesan elilma...@wso2.com wrote: I need to run the integration test for the connector , the same integration test works fine with esb-4.8.1 But not with $subject. I got the following error [2015-06-03 11:18:36,867] FATAL - CarbonServerManager WSO2 Carbon initialization Failed [2015-06-03 11:18:36,869] INFO {org.wso2.carbon.automation.core.utils.coreutils.InputStreamHandler} - java.lang.ClassFormatError: Illegal local variable table start_pc 48 in method org.apache.synapse.transport.passthru.PassThroughHttpSender.invoke(Lorg/apache/axis2/context/MessageContext;)Lorg/apache/axis2/engine/Handler$InvocationResponse; So i changed the the carbon platform version to 4.4.1. But now also I get the following error esb:org.wso2.carbon.connector elilmatha$ mvn clean install [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.connector:org.wso2.carbon.connector.proworkflow:jar:1.0.0 [WARNING] 'artifactId' contains an expression but should be a constant. @ org.wso2.carbon.connector:org.wso2.carbon.connector.${connector.name}:${connector.version}, /Users/elilmatha/Desktop/allReviewedConnectors/proworkflow/proworkflow-connector/proworkflow-connector-1.0.0/org.wso2.carbon.connector/pom.xml, line 29, column 16 [WARNING] 'version' contains an expression but should be a constant. @ org.wso2.carbon.connector:org.wso2.carbon.connector.${connector.name}:${connector.version}, /Users/elilmatha/Desktop/allReviewedConnectors/proworkflow/proworkflow-connector/proworkflow-connector-1.0.0/org.wso2.carbon.connector/pom.xml, line 30, column 13 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin @ org.wso2.carbon.connector:org.wso2.carbon.connector.${connector.name}:${connector.version}, /Users/elilmatha/Desktop/allReviewedConnectors/proworkflow/proworkflow-connector/proworkflow-connector-1.0.0/org.wso2.carbon.connector/pom.xml, line 162, column 18 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building WSO2 Carbon - Mediation Library Connector For proworkflow 1.0.0 [INFO] [WARNING] The POM for org.apache.bsf:bsf-all:jar:3.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.wso2.carbon:org.wso2.carbon.mediation.library.stub:jar:4.4.1 is missing, no dependency information available [WARNING] The POM for org.eclipse.equinox:org.eclipse.equinox.http.servlet:jar:1.0.200.v20090520-1800 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.eclipse.osgi:org.eclipse.osgi.services:jar:3.2.0.v20090520-1800 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.eclipse.equinox:org.eclipse.equinox.simpleconfigurator:jar:1.0.100.v20090520-1905 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.eclipse.equinox:org.eclipse.equinox.util:jar:1.0.100.v20090520-1800 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.eclipse.equinox:org.eclipse.equinox.ds:jar:1.1.0.v20090520-1800 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.eclipse.equinox:org.eclipse.equinox.jsp.jasper:jar:1.0.200.v20090520-1800 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.eclipse.equinox:javax.servlet.jsp:jar:2.0.0.v200806031607 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.eclipse.equinox:org.apache.jasper:jar:5.5.17.v200806031609 is invalid, transitive dependencies
Re: [Dev] Multiple versions of org.wso2.carbon.webapp.mgt.stub in wso2am-1.9.0-SNAPSHOT
Hi, As per the offline disscution with Amila De Silva, using org.wso2.carbon.webapp.mgt.stub_4.2.3.jar for the integration tests and created JIRA[1] for tracking this issue. [1] https://wso2.org/jira/browse/APIMANAGER-3707 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jun 3, 2015 at 10:45 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi APIM Team, I have noticed there are multiple versions are available for org.wso2.carbon.webapp.mgt.stub in wso2am-1.9.0-SNAPSHOT. Multiple versions available in repository/components/plugins : - org.wso2.carbon.webapp.mgt.stub_4.2.0.jar - org.wso2.carbon.webapp.mgt.stub_4.2.3.jar Which is the correct version that should use? Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Code coverage percentage
Hi Gihan, Isn't that private constructor is get called by anywhere inside that class?. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jun 3, 2015 at 11:47 AM, Gihan Anuruddha gi...@wso2.com wrote: Hi Automation team, What we are actually looking as a code coverage stat? In my ServiceHolder class, I added private constructor based on sonar suggestion. Now, due to that I can't make my class, 100% code coverage in term of line, block and method. How do I overcome this problem and increase my code coverage percentage? COVERAGE SUMMARY FOR SOURCE FILE [ServiceHolder.java]nameline, %block, % method, %class, %ServiceHolder.java82% (9/11)83% (15/18)86% (6/7) 100% (1/1)COVERAGE BREAKDOWN BY CLASS AND METHODnameline, %block, % method, %class, % class ServiceHolder82% (9/11)83% (15/18)86% (6/7) 100% (1/1)getAnalyticsDataService (): AnalyticsDataService100% (1/1) 100% (2/2)100% (1/1) getAnalyticsEventSinkService (): AnalyticsEventSinkService100% (1/1) 100% (2/2)100% (1/1) getEventStreamService (): EventStreamService 100% (1/1)100% (2/2)100% (1/1) setAnalyticsDataService (AnalyticsDataService): void100% (2/2)100% (3/3) 100% (1/1) setAnalyticsEventSinkService (AnalyticsEventSinkService): void 100% (2/2)100% (3/3)100% (1/1) setEventStreamService (EventStreamService): void100% (2/2)100% (3/3) 100% (1/1) ServiceHolder (): void0% (0/2)0% (0/3)0% (0/1) Regards, Gihan -- W.G. Gihan Anuruddha Senior Software Engineer | WSO2, Inc. M: +94772272595 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Multiple versions of org.wso2.carbon.webapp.mgt.stub in wso2am-1.9.0-SNAPSHOT
Hi APIM Team, I have noticed there are multiple versions are available for org.wso2.carbon.webapp.mgt.stub in wso2am-1.9.0-SNAPSHOT. Multiple versions available in repository/components/plugins : - org.wso2.carbon.webapp.mgt.stub_4.2.0.jar - org.wso2.carbon.webapp.mgt.stub_4.2.3.jar Which is the correct version that should use? Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Carbon patch 0009 build failure
Hi Chamin, You have to build patch0003 before patch0009. patch0009 has dependencies on patch0003. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, May 18, 2015 at 6:35 PM, Manoj Kumara ma...@wso2.com wrote: Additionally you might have to build previous patches as well. *Manoj Kumara* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94713448188 On Mon, May 18, 2015 at 6:34 PM, Thusitha Thilina Dayaratne thusit...@wso2.com wrote: Hi Chamin, It seems that you have to use Maven 3.0.x with JDK 1.6 http://stackoverflow.com/questions/25376891/not-able-to-build-wso2-orbit-kernel-4-2-0-and-platform-4-1-7 Thanks On Mon, May 18, 2015 at 6:30 PM, Chamin Dias cham...@wso2.com wrote: Hi, I am trying to build a patch (patch no 9), for carbon 4.2.0. It can be located here : [ https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/patches/] However, when trying to build the patch using Maven 3.2.5 and JDK 1.7, I get an error. (Error is included) Also I have tried the same thing with JDK 1.6, but still the error appears. (Error is included) Any help is appreciated. Thank you. *Error appeared with JDK 1.7* [WARNING] Error injecting: org.apache.maven.reporting.exec.DefaultMavenReportExecutor java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyFilter at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585) at java.lang.Class.getDeclaredConstructors(Class.java:1906) at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245) at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:99) at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:657) at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:875) at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:798) at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:281) at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:213) at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:998) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1031) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:994) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1044) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:54) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:113) at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:122) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:46) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1066) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1059) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:243) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:237) at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(AbstractSiteRenderingMojo.java:234) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121
[Dev] [APIM] Check box to select HTTP transport get automatically uncheck in API Manage phase in APIM 1.9.0 SNAPSHOT
Hi APIM Team , Steps to recreate : a) Create a API with both HTTP and HTTPS transports. b) Can access the API with using both h HTTP and HTTPS. c) Edit the API and go to API Manage phase, only HTTPS is checked in check box but not HTTP. d) So if we save the API Manage phase, we cannot access the API using HTTP, because only the HTTPS is checked and it get saved. This has 2 problems. 1) In API edit mode in API Manage phase, it is not showing actual current configuration because it is not showing HTTP as checked even though actual API setup has HTTP transport. 2) Every time if user need to select the HTTP transport when ever he is doing a edit task. I have created a JIRA[1] to track this [1]https://wso2.org/jira/browse/APIMANAGER-3553 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] TestNG exception when running integration testing for Product ESB ( test-other package ))
Hi Kevin, Please share the full test case with us. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, May 12, 2015 at 12:24 PM, Kevin Ratnasekera ke...@wso2.com wrote: Hi all, org.testng.TestNGException: org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionFalseTestScenario() is depending on method public void org.wso2.carbon.esb.contenttype.json.FilterFromJSONPathTestCase.testJSONFilterFromJSONPathConditionTrueTestScenario() throws java.lang.Exception, which is not annotated with @Test I am running integration tests on java version 1.7. The failing test methods are depended on other methods. ( dependsOnMethods ) The classes which does not include depended test methods pass successfully. Regards Kevin ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM] When update the original application tier it allows one request addition to the throttling limit in APIM 1.9.0 SNAPSHOT
Hi APIM Team, Assume we have configured the Silver tier as 5 and Gold tier as 20. Also assume that resource and API tier are Unlimited. If we access the API using original application tier (tier that was assigned at application creation time), throttling limitation is working correctly. But if we update the application tier and access it, it allows one more api access than the relevant throttling limit. This issue is available in APIM 1.8.0 also. I have created a JIRA [1] to track this issue. [1]https://wso2.org/jira/browse/APIMANAGER-3549 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM]Error when update the resource throttling of a API which was created using curl command in APIM 1.9.0 SNAPSHOT
Hi APIM Team, I am getting error [1] when update the resource throttling of a API which was created using curl command [2] in APIM 1.9.0 SNAPSHOT. I have reported JIRA [3] to track this issue. [1] Screen Shot 2015-05-08 at 2.57.56 PM.png https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5USWJ3SDdIWGRCU1U/edit?usp=drive_web [2] curl -X POST -b cookies http://localhost:9763/publisher/site/blocks/item-add/ajax/add.jag -d action=addAPIname=YoutubeFeedsvisibility=publicversion=1.0.0description=Youtube Live FeedsendpointType=nonsecuredhttp_checked=httphttps_checked=httpswsdl=tags=youtube,gdata,multimediatier=SilverthumbUrl= http://www.10bigideas.com.au/www/573/files/pf-thumbnail-youtube_logo.jpgcontext=/youtubetiersCollection=GoldresourceCount=0resourceMethod-0=GETresourceMethodAuthType-0=ApplicationresourceMethodThrottlingTier-0=UnlimiteduriTemplate-0=/*; -d'endpoint_config={production_endpoints:{url: http://gdata.youtube.com/feeds/api/standardfeeds ,config:null},endpoint_type:http}'; [3] https://wso2.org/jira/browse/APIMANAGER-3530 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM] Abnormal behaviour when using the password of api end point url with some characters ' % +
HI All, Sorry, forgot to add the APIM version. APIM version is 1.9.0 SNAPSHOT. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, May 6, 2015 at 9:21 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi APIM Team, I have notice some abnormal behaviour when using the password of api endpoint url with some characters ' % + I am using action=updateAPI in /publisher/site/blocks/item-add/ajax/add.jag to update the password. (these characters are having problems when update the password using UI also, but behaviour is bit different.) I have created a JIRA [1] for this issue. Accordion to mail thread [2] in dev, there cant be any restriction in characters of the password of url endpoint. [1]https://wso2.org/jira/browse/APIMANAGER-3515 [2][Dev] Password conditions of secure endpoints in API Manager Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM] Abnormal behaviour when using the password of api end point url with some characters ' % +
Hi APIM Team, I have notice some abnormal behaviour when using the password of api endpoint url with some characters ' % + I am using action=updateAPI in /publisher/site/blocks/item-add/ajax/add.jag to update the password. (these characters are having problems when update the password using UI also, but behaviour is bit different.) I have created a JIRA [1] for this issue. Accordion to mail thread [2] in dev, there cant be any restriction in characters of the password of url endpoint. [1]https://wso2.org/jira/browse/APIMANAGER-3515 [2][Dev] Password conditions of secure endpoints in API Manager Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [App Factory] How to execute init methods only once in integration tests base class
HI Punnadi, Yes you can, If you need to call initWithTenantCreation() only once for set of test case. put it in side @BeforeTest method, Create a separate test case with @BeforeTest method and implement the logic that you need to call once for set of test cases. You can refer a sample implementation of @BeforeTest in[1]. After that group the test cases inside a one test instance in testng.xml test name=[test name] preserve-order=true parallel=false classes class name=[Test case with @BeforeTest ]/ class name=[Testcase1]/ class name=[Testcase2]/ /classes /test If all the test cases are in same package, you can use packagespackage name=/packages instead of classes/classes. [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Password conditions of secure endpoints in API Manager
Hi APIM team, When we configure a API endpoint as a secure endpoint,Is there any conditions regarding the password? Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Password conditions of secure endpoints in API Manager
HI Madusanka/Swmini, Thanks for your response, But actually what I want to know is , whether there is any condition regarding the format of the password like what characters it can have or what characters it can't? Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Apr 29, 2015 at 10:49 AM, Sewmini Jayaweera sewm...@wso2.com wrote: Hi Saneth, As per my knowledge this is used once we have a backend which is secured. For an example; say you have hello service hosted in WSO2 application server which is secured using UsernameToken and your API is pointing to that service. In an intense like that you need to give user credentials which you used to secure back end (It will be a user's credentials registered in AS). When a client is accessing this service through the API, he should be invoke the API as usual. (Since we have given user credentials of the secured backend when creating the API ) Cheers! Sewmini Sewmini Jayaweera *Software Engineer - QA Team* Mobile: +94 (0) 773 381 250 sewm...@wso2.com On Wed, Apr 29, 2015 at 9:03 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi APIM team, When we configure a API endpoint as a secure endpoint,Is there any conditions regarding the password? Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to change configuration file and run the integration tests?
Hi Sinthuja, a)You can change the configuration by using applyConfigurationWithoutRestart() methods in org.wso2.carbon.integration. common.utils.mgt.ServerConfigurationManager.java. For sample usage of ServerConfigurationManager [1] . You have to restart the server like in the sample [1] to get the configaration to apply. b) I am not clear about your 2nd requirement, Do you want to run the same test case with 2 different configarations? [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Apr 22, 2015 at 7:32 PM, Sinthuja Ragendran sinth...@wso2.com wrote: Hi QAA team, I have a requirement in DAS integration test to change a configuration file and run the whole integration tests again. Basically in DAS we have a core API which can run in LOCAL mode by using osgi services, and REMOTE mode by connecting to a remote services in a distributed setup. By default this configuration is LOCAL, and hence it just uses the osgi services. But I need to tests the REMOTE functionality as well by changing the configuration to REMOTE and point to localhost. And currently the file is loaded only in the server start up, therefore configuration fi. And I would prefer all the tests to be executed in both modes to make sure functionality. How can I achieve my requirement? Please advice. Thanks, Sinthuja. -- *Sinthuja Rajendran* Senior Software Engineer http://wso2.com/ WSO2, Inc.:http://wso2.com Blog: http://sinthu-rajan.blogspot.com/ Mobile: +94774273955 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] APIM ui integration tests
Hi Irham, About YouTubeUIPagesTestCase failure, Check whether *apiAccessInfo.getAccessToken() *passing the correct access token. If the access token is different or empty, check the logic inside doSubscribe() method in org.wso2.am.integration.ui.tests.pages.store.StoreHomePage.java class. testAPIPage.testAPI(apiAccessInfo.getAccessURL() + API_METHOD, *apiAccessInfo.getAccessToken()*); //Test response body assertTrue(testAPIPage.getTestResponseBody().contains(RESPONSE_BODY_TEST_STRING), RESPONSE_BODY_TEST_STRING + should be in the respond body); Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal iq...@wso2.com wrote: Hi, Currently I am fixing the following APIM UI integration tests failures. Results : Tests run: 26, Failures: 9, Errors: 0, Skipped: 1 When i go through the code i found the following lines which may causing the test failures. APIMANAGER3272ExternalLogoutPageTestCase - Getting an 404 when try to access https://localhost:9443/store/site/pages/login.jag. - In the code variable externalLogoutPage has assigned custom logout page url. APIMANAGER3344ScopeSpecificTokenTestCase - Searching Select Scopes link inside My Subscriptions page in the store but i don't see any select scope link in that page. APIMANAGER3363StoreAPIConsoleWithReverseProxy - When click on API Console tag getting an exception in log and also bellowing exception under that tag - 500 : undefined https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0 . APIMANAGER3366MultipleGatewayPublishTestCase - In the publisher when adding the API in the manage state it's expecting input.env css selector but it's not in that page. APIMANAGER3371BusinessInformationClearedWhenAPISavedButton - In the publisher when adding the API in the manage state it's try to click on xpath //form[@id='manage_form']/fieldset[3]/legend but it's not in that page. APIMANAGER3412DifferentRegistryContextPath - In the publisher when adding the API in the design state it's try to find a element by id jsonform-0-elt-production_endpoints but it's not in that page. APIVersoinStatTestCase - In the publisher in the all API page when it's empty it's trying to find versionTxt by id but it's not in that page. TestNameLengthTestCase - When running this test alone it's working. Some other test/tests might be the reason of failure of this test case. YouTubeUIPagesTestCase - testAPIPage.getTestResponseBody() gives ams:fault xmlns:ams= http://wso2.org/apimanager/security;ams:code900902/ams:codeams:messageMissing Credentials/ams:messageams:descriptionRequired OAuth credentials not provided. Make sure your API invocation call has a header: Authorization: Bearer ACCESS_TOKEN/ams:description/ams:fault Thanks, Iqbal -- Irham Iqbal Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 777888452 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API subscribe not working in tenant mode in test automation`
HI Shashika, Can you manually do the subscription from the same user (amuse...@wso2.com)? Check whether the given user has subscription permition. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sat, Apr 4, 2015 at 12:23 PM, Shashika Karunatilaka shashi...@wso2.com wrote: Hi, Currently i'm writing on a test case to publish a api through tenant and want to subscribe that api and need to invoke the api i have created, But im getting below error when calling org.wso2.carbon.am.tests.util.APIStoreRestClient's subscribe() method {error : true, message : org.wso2.carbon.apimgt.api.APIManagementException: Error while adding the subscription for user: amuse...@wso2.com} This process works fine when doing it using super tenant mode. Im using api manager 1.8.0. Thank you. -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API subscribe not working in tenant mode in test automation`
Hi Shashika, Is there any detail log available in server side about this error. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sat, Apr 4, 2015 at 12:50 PM, Shashika Karunatilaka shashi...@wso2.com wrote: Hi Saneth, yes, can do the same thing.it works from ui. On Sat, Apr 4, 2015 at 12:33 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: HI Shashika, Can you manually do the subscription from the same user ( amuse...@wso2.com)? Check whether the given user has subscription permition. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sat, Apr 4, 2015 at 12:23 PM, Shashika Karunatilaka shashi...@wso2.com wrote: Hi, Currently i'm writing on a test case to publish a api through tenant and want to subscribe that api and need to invoke the api i have created, But im getting below error when calling org.wso2.carbon.am.tests.util.APIStoreRestClient's subscribe() method {error : true, message : org.wso2.carbon.apimgt.api.APIManagementException: Error while adding the subscription for user: amuse...@wso2.com} This process works fine when doing it using super tenant mode. Im using api manager 1.8.0. Thank you. -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Integration Testing for an Admin Service
Hi Pubudu, You have to write you test cases using TestNG freamwork and call the your admin service via a client and verify them inside the test case. For that you can write your test cases inside integration module of the product you are going to deploy the service. You have to write your own admin clients to access your service, so you can use those admin clients inside the test case and write your test logic. For more information [1] [2][3]. Let us know your exact requirement of writing this test case(Test for a new feature.. etc.. ) and which area you got stuck. [1] https://docs.wso2.com/display/TA430/WSO2+Test+Automation+Documentation [2] http://wso2.com/library/articles/2014/03/platform-test-automation-using-wso2-test-automation-framework/ http://wso2.com/library/articles/2014/03/platform-test-automation-using-wso2-test-automation-framework/ [3] http://wso2.com/library/articles/2014/06/introducing-automated-tests-for-wso2-products/ http://www.google.com/url?q=http%3A%2F%2Fwso2.com%2Flibrary%2Farticles%2F2014%2F06%2Fintroducing-automated-tests-for-wso2-products%2Fsa=Dsntz=1usg=AFQjCNFCx0EAY81lGW_j-IAl1DV98huDzQ Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Apr 1, 2015 at 11:52 AM, Pubudu Dodangoda pubu...@wso2.com wrote: Hi, How can I perform $subject? Note : I followed the following article to write the service http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ Thanks -- Pubudu Dodangoda BSc Engineering(Hon's) Undergraduate Department of Computer Science Engineering University of Moratuwa 0716053681 / 0775192994 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] APIM Test case clarification :Once the API is published, update it in GW
Hi all, I need to clarify the scope, steps and expected output of following test case to write a integration test. This test case has written in high level and its hard to define a scope on it. If there is any artefacts that can be used in the test process please share it with me. Test case : Once the API is published, update it in GW (e.g:- add a new handler, add a new mediation logic) Test case can be found in [1] under API Life Cycle tab and row 43 [1] https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] APIM Test case clarification :Once the API is published, update it in GW
Hi Pavithra/Chathurika, Thanks for the information. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 30, 2015 at 2:31 PM, Chathurika De Silva chathuri...@wso2.com wrote: Hi As an addition to what pavithra mentioned, an example for a use case, Disabling chunked encdoing from gateway can be considered. Here we have to associate a custom sequence and this can be done by following [1] We can write a simple sequence as follows sequence xmlns=http://ws.apache.org/ns/synapse; name=admin--testapi1:v1.0--Out !-- log level=full property name Message# === value=/property /log -- property name=DISABLE_CHUNKING value=true scope=axis2 / /sequence [1]https://docs.wso2.com/display/AM180/Adding+Mediation+Extensions Hope its helpful Thank You Erandi On Mon, Mar 30, 2015 at 2:22 PM, Pavithra Madurangi pavit...@wso2.com wrote: Hi Saneth, I guess the the steps should be something like - Add API - Now edit API definition e.g : - Add a new handler (e.g https://docs.wso2.com/display/AM180/Writing+Custom+Handlers) Expected result : Check whether custom authentication handler is executed - Add a new mediation logic (E.g http://nuwanzone.blogspot.com/2013/03/how-to-extend-mediaiton-flow-in-wso2.html ) Expected result : Check whether this new sequence is executed. I'm adding Nirodha, Asanthi, Kala, Shamin and Chathurika to the thread for more clarification. On a related note this particular scenario can be divided into several test cases. @AsankaV, Can you please improve these kind of scenarios when you update the current test plan. Regards, Pavithra On Mon, Mar 30, 2015 at 1:44 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi all, I need to clarify the scope, steps and expected output of following test case to write a integration test. This test case has written in high level and its hard to define a scope on it. If there is any artefacts that can be used in the test process please share it with me. Test case : Once the API is published, update it in GW (e.g:- add a new handler, add a new mediation logic) Test case can be found in [1] under API Life Cycle tab and row 43 [1] https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 -- *Pavithra Madurangi* Associate Technical Lead - QA. WSO2 Inc.: http://wso2.com/ Mobile: 0777207357 / 0112747089 -- *Chathurika Erandi* Software Engineer, WSO2 Inc. *E-mail:* chathuri...@wso2.com *Mobile: *+94714 328 612 *Blog*: chathurikaerandi.blogspot.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Enabling ghost mode in test environment
Hi Shashika, Small correction on CarbonTestServerManager and MultipleServersManager. As it shows in the code block and reference links in [2] and [3] in my previous mail, you have to create a instance of CarbonTestServerManager with your required parameters and using MultipleServersManager you can start the server. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Mar 24, 2015 at 11:17 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Shashika, - Only way to enable the Ghost mode in test environment is to changing the repository/conf/carbon.xml. You have to copy the edited carbon.xml at @BeforeClass method and restore the carbon.xml at @AfterClasss method. You can do this task by using applyConfiguration methods in org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager.java. For sample usage of ServerConfigurationManager [1]. - *Do not edit the **wso2server.sh* and configure the webapp and tenant unloading time. For this you have to start a new server with a port offset and pass those parameters. You can use one of following ways. - Using CarbonTestServerManager.java. Usage and more details can be found in [2] mail thread and [3] - Using MultipleServersManager.java private HashMapString, String serverPropertyMap = new HashMapString, String(); private MultipleServersManager manager = new MultipleServersManager(); @BeforeClass(alwaysRun = true) public void init() throws Exception { // to start the server from a different port offset *int portOffset = 1;* *int idleTime = 1;* *serverPropertyMap.put(-DportOffset, Integer.toString(portOffset));* *serverPropertyMap.put(-Dtenant.idle.time, Integer.toString(idleTime));* AutomationContext autoCtx = new AutomationContext(); CarbonTestServerManager server = new CarbonTestServerManager(autoCtx, System.getProperty(carbon.zip), serverPropertyMap); manager.startServers(server); UserPopulator userPopulator = new UserPopulator(AS, appServerInstance0002); userPopulator.populateUsers(); } same as -*Dtenant.idle.time *u can add the *-Dwebapp.idle.time* [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java [2][Dev] How to set tenant idle time in writing integration test for AS 5.2.1 [3 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/products/esb/4.7.0/modules/integration/tests/src/test/java/org/wso2/carbon/esb/test/servers/NewInstanceTestCase.java] Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Mar 24, 2015 at 10:14 PM, Shashika Karunatilaka shashi...@wso2.com wrote: Hi Mahesh, AFAIK we cant enable ghost mode in test environment by editing carbon.xml. On Tue, Mar 24, 2015 at 10:02 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Shashika, You can enable Ghost mode deployment from setting the value 'true' in repository/conf/carbon.xml GhostDeployment Enabled*true*/Enabled PartialUpdatefalse/PartialUpdate /GhostDeployment And to set the webapp unloading time u can do following, open wso2server.sh in vim editor ( sudo vi wso2server.sh) Add following line in the bottom section ( inside do while ) -Dwebapp.idle.time=1 \ Thanks On Tue, Mar 24, 2015 at 7:44 PM, Shashika Karunatilaka shashi...@wso2.com wrote: Hi, I need to write a test case to get the first request to a deployed web app after the web app went to ghost mode or unloaded. how should i enable ghost mode, web app idle time in test environment? Thank you. -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Enabling ghost mode in test environment
Hi Shashika, - Only way to enable the Ghost mode in test environment is to changing the repository/conf/carbon.xml. You have to copy the edited carbon.xml at @BeforeClass method and restore the carbon.xml at @AfterClasss method. You can do this task by using applyConfiguration methods in org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager.java. For sample usage of ServerConfigurationManager [1]. - *Do not edit the **wso2server.sh* and configure the webapp and tenant unloading time. For this you have to start a new server with a port offset and pass those parameters. You can use one of following ways. - Using CarbonTestServerManager.java. Usage and more details can be found in [2] mail thread and [3] - Using MultipleServersManager.java private HashMapString, String serverPropertyMap = new HashMapString, String(); private MultipleServersManager manager = new MultipleServersManager(); @BeforeClass(alwaysRun = true) public void init() throws Exception { // to start the server from a different port offset *int portOffset = 1;* *int idleTime = 1;* *serverPropertyMap.put(-DportOffset, Integer.toString(portOffset));* *serverPropertyMap.put(-Dtenant.idle.time, Integer.toString(idleTime));* AutomationContext autoCtx = new AutomationContext(); CarbonTestServerManager server = new CarbonTestServerManager(autoCtx, System.getProperty(carbon.zip), serverPropertyMap); manager.startServers(server); UserPopulator userPopulator = new UserPopulator(AS, appServerInstance0002); userPopulator.populateUsers(); } same as -*Dtenant.idle.time *u can add the *-Dwebapp.idle.time* [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java [2][Dev] How to set tenant idle time in writing integration test for AS 5.2. 1 [3 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/products/esb/4.7.0/modules/integration/tests/src/test/java/org/wso2/carbon/esb/test/servers/NewInstanceTestCase.java] Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Mar 24, 2015 at 10:14 PM, Shashika Karunatilaka shashi...@wso2.com wrote: Hi Mahesh, AFAIK we cant enable ghost mode in test environment by editing carbon.xml. On Tue, Mar 24, 2015 at 10:02 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Shashika, You can enable Ghost mode deployment from setting the value 'true' in repository/conf/carbon.xml GhostDeployment Enabled*true*/Enabled PartialUpdatefalse/PartialUpdate /GhostDeployment And to set the webapp unloading time u can do following, open wso2server.sh in vim editor ( sudo vi wso2server.sh) Add following line in the bottom section ( inside do while ) -Dwebapp.idle.time=1 \ Thanks On Tue, Mar 24, 2015 at 7:44 PM, Shashika Karunatilaka shashi...@wso2.com wrote: Hi, I need to write a test case to get the first request to a deployed web app after the web app went to ghost mode or unloaded. how should i enable ghost mode, web app idle time in test environment? Thank you. -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: mahe...@wso2.com | Web: www.wso2.com -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/ mobile : +94 77 7487792 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] NumberFormatException when genarating Key in API manager 1.9.0 SNAPSHOT.
(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:695) java.lang.NumberFormatException Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Best Practices in Testing Flow-Based methods
Hi Supun, it is not a good idea to populate a DB using DB dumps, because it is not pactrical to maintain the db dumps and package the dumps with product. In user scenarios also these workflows are executed in same oder it is ok to have dependencies among the workflows. But at the *beginning of each workflow it is must to verify *the needed data is available in the db. These verifications can be implemented inside *@beforeClass *or *@ beforeTest* methods(this depends on how you arrange the test cases). Also if you arrange the each workflow as test groups you can use *dependsOnGroups* to control the dependency amoung workflows. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 20, 2015 at 5:59 PM, Supun Sethunga sup...@wso2.com wrote: Hi, While writing Integration Automated Tests for Product ML, I came across the following scenario: Suppose there are several workflows I want to test (workflow_1, workflow_2, ...). Each workflow consists of several methods. i.e: - workflow_1 - method_A - method_B - method_C - workflow_2 - method_X - method_Y - method_Z - and so on.. Every workflow read/write from/to database. In user-scenarios, these workflows are also again executed in order. i.e: each workflow needs the data written to DB from the previous workflow. Would like to know the Best way of writing tests to this scenario. Is it acceptable to use a happy-scenario of workflow_1 when initializing tests for workflow_2? OR should I populate the DB using a pre-created DB dump, OR mock the database? Thanks, Supun -- *Supun Sethunga* Software Engineer WSO2, Inc. http://wso2.com/ lean | enterprise | middleware Mobile : +94 716546324 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM] issue with changing application level tier is not working 1.9.0 SNAPSHOT.
Hi APIM team, I created a API with gold tier with resource with unlimited tier. Then I subscribed the API via Silver level tier application. If I invoke the API, the throttling is working correctlly, only the amount in silver tier is allowed. Then I change the application to gold tier and test the throttling, it is still working for the amount in silver tier. Is this a issue or do I miss any steps here? Note: EnableGatewayKeyCache and EnableGatewayResourceCache both set to false Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM] Empty File Attachment : Error when try to add Doc to API in APIM 1.9.0 SNAPSHOT.
Hi, I am getting Empty File Attachment error when try to add Doc to API. Following are the doc type I am using. Find the screen capture[1] Doc Type: How to and source: In-line Is there any reason for this? [1] Screen Shot 2015-03-18 at 4.37.29 PM.png https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5UTjZDdmFkaFo0bzQ/edit?usp=drive_web Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM] Empty File Attachment : Error when try to add Doc to API in APIM 1.9.0 SNAPSHOT.
Hi Tharindu / Kala, Thanks for the information. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Mar 18, 2015 at 5:11 PM, Kala Weerawardana k...@wso2.com wrote: Hi Saneth, This issue is fixed in [1]. [1] - https://wso2.org/jira/browse/APIMANAGER-3229 Regards, Kala On Wed, Mar 18, 2015 at 4:48 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, I am getting Empty File Attachment error when try to add Doc to API. Following are the doc type I am using. Find the screen capture[1] Doc Type: How to and source: In-line Is there any reason for this? [1] Screen Shot 2015-03-18 at 4.37.29 PM.png https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5UTjZDdmFkaFo0bzQ/edit?usp=drive_web Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 -- Kala C. Weerawardana *Software Engineer - QA Team* *WSO2 Inc. * Mobile : +94 (0) 716189886 +94 (0) 772877683 Blog : http://castakai.blogspot.com k...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM] Clarification about APIM Tier : throttle:MaximumCount
Hi APIM Team, I need to clarify some information about *throttle:MaximumCount* If Tier throttle:MaximumCount is set to 20 and UnitTime is set to 6 (assume we apply bellow throttle value to all API-level, Application-level and Resource-level ) ex: throttle:MaximumCount50/throttle:MaximumCount throttle:UnitTime6/throttle:UnitTime 1. whether the api invocation cut off exactly from 51th request within 6 milliseconds ? 2. If not, is there any percentage or amount that it can accept additional requests? Also if there is a document that has detail information about this, please share with me. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM] Clarification about APIM Tier : throttle:MaximumCount
Hi Amila, Thanks for the Information. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Mar 18, 2015 at 7:07 PM, Amila De Silva ami...@wso2.com wrote: Hi Saneth, In a clustered environment, the cutoff might not exactly happen on 51st request. Certain amount of requests may slip through. The amount of additional requests passing through depends on several parameters like the number of GW nodes running on the setup, replication frequency set and the amount of requests hitting the GWs. On a standalone environment, the cutoff should happen on 51st request. On Wed, Mar 18, 2015 at 6:50 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi APIM Team, I need to clarify some information about *throttle:MaximumCount* If Tier throttle:MaximumCount is set to 20 and UnitTime is set to 6 (assume we apply bellow throttle value to all API-level, Application-level and Resource-level ) ex: throttle:MaximumCount50/throttle:MaximumCount throttle:UnitTime6/throttle:UnitTime 1. whether the api invocation cut off exactly from 51th request within 6 milliseconds ? 2. If not, is there any percentage or amount that it can accept additional requests? Also if there is a document that has detail information about this, please share with me. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 -- *Amila De Silva* WSO2 Inc. mobile :(+94) 775119302 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] IS sever start up issue in TAF 4.3.1
Hi Thanuja, As Akalanka mentioned, you get error for *9765 *because you are using startupParameterMap.put(-DportOffset, 1), might be you have a another server started manually or from a previous test case is using this port. Put a debug point at startupParameterMap.put(-DportOffset, 1);(before start the second server) and try to find the consumer of port 9765. Also note that it is not recommend to use SNAPSHOT test framework version. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Mar 17, 2015 at 8:45 AM, Akalanka Pagoda Arachchi darsha...@wso2.com wrote: Hi Thanuja, While getting a new AutomationContext you are passing a parameter for portOffset of 1. I believe this is why it is looking for 9764 + 1. Thanks, Akalanka. On Mon, Mar 16, 2015 at 11:57 PM, Thanuja Jayasinghe than...@wso2.com wrote: Hi, We are in the process of moving existing test cases to TAF 4.3.1 and experienced following issue when we try to start another IS server. automation.xml configuration - instance name=identity002 type=standalone nonBlockingTransportEnabled=false hosts host type=defaultlocalhost/host /hosts ports port type=http*9764*/port port type=https9444/port /ports properties /properties /instance Code - MapString, String startupParameterMap = new HashMapString, String(); startupParameterMap.put(-DportOffset, 1); CarbonTestServerManager server1 = new CarbonTestServerManager(new AutomationContext(IDENTITY, identity002, TestUserMode.SUPER_TENANT_ADMIN), System.getProperty(carbon.zip), startupParameterMap); Error - testInit(org.wso2.identity.integration.test.provisioning.ProvisioningTestCase) Time elapsed: 330.967 sec FAILURE! java.lang.RuntimeException: Port *9765* is not open at org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil.waitForPort(ClientConnectionUtil.java:151) at org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager.startServerUsingCarbonHome(CarbonServerManager.java:136) at org.wso2.carbon.automation.extensions.servers.carbonserver.TestServerManager.startServer(TestServerManager.java:100) at org.wso2.identity.integration.common.utils.CarbonTestServerManager.startServer(CarbonTestServerManager.java:29) at org.wso2.carbon.automation.extensions.servers.carbonserver.MultipleServersManager.startServers(MultipleServersManager.java:46) at org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.startOtherCarbonServers(ProvisioningTestCase.java:438) at org.wso2.identity.integration.test.provisioning.ProvisioningTestCase.testInit(ProvisioningTestCase.java:91) Issue is it refers to port 9765 even it should be referring to port 9764. So I changed TAF version to 4.3.2-SNAPSHOT and this issue get resolved. But I can see following error log with TAF 4.3.2-SNAPSHOT. This happens because we are trying to access the server before it get started properly. INFO [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil] - Waiting for user login... INFO [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil] - https://localhost:9444/services INFO [org.apache.axis2.transport.http.HTTPSender] - Unable to sendViaPost to url[https://localhost:9444/services/AuthenticationAdmin] org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:330) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:196) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) ERROR [org.wso2.carbon.automation.extensions.servers.utils.ClientConnectionUtil] - Unable to login as user.. Thanks, Thanuja. -- *Thanuja Lakmal* Software Engineer WSO2 Inc. http://wso2.com/ *lean.enterprise.middleware* Mobile: +94715979891 +94758009992 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Darshana Akalanka Pagoda Arachchi,* *Software Engineer* *078-4721791* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] @BeforeTest and @AfterTest runs for each test instantiated with @Factory in TAF 4.3.1
Hi Malithi Krishantha, I created a similar scenario and analyse the method call order and noticed that @Factory is get called first. @BeforeTest and @AfterTest that are in separate class execute only once. But @BeforeTest and @AfterTest in the same class with @Factory ,@BeforeClass..,@Test are get execute multiple times (equal to the how much instance that that has been created in the @Factory). Malithi, Until we find the exact reason for this behaviour you can move your @BeforeTest and @AfterTest to a different class. Also share your Test Class with us. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 16, 2015 at 11:08 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Malithi, On Mon, Mar 16, 2015 at 6:44 PM, Malithi Edirisinghe malit...@wso2.com wrote: Hi All, I'm using Factories in TestNG to instantiate tests dynamically for different parameter sets. And I have configured the test class inside a test block in the testng.xml as below. test name=Test - IS - OpenID preserve-order=true parallel=false classes class name=org.wso2.identity.integration.test.openid.OpenIDSSOTestCase / /classes /test When running this test on the TAF 4.3.1 I found that the methods annotated with 'BeforeTest' and 'AfterTest' runs for each test instance instantiated with the factory. But when running the same test on an earlier version of TAF, methods annotated with 'BeforeTest' and 'AfterTest' are executed only once, which is the expected behavior [1]. I found that TAF 4.3.1 is using TestNG 6.1.1 where as earlier versions of TAF use TestNG 6.8. Seems this issue is with TestNG 6.1.1 version. This is also reported in [2]. Is there a specific reason to downgrade the TestNG version in TAF 4.3.1 ? Nope we haven't downgraded testNG in TAF 4.3.1. in your old tests modules, 6.8 version might be explicitly specified. We only recommend to go with testNG 6.1.1 as 6.8 is not much stable. Some other products like AS also use @Factory with @BeforeTest and @AfterTest annotations with 6.1.1. Need to figure out what is really happening here. Thanks, Krishantha. In that case, what would be the way to achieve the expected behavior ? [1] http://testng.org/doc/documentation-main.html#annotations [2] http://osdir.com/ml/java-testng-user/2011-07/msg00166.html Thanks, Malithi. -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] @BeforeTest and @AfterTest runs for each test instantiated with @Factory in TAF 4.3.1
[Adding: Krishantha] Hi Malithi, Have you written the 'BeforeTest' and 'AfterTest' inside the same test class with 'BeforeClasst' ,'AfterClasst and other @Test test methods? If so put 'BeforeTest' and 'AfterTest' in a different class and add that class to testng.xml with OpenIDSSOTestCase. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 16, 2015 at 6:44 PM, Malithi Edirisinghe malit...@wso2.com wrote: Hi All, I'm using Factories in TestNG to instantiate tests dynamically for different parameter sets. And I have configured the test class inside a test block in the testng.xml as below. test name=Test - IS - OpenID preserve-order=true parallel=false classes class name=org.wso2.identity.integration.test.openid.OpenIDSSOTestCase / /classes /test When running this test on the TAF 4.3.1 I found that the methods annotated with 'BeforeTest' and 'AfterTest' runs for each test instance instantiated with the factory. But when running the same test on an earlier version of TAF, methods annotated with 'BeforeTest' and 'AfterTest' are executed only once, which is the expected behavior [1]. I found that TAF 4.3.1 is using TestNG 6.1.1 where as earlier versions of TAF use TestNG 6.8. Seems this issue is with TestNG 6.1.1 version. This is also reported in [2]. Is there a specific reason to downgrade the TestNG version in TAF 4.3.1 ? In that case, what would be the way to achieve the expected behavior ? [1] http://testng.org/doc/documentation-main.html#annotations [2] http://osdir.com/ml/java-testng-user/2011-07/msg00166.html Thanks, Malithi. -- *Malithi Edirisinghe* Senior Software Engineer WSO2 Inc. Mobile : +94 (0) 718176807 malit...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Implementation of API Manager-API Life Cycle Integration Test Cases
Hi, Please find pull request [1] for phase2 and ignore the previous pull request [2]. The new pull request can be merge without a conflict. Three test cases has been desabled due to following JIRA issues. - AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase : APIMANAGER-3374 [3] - ChangeAPIEndPointURLTestCase : APIMANAGER-3378 [4] - EditAPIContextAndCheckAccessibilityTestCase : APIMANAGER-3377 [5] [1] https://github.com/wso2/product-apim/pull/53 [2] https://github.com/wso2/product-apim/pull/49 [3] https://wso2.org/jira/browse/APIMANAGER-3374 [4] https://wso2.org/jira/browse/APIMANAGER-3378 [5] https://wso2.org/jira/browse/APIMANAGER-3377 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 13, 2015 at 10:09 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Krishantha, I Updated the document with test classes mapping . Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Thu, Mar 12, 2015 at 8:01 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Saneth, Can you update the QA test case document with correct mapping for test classes. Thanks, Krishantha. On Thu, Mar 12, 2015 at 7:51 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Please find the progress update of phase2, Pull request : https://github.com/wso2/product-apim/pull/49 This pull request contains, - Migration of test method to test classes that were developed in phase1. - New scenarios covered in Phase 2. - New base class was introduced to lifecycle test cases. - @BeforeTest and @AftterTest methods was introduced to do the configurations and restore those changes at the end of the lifecycle tests. - Add cleanup methods to remove the created/publish and subscribed APIs at the end of each test. - Completed test classes as follow (11 Classes and 44 test methods ). - AccessibilityOfBlockAPITestCase - AccessibilityOfDeprecatedOldAPIAndPublishedCopyAPITestCase - AccessibilityOfOldAPIAndCopyAPIWithOutReSubscriptionTestCase - AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase - AccessibilityOfRetireAPITestCase - APIAccessibilityOfPublishedOldAPIAndPublishedCopyAPITestCase - APIPublishingAndVisibilityInStoreTestCase - ChangeAPIBackendURLTestCase - ChangeAPITagsTestCase - EditAPIAndCheckUpdatedInformationTestCase - EditAPIContextAndCheckAccessibilityTestCase Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 6, 2015 at 8:00 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, Please find the progress update, I have finished following test cases. - testAPIPublishingAndVisibilityInStore - testAccessibilityOfPublishedOldAPIAndPublishedCopyAPI - testAccessibilityOfDeprecatedOldAPIAndPublishedCopyAPI - testAccessibilityOfOldAPIAndCopyAPIWithReSubscription - testAccessibilityOfOldAPIAndCopyAPIWithOutReSubscription - testAccessibilityOfBlockAPI - testAccessibilityOfRetireAPI Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 2, 2015 at 5:53 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, I am working on $subject, test scenarios will be based on [1] API-M 1.9.0 Test Plan document (under API Life Cycle Tab). [1]API-M 1.9.0 Test Plan https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM][Integration-test]Integration test for Application Subscription Sharing
Hi Shani, RemoteUserStoreManagerServiceClient [1] has setUserClaimValue() method. You can find the usage in [2] [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/am/admin/clients/user/RemoteUserStoreManagerServiceClient.java [2] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/sample/JWTTestCase.java Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Mar 17, 2015 at 8:38 AM, Shani Ranasinghe sh...@wso2.com wrote: Hi, I need to write a test case for Application subscription sharing feature. For this, I require a user who has claims. I could not find how to add claims for user. Please let me know if there are any references that I could refer to in order to write this. -- Thanks and Regards *,Shani Ranasinghe* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 2273555 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM] Edit API context is not working with latest APIM pack (1.9.0 SNAPSHOT).
Hi, After changing the api context, it shows the new context correctly in publisher and store but it gives HTTP 404 response if access with new context. Still the api can be accessed with old context. It was working correctly on locally build pack on 9-3-2015. I have created APIMANAGER-3377 [1] for track this issue. [1]https://wso2.org/jira/browse/APIMANAGER-3377 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM]Edit API endpoint url is not working with latest APIM pack (1.9.0 SNAPSHOT).
Hi, After changing the api endpoint url, publisher it show the new endpoint url correctly. If we access the api, it gives the response of old endpoint. It was working correctly on locally build pack on 9-3-2015. I have created APIMANAGER-3378 [1] for track this issue. [1] https://wso2.org/jira/browse/APIMANAGER-3378 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please review and merge - Ghost deployment(Lazy Loading) test cases for WSO2 AS
Hi KasunG, Please review and merge the pull request [1] for the Ghost deployment(Lazy Loading) test cases for WSO2 AS [1] https://github.com/wso2/product-as/pull/48 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM] First API invocation failed after re-subscription when a false invocation done before the re-subscription
Cashed invalid request should get overwrite after the subscription or the first invocation after the subscription? first invocation fails and second invocation pass. So the should't the overwrite happened in first call? Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 13, 2015 at 10:47 AM, Nuwan Dias nuw...@wso2.com wrote: We cache the invalid access requests as well. So that someone with an invalid token can't overload the system (much). Thanks, NuwanD. On Fri, Mar 13, 2015 at 10:33 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Nuwan, With EnableGatewayKeyCache*false*/EnableGatewayKeyCache it is working correctly. First new API invocation after re-subscription is not getting failed even a false invocation happens before doing the re-subscription. But it is strange the behaviour with EnableGatewayKeyCache*true*/EnableGatewayKeyCache, because first new API invocation after re-subscription is getting failed when false invocation happens before doing the re-subscription and first API invocation after re-subscription is not getting failed when false invocation is not attempt before doing the re-subscription. Can't this be a issue with caching mechanism? because with or without cash, the first invocation after re-subscription should pass regardless of what has happened before the re-subscription. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 13, 2015 at 9:24 AM, Nuwan Dias nuw...@wso2.com wrote: Hi Saneth, I think this is due to the caching of the older token. Can you please try again by setting EnableGatewayKeyCache to 'false' in the api-manager.xml? Thanks, NuwanD. On Fri, Mar 13, 2015 at 8:51 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: [Adding: Kala and Krishantha ] Hi, I tested this issue with both 1.9.0 SNAPSHOT version and 1.8.0. Both versions I was able to recreate the isssue. I created Jira :APIMANAGER-3374 [1] for tracking purpose. Automation test case AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase [2] will be disable until this issue is fixed. I have updated the API-M 1.9.0 Test Plan [3] with JIRA information. [1] https://wso2.org/jira/browse/APIMANAGER-3374 [2] org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase.java [3] API-M 1.9.0 Test Plan Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 6, 2015 at 10:14 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, 1. After copy and publish a new API version with the require re-subscription option and invoke the new API version without doing re-subscription it give an error, which is correct. 2. But after that if I do a re-subscription and invoke the new API version again, the first new API version invocation after re-subscription is getting failed and getting success from 2nd invocation after re-subscription. 3. This behaviour is not happening if I do not invoke the new API version before doing the re-subscription. In that case, first invocation of new API version after re-subscription is getting succeed. Is there any reason for the above 2nd observation?. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM] First API invocation failed after re-subscription when a false invocation done before the re-subscription
[Adding: Kala and Krishantha ] Hi, I tested this issue with both 1.9.0 SNAPSHOT version and 1.8.0. Both versions I was able to recreate the isssue. I created Jira :APIMANAGER-3374 [1] for tracking purpose. Automation test case AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase [2] will be disable until this issue is fixed. I have updated the API-M 1.9.0 Test Plan [3] with JIRA information. [1] https://wso2.org/jira/browse/APIMANAGER-3374 [2] org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase.java [3] API-M 1.9.0 Test Plan Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 6, 2015 at 10:14 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, 1. After copy and publish a new API version with the require re-subscription option and invoke the new API version without doing re-subscription it give an error, which is correct. 2. But after that if I do a re-subscription and invoke the new API version again, the first new API version invocation after re-subscription is getting failed and getting success from 2nd invocation after re-subscription. 3. This behaviour is not happening if I do not invoke the new API version before doing the re-subscription. In that case, first invocation of new API version after re-subscription is getting succeed. Is there any reason for the above 2nd observation?. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Implementation of API Manager-API Life Cycle Integration Test Cases
Hi Krishantha, I Updated the document with test classes mapping . Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Thu, Mar 12, 2015 at 8:01 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Saneth, Can you update the QA test case document with correct mapping for test classes. Thanks, Krishantha. On Thu, Mar 12, 2015 at 7:51 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Please find the progress update of phase2, Pull request : https://github.com/wso2/product-apim/pull/49 This pull request contains, - Migration of test method to test classes that were developed in phase1. - New scenarios covered in Phase 2. - New base class was introduced to lifecycle test cases. - @BeforeTest and @AftterTest methods was introduced to do the configurations and restore those changes at the end of the lifecycle tests. - Add cleanup methods to remove the created/publish and subscribed APIs at the end of each test. - Completed test classes as follow (11 Classes and 44 test methods ). - AccessibilityOfBlockAPITestCase - AccessibilityOfDeprecatedOldAPIAndPublishedCopyAPITestCase - AccessibilityOfOldAPIAndCopyAPIWithOutReSubscriptionTestCase - AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase - AccessibilityOfRetireAPITestCase - APIAccessibilityOfPublishedOldAPIAndPublishedCopyAPITestCase - APIPublishingAndVisibilityInStoreTestCase - ChangeAPIBackendURLTestCase - ChangeAPITagsTestCase - EditAPIAndCheckUpdatedInformationTestCase - EditAPIContextAndCheckAccessibilityTestCase Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 6, 2015 at 8:00 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, Please find the progress update, I have finished following test cases. - testAPIPublishingAndVisibilityInStore - testAccessibilityOfPublishedOldAPIAndPublishedCopyAPI - testAccessibilityOfDeprecatedOldAPIAndPublishedCopyAPI - testAccessibilityOfOldAPIAndCopyAPIWithReSubscription - testAccessibilityOfOldAPIAndCopyAPIWithOutReSubscription - testAccessibilityOfBlockAPI - testAccessibilityOfRetireAPI Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 2, 2015 at 5:53 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, I am working on $subject, test scenarios will be based on [1] API-M 1.9.0 Test Plan document (under API Life Cycle Tab). [1]API-M 1.9.0 Test Plan https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM] First API invocation failed after re-subscription when a false invocation done before the re-subscription
Hi Nuwan, With EnableGatewayKeyCache*false*/EnableGatewayKeyCache it is working correctly. First new API invocation after re-subscription is not getting failed even a false invocation happens before doing the re-subscription. But it is strange the behaviour with EnableGatewayKeyCache*true*/EnableGatewayKeyCache, because first new API invocation after re-subscription is getting failed when false invocation happens before doing the re-subscription and first API invocation after re-subscription is not getting failed when false invocation is not attempt before doing the re-subscription. Can't this be a issue with caching mechanism? because with or without cash, the first invocation after re-subscription should pass regardless of what has happened before the re-subscription. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 13, 2015 at 9:24 AM, Nuwan Dias nuw...@wso2.com wrote: Hi Saneth, I think this is due to the caching of the older token. Can you please try again by setting EnableGatewayKeyCache to 'false' in the api-manager.xml? Thanks, NuwanD. On Fri, Mar 13, 2015 at 8:51 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: [Adding: Kala and Krishantha ] Hi, I tested this issue with both 1.9.0 SNAPSHOT version and 1.8.0. Both versions I was able to recreate the isssue. I created Jira :APIMANAGER-3374 [1] for tracking purpose. Automation test case AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase [2] will be disable until this issue is fixed. I have updated the API-M 1.9.0 Test Plan [3] with JIRA information. [1] https://wso2.org/jira/browse/APIMANAGER-3374 [2] org.wso2.am.integration.tests.api.lifecycle.AccessibilityOfOldAPIAndCopyAPIWithReSubscriptionTestCase.java [3] API-M 1.9.0 Test Plan Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Mar 6, 2015 at 10:14 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, 1. After copy and publish a new API version with the require re-subscription option and invoke the new API version without doing re-subscription it give an error, which is correct. 2. But after that if I do a re-subscription and invoke the new API version again, the first new API version invocation after re-subscription is getting failed and getting success from 2nd invocation after re-subscription. 3. This behaviour is not happening if I do not invoke the new API version before doing the re-subscription. In that case, first invocation of new API version after re-subscription is getting succeed. Is there any reason for the above 2nd observation?. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Irham Iqbal
Congratulations Irham... Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Mar 10, 2015 at 1:23 PM, Malintha Adikari malin...@wso2.com wrote: Congratulations Irham! On Tue, Mar 10, 2015 at 7:51 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi all, It's my pleasure to welcome Irham Iqbal as a WSO2 Committer. Irham, welcome aboard and keep up the good work! Thanks, Krishantha. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Malintha Adikari* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Mobile: +94 71 2312958 Blog:http://malinthas.blogspot.com Page: http://about.me/malintha ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM] API-M -1.9.0 :API Life Cycle - Test scenario clarification - Change the state of api with different combinations
Hi, I am writing integration tests for API Life Cycle and found following test scenario in document[1], Test Scenario : Change the *state* of api with different combinations (11th row in API Life Cycle Tab ) I need to clarify following points. 1. What is meant by *state*? Is it lifecycle state? 2. If it is lifecycle state,How this test scenario is specifically differ from other test scenarios?, What are the expected outcomes this test? (What need to be done and What observations need to verify) [1] https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [APIM] API-M -1.9.0 :API Life Cycle - Test scenario clarification - Change the state of api with different combinations
HI Kala, Thanks for the information. But does this test scenario is not covered by other test scenarios?, Ex scenarios : Retire an api verify it from store(row 9) Block an api and check it in store(row 10) Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Mar 10, 2015 at 8:02 AM, Kala Weerawardana k...@wso2.com wrote: Hi Saneth, I tested the Lifecycle state section but did not write the test cases. It was already written. Anyway for your questions, 1. Yes the State mentioned there refers to Lifecycle state. 2. According to the different sates CREATED, PROTOTYPED, PUBLISHED, DEPRECATED, RETIRED and BLOCKED you have to test what happens to the API after changing in to each and every state. That line 'Change the state of api with different combinations' make sure that every possible scenario is tested changing the states of a Lifecycle. As I figured the test scenarios are written according to [1]. [1] - https://docs.wso2.com/display/AM180/Manage+the+API+Lifecycle Regards, Kala On Mon, Mar 9, 2015 at 11:39 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, I am writing integration tests for API Life Cycle and found following test scenario in document[1], Test Scenario : Change the *state* of api with different combinations (11th row in API Life Cycle Tab ) I need to clarify following points. 1. What is meant by *state*? Is it lifecycle state? 2. If it is lifecycle state,How this test scenario is specifically differ from other test scenarios?, What are the expected outcomes this test? (What need to be done and What observations need to verify) [1] https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 -- Kala C. Weerawardana *Software Engineer - QA Team* *WSO2 Inc. * Mobile : +94 (0) 716189886 +94 (0) 772877683 Blog : http://castakai.blogspot.com k...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Implementation of API Manager-API Life Cycle Integration Test Cases
Hi, Please find the progress update, I have finished following test cases. - testAPIPublishingAndVisibilityInStore - testAccessibilityOfPublishedOldAPIAndPublishedCopyAPI - testAccessibilityOfDeprecatedOldAPIAndPublishedCopyAPI - testAccessibilityOfOldAPIAndCopyAPIWithReSubscription - testAccessibilityOfOldAPIAndCopyAPIWithOutReSubscription - testAccessibilityOfBlockAPI - testAccessibilityOfRetireAPI Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 2, 2015 at 5:53 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, I am working on $subject, test scenarios will be based on [1] API-M 1.9.0 Test Plan document (under API Life Cycle Tab). [1]API-M 1.9.0 Test Plan https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [APIM] First API invocation failed after re-subscription when a false invocation done before the re-subscription
Hi, 1. After copy and publish a new API version with the require re-subscription option and invoke the new API version without doing re-subscription it give an error, which is correct. 2. But after that if I do a re-subscription and invoke the new API version again, the first new API version invocation after re-subscription is getting failed and getting success from 2nd invocation after re-subscription. 3. This behaviour is not happening if I do not invoke the new API version before doing the re-subscription. In that case, first invocation of new API version after re-subscription is getting succeed. Is there any reason for the above 2nd observation?. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [G-Reg 4.6.0] Issue in creating an endpoint
Hi Sithumini, As we discussed yesterday, did you check with GReg team about why the option to set the endpoint name and version is not available in the method you are using ? Can that have a impact to this behavior? Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Mar 4, 2015 at 10:29 PM, Sithumini Senevirathne sithumi...@wso2.com wrote: Hi Sagara, Yes, I have already talked to them. Thanks, Sithumini On Wed, Mar 4, 2015 at 9:51 PM, Sagara Gunathunga sag...@wso2.com wrote: Did you talk to Krishantha or someone from automation team about the issue ? Thanks ! On Wed, Mar 4, 2015 at 9:28 PM, Sithumini Senevirathne sithumi...@wso2.com wrote: Hi, Currently I am working on writing a test case. The problem context is when login to the registry through a tenant user and when we create an endpoint then SOF errors are thrown. Errors can be found in carbon.log file. So in test case I followed below steps. - Created an tenant. - Logged in to the registry through the tenant. - Added an endpoint using registry GenericArtifactManager. - Read the log file to find the error. But here SOF error is not thrown. Then I manually add an endpoint and found the SOF error was thrown. Even the endpoint added through the code was not listed in the registry management console metadata list. But both endpoints have been created at the correct path. location of endpoint add in test case code level : /_system/governance/mediation/mediationdata/endpoint/endpoint1/1.0.0/endpoint location of manually added endpoint : /_system/governance/mediation/mediationdata/endpoint/TestEndpoint1/2.0.0/endpoint This behaviour has become a blocker for this test. Can someone explain me the reason for this behaviour? Is there other way to overcome this? Thank you, Sithumini -- -- Sithumini Senevirathne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com email: sithumi...@wso2.com, mobile: +94 756977999 -- Sagara Gunathunga Senior Technical Lead; WSO2, Inc.; http://wso2.com V.P Apache Web Services;http://ws.apache.org/ Linkedin; http://www.linkedin.com/in/ssagara Blog ; http://ssagara.blogspot.com -- -- Sithumini Senevirathne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com email: sithumi...@wso2.com, mobile: +94 756977999 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Older API versions are not listed in API Store under More APIs from user
Thanks Nuwan for the Information. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 2, 2015 at 8:57 PM, Nuwan Dias nuw...@wso2.com wrote: This behaviour is configurable in the api-manager.xml as below. DisplayMultipleVersionstrue/DisplayMultipleVersions Thanks, NuwanD. On Mon, Mar 2, 2015 at 6:49 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, I have noticed following behaviour in API-Manager - API Store, when implanting API Life Cycle integration test cases. After create a new version of a API and publish, the old API version is not get listed under More APIs from user section.. 1. When search the API name, it shows all the APIs versions[1]. 2. When select the old API version from search list, It shows the new version under More Apis from user section[2] 3. *When select the new API version from search list, It does not show the old version under More Apis from user section.[3]* 4. *When make a REST call to .../store/site/blocks/api/listing/ajax/list.jag?action=getAllPublishedAPIs , it also return only the new API version* I am refering to the API-M 1.9.0 Test Plan [4] - Is there any reason why the old versions are not listed in More APIs from user section ? - Also any reason to the REST call( .../store/site/blocks/api/listing/ajax/list.jag?action=getAllPublishedAPIs) not return all versions of the API ? [1] Screen Shot 2015-03-02 at 6.03.52 PM.png https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5UUUs3bDFfeWhneHM/edit?usp=drive_web [2] Screen Shot 2015-03-02 at 6.04.08 PM.png https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5UVk1rakFqcHN1cm8/edit?usp=drive_web [3] Screen Shot 2015-03-02 at 6.03.13 PM.png https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5Ucnp0eUNVSEVPZFE/edit?usp=drive_web [4] API-M 1.9.0 Test Plan https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Implementation of API Manager-API Life Cycle Integration Test Cases
Hi, I am working on $subject, test scenarios will be based on [1] API-M 1.9.0 Test Plan document (under API Life Cycle Tab). [1]API-M 1.9.0 Test Plan https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Older API versions are not listed in API Store under More APIs from user
Hi, I have noticed following behaviour in API-Manager - API Store, when implanting API Life Cycle integration test cases. After create a new version of a API and publish, the old API version is not get listed under More APIs from user section.. 1. When search the API name, it shows all the APIs versions[1]. 2. When select the old API version from search list, It shows the new version under More Apis from user section[2] 3. *When select the new API version from search list, It does not show the old version under More Apis from user section.[3]* 4. *When make a REST call to .../store/site/blocks/api/listing/ajax/list.jag?action=getAllPublishedAPIs , it also return only the new API version* I am refering to the API-M 1.9.0 Test Plan [4] - Is there any reason why the old versions are not listed in More APIs from user section ? - Also any reason to the REST call( .../store/site/blocks/api/listing/ajax/list.jag?action=getAllPublishedAPIs) not return all versions of the API ? [1] Screen Shot 2015-03-02 at 6.03.52 PM.png https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5UUUs3bDFfeWhneHM/edit?usp=drive_web [2] Screen Shot 2015-03-02 at 6.04.08 PM.png https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5UVk1rakFqcHN1cm8/edit?usp=drive_web [3] Screen Shot 2015-03-02 at 6.03.13 PM.png https://docs.google.com/a/wso2.com/file/d/0B2mfjA37km5Ucnp0eUNVSEVPZFE/edit?usp=drive_web [4] API-M 1.9.0 Test Plan https://docs.google.com/a/wso2.com/spreadsheets/d/1SiktQWh463KZzr86ADqBnsyyHa2Tre-fIlGYvYRQfTQ/edit#gid=78 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][TAF] The input stream for an incoming message is null in Sample Writing a Test Case for ESB
Hi Vinod, Thanks for pointing it out, we will check this. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 2, 2015 at 6:15 PM, Vinod Kavinda vi...@wso2.com wrote: correction, [1] - https://docs.wso2.com/display/TA430/Writing+a+Test+Case+for+ESB On Mon, Mar 2, 2015 at 6:06 PM, Vinod Kavinda vi...@wso2.com wrote: Hi, I have followed the [1] in Test automation documentation. It gives the $Subject error. I found the reason for this. The test code refers to a proxy service named StockQuoteProxy. But the given synapse config file (proxy_service.xml) creates a proxy service called simpleProxy. This config file should be changed. I have attached the corrected synapse config file. Regards, Kavinda -- Vinod Kavinda Software Engineer, *WSO2, Inc http://www.wso2.com.* Mobile : +94 (0) 712 415544 vi...@wso2.com -- Vinod Kavinda Software Engineer, *WSO2, Inc http://www.wso2.com.* Mobile : +94 (0) 712 415544 vi...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Automation] Could not copy the catalina-server.xml file
Hi Firzhan, Use following method and it will do the job. serverConfigurationManager.*applyConfigurationWithoutRestart*(sourceCatalinaFile, targetCatalinaFile,*true*); Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sun, Mar 1, 2015 at 10:48 PM, Firzhan Naqash firz...@wso2.com wrote: Hi All, I am trying to write an automation test where I need to copy the modified catalina-server.xml file in to CARBON_HOME/repository/conf/tomcat folder. But always the catalina-server.xml file get copied in to CARBON_HOME/repository/conf/ folder. But on the other hand I could copy the axis.xml file without any issues. I am using following method to copy this. File sourceCatalinaFile = new File(ProductConstant.SYSTEM_TEST_RESOURCE_LOCATION + BPSTestConstants.DIR_ARTIFACTS + File.separator + BPSTestConstants.DIR_HTTPS_ONLY_TRANSPORT + File.separator + catalina-server.xml); File targetCatalinaFile = new File(CarbonUtils.getCarbonConfigDirPath() + File.separator + tomcat + File .separator + catalina-server.xml); serverConfigurationManager.applyConfiguration(sourceCatalinaFile, targetCatalinaFile); Any help is appreciated to sort out this issue. Regards, Firzhan ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Automation] Could not copy the catalina-server.xml file
Hi Firzhan, Reason why always the catalina-server.xml file get copied into CARBON_HOME/repository/conf/ folder when using *serverConfigurationManager.applyConfiguration(sourceCatalinaFile, targetCatalinaFile)* is because of the method implementation ignores the target file path and consider only the file name and all the activities are happening inside CARBON_HOME/repository/conf/. I have created a TA-JIRA [1] for this. *** *serverConfigurationManager.*applyConfigurationWithoutRestart*(sourceCatalinaFile, targetCatalinaFile,*true*) method can be used without any issue. [1]. https://wso2.org/jira/browse/TA-952 https://wso2.org/jira/browse/TA-952 Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Mon, Mar 2, 2015 at 8:47 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Firzhan, Use following method and it will do the job. serverConfigurationManager.*applyConfigurationWithoutRestart*(sourceCatalinaFile, targetCatalinaFile,*true*); Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Sun, Mar 1, 2015 at 10:48 PM, Firzhan Naqash firz...@wso2.com wrote: Hi All, I am trying to write an automation test where I need to copy the modified catalina-server.xml file in to CARBON_HOME/repository/conf/tomcat folder. But always the catalina-server.xml file get copied in to CARBON_HOME/repository/conf/ folder. But on the other hand I could copy the axis.xml file without any issues. I am using following method to copy this. File sourceCatalinaFile = new File(ProductConstant.SYSTEM_TEST_RESOURCE_LOCATION + BPSTestConstants.DIR_ARTIFACTS + File.separator + BPSTestConstants.DIR_HTTPS_ONLY_TRANSPORT + File.separator + catalina-server.xml); File targetCatalinaFile = new File(CarbonUtils.getCarbonConfigDirPath() + File.separator + tomcat + File .separator + catalina-server.xml); serverConfigurationManager.applyConfiguration(sourceCatalinaFile, targetCatalinaFile); Any help is appreciated to sort out this issue. Regards, Firzhan ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Time taken to unload web and tenant in ghost deployment.
Hi As per the offline discussion had with KasunG, We decided to allocate additional 2 minutes to tenant/web-app unloading in the integration tests. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Feb 13, 2015 at 11:39 AM, Kasun Gajasinghe kas...@wso2.com wrote: Yes, this is fine Saneth. The tenant unloader task is scheduled to run every minute. So, it will take at most one minute additional time to trigger the tenant unload. On Feb 13, 2015, at 11:24 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, I am currently writing integration test for ghost deploymment. When testing the auto unload process of both web app and tenants, I have noticed that it takes more than configured time(nearly 1 minute additional time). please find the bellow tables for configured time and time taken to unload. TenentWen APP-Dtenant.idle.timetime takenAdditional TIme-Dwebapp.idle.timetime takenAdditional TIme2 min 2 min 51.297 sec 51.297 sec 1 min1 min 53.228 sec 53.228 sec 10 min10 min 51.266 sec 51.266 sec 5 min 5 min 53.355 sec53.355 sec 1. Is there any reason for this behaviour? 2. If this behaviour is acceptable, What is the suitable additional time threshold that we need to give for the unloading process? Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Design and implementation of ghost deployer test cases for WSO2AS
Hi Krishantha, As a result of last Friday(20-01-2015) code review, 3 new test cases need to be added to every web application type. those test cases will test - Sending a request to a web-app after the unloaded process. - Concurrent invocation of a web app when tenant is unloaded. - Concurrent invocation of a web app when the web-app is unloaded but tenant is loaded. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jan 28, 2015 at 12:35 PM, Krishantha Samaraweera krishan...@wso2.com wrote: Thanks for the update Saneth, please make sure to update test case document too. Also we need to generate coverage reports and check for improvements. Thanks, -Krishantha. On Wed, Jan 28, 2015 at 12:29 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi, I have completed the following tasks on implementation of ghost deployer test cases for WSO2AS . *tenant-info-service:* This web application will be deployed before running test cases. - TenantInfoService REST service with two methods, isWebAppLoaded and isTenantLoaded - TenantInfoManager Implementation of the logic of above service methods. *TestClasses:* - GhostDeploymentBaseTest - All common methods needed by ghost deployment test cases - WebApplicationGhostDeploymentTestCase - testWebApplicationGhostDeployment - testInvokeWebAppGhostDeployment - testWebAppAutoUnDeployment - testTenantUnloadInIdleTimeAfterWebAPPUsage - TenantLoadUnloadTestCase - testTenantContextLoadInLogin - testTenantContextUnLoadInTenantIdle - JaggeryApplicationGhostDeploymentTestCase - testJaggeryApplicationGhostDeployment - testInvokeJaggeryAppGhostDeployment - testJaggeryAppAutoUnDeployment - testTenantUnloadInIdleTimeAfterJaggeryAPPUsage - CarbonAppGhostDeploymentTestCase - testCarApplicationUploadGhostDeployment - testAppAutoUnDeploymentAfterIdleTime Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jan 14, 2015 at 10:53 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Krishantha, Implemented the web-app as REST service and as a Servlet to get the tenant load/unload information. But in both approaches, it is not retuning the correct information. I am currently finding a solution for that. Also start to write the test cases without the verification part. Verification part needs to be added after solving the problems in the web-app. We may have to use LogViewerClient if the web-app approach will not work. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jan 14, 2015 at 9:32 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Saneth, Can you please update us on what is going on with Ghost deployer test case writing.. Any blockers ? Thanks, Krishantha. On Tue, Jan 6, 2015 at 4:39 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi All, I am working on $subject which will be track through JIRA TA-591 https://wso2.org/jira/browse/TA-591. Ghoest deployer will be test on WSO2AS and test scenarios will be based on this document https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AlTtjx4c_xVpdE10YTliWklBZEpkNnVjaGN3cTFkdmcusp=drive_web#gid=0 New web-app will be created to provide the information about load and unload status of tenats. This web-app will be deployed before the test. Test integration layer can access this web-app via REST call and get the necessary informations. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Time taken to unload web and tenant in ghost deployment.
Hi, I am currently writing integration test for ghost deploymment. When testing the auto unload process of both web app and tenants, I have noticed that it takes more than configured time(nearly 1 minute additional time). please find the bellow tables for configured time and time taken to unload. TenentWen APP-Dtenant.idle.timetime takenAdditional TIme-Dwebapp.idle.timetime takenAdditional TIme2 min 2 min 51.297 sec 51.297 sec 1 min1 min 53.228 sec 53.228 sec 10 min10 min 51.266 sec 51.266 sec 5 min 5 min 53.355 sec53.355 sec 1. Is there any reason for this behaviour? 2. If this behaviour is acceptable, What is the suitable additional time threshold that we need to give for the unloading process? Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] Error when running test cases
Hi Pasadi, Apologies and I misunderstood *Axis2ServerExtension* as a class in *org.wso2.carbon.**automationutils.* But *org.wso2.esb.integration.common.extensions.axis2server.Axis2ServerExtension* is in *modules/integration/test-common/extensions* so please add *test-common/extensions* as a dependency in all your required test module pom files. dependency groupIdorg.wso2.esb/groupId artifactIdextensions/artifactId /dependency also the version should be the *$project.version* and the need to be added to the root pom. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Feb 10, 2015 at 9:55 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: HI Pasadi, Sorry, correct dependency for *Axis2ServerExtension *is as bellow dependency groupIdorg.wso2.carbon.automationutils/groupId artifactIdorg.wso2.carbon.integration.common.extensions/artifactId version${carbon.automationutils.version}/version /dependency carbon.automationutils.version4.3.0/carbon.automationutils.version Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Feb 10, 2015 at 9:51 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: HI Pasadi, Please verify the pom is updated correctly with integration dependencies . *Axis2ServerExtension *is packed inside org.wso2.carbon.*automation.extensions. *Also refer the dev mail[1] dependency groupIdorg.wso2.carbon.automation/groupId artifactIdorg.wso2.carbon.automation.extensions/artifactId version${carbon.automation.version}/version /dependency carbon.automation.version4.3.1/carbon.automation.version [1] [Dev] Automation dependencies to be updated in all products moving with git Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Feb 10, 2015 at 9:32 AM, Pasadi Munasinghe pasa...@wso2.com wrote: Hi, When I'm attempting to run the integration tests in product-esb using esb 4.9.0.-M7 pack, I'm getting the following error. This only occurs while running test cases , otherwise it is getting build successfully. Can anyone suggest a solution for this..? Stack Trace is as follows, Running TestSuite ERROR [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] - Execution error occurred in TestExecutionListener:-[Ljava.lang.StackTraceElement;@7aae3364 org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null java.lang.reflect.InvocationTargetException 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.lang.RuntimeException: Error on initializing test environment at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71) at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52) at org.testng.TestNG.runExecutionListeners(TestNG.java:1032) at org.testng.TestNG.run(TestNG.java:983) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96) ... 9 more *Caused by: java.lang.ClassNotFoundException: org.wso2.esb.integration.common.extensions.axis2server.Axis2ServerExtension* at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.initiate(TestNGExtensionExecutor.java:96) at org.wso2
Re: [Dev] [ESB] Error when running test cases
HI Pasadi, Please verify the pom is updated correctly with integration dependencies. *Axis2ServerExtension *is packed inside org.wso2.carbon.*automation.extensions. *Also refer the dev mail[1] dependency groupIdorg.wso2.carbon.automation/groupId artifactIdorg.wso2.carbon.automation.extensions/artifactId version${carbon.automation.version}/version /dependency carbon.automation.version4.3.1/carbon.automation.version [1] [Dev] Automation dependencies to be updated in all products moving with git Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Feb 10, 2015 at 9:32 AM, Pasadi Munasinghe pasa...@wso2.com wrote: Hi, When I'm attempting to run the integration tests in product-esb using esb 4.9.0.-M7 pack, I'm getting the following error. This only occurs while running test cases , otherwise it is getting build successfully. Can anyone suggest a solution for this..? Stack Trace is as follows, Running TestSuite ERROR [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] - Execution error occurred in TestExecutionListener:-[Ljava.lang.StackTraceElement;@7aae3364 org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null java.lang.reflect.InvocationTargetException 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.lang.RuntimeException: Error on initializing test environment at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71) at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52) at org.testng.TestNG.runExecutionListeners(TestNG.java:1032) at org.testng.TestNG.run(TestNG.java:983) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96) ... 9 more *Caused by: java.lang.ClassNotFoundException: org.wso2.esb.integration.common.extensions.axis2server.Axis2ServerExtension* at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.initiate(TestNGExtensionExecutor.java:96) at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:46) ... 14 more Thanks, -- Pasadi Munasinghe Software Engineer Intern WSO2, Inc Mobile: +9471 377 5515 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] Error when running test cases
HI Pasadi, Sorry, correct dependency for *Axis2ServerExtension *is as bellow dependency groupIdorg.wso2.carbon.automationutils/groupId artifactIdorg.wso2.carbon.integration.common.extensions/artifactId version${carbon.automationutils.version}/version /dependency carbon.automationutils.version4.3.0/carbon.automationutils.version Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Feb 10, 2015 at 9:51 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: HI Pasadi, Please verify the pom is updated correctly with integration dependencies. *Axis2ServerExtension *is packed inside org.wso2.carbon.*automation.extensions. *Also refer the dev mail[1] dependency groupIdorg.wso2.carbon.automation/groupId artifactIdorg.wso2.carbon.automation.extensions/artifactId version${carbon.automation.version}/version /dependency carbon.automation.version4.3.1/carbon.automation.version [1] [Dev] Automation dependencies to be updated in all products moving with git Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Feb 10, 2015 at 9:32 AM, Pasadi Munasinghe pasa...@wso2.com wrote: Hi, When I'm attempting to run the integration tests in product-esb using esb 4.9.0.-M7 pack, I'm getting the following error. This only occurs while running test cases , otherwise it is getting build successfully. Can anyone suggest a solution for this..? Stack Trace is as follows, Running TestSuite ERROR [org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener] - Execution error occurred in TestExecutionListener:-[Ljava.lang.StackTraceElement;@7aae3364 org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null java.lang.reflect.InvocationTargetException 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.lang.RuntimeException: Error on initializing test environment at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.handleException(TestExecutionListener.java:71) at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:52) at org.testng.TestNG.runExecutionListeners(TestNG.java:1032) at org.testng.TestNG.run(TestNG.java:983) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96) ... 9 more *Caused by: java.lang.ClassNotFoundException: org.wso2.esb.integration.common.extensions.axis2server.Axis2ServerExtension* at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.wso2.carbon.automation.engine.extensions.TestNGExtensionExecutor.initiate(TestNGExtensionExecutor.java:96) at org.wso2.carbon.automation.engine.testlisteners.TestExecutionListener.onExecutionStart(TestExecutionListener.java:46) ... 14 more Thanks, -- Pasadi Munasinghe Software Engineer Intern WSO2, Inc Mobile: +9471 377 5515 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB] TestSuit is requiring a property file inside product MB folder which does not exist
Hi Pranavan, Remove the space in the folder Product MB and try to run it again. /home/pranavan/Desktop/Team/*Product MB* Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Fri, Feb 6, 2015 at 10:08 AM, Pranavan Theivendram pranav...@wso2.com wrote: See the log file. On Fri, Feb 6, 2015 at 9:24 AM, Pranavan Theivendram pranav...@wso2.com wrote: Hi All, I am getting the following log in the terminal when I am running the testsuit. *[org.wso2.carbon.automation.extensions.servers.utils.InputStreamHandler] - java.lang.RuntimeException: exception while processing properties file [/home/pranavan/Desktop/Team/Product]: java.io.FileNotFoundException: /home/pranavan/Desktop/Team/Product (No such file or directory)* Please help me in this issue. Thanks in advance. -- *Regards,* *T.Pranavan* *Software Engineering intern, WSO2* *Mobile - +94775136836 %2B94775136836* -- *Regards,* *T.Pranavan* *Software Engineering intern, WSO2* *Mobile - +94775136836 %2B94775136836* -- You received this message because you are subscribed to the Google Groups WSO2 Engineering Group group. To unsubscribe from this group and stop receiving emails from it, send an email to engineering-group+unsubscr...@wso2.com. For more options, visit https://groups.google.com/a/wso2.com/d/optout. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to set tenant idle time in writing integration test for AS 5.2.1
HI Kalpa, If you using CarbonTestServerManager and start the server with tenant.idle.time and with a port offset, it will start a new server. asServer is the default AutomationContext used by the test cases. After you start the second server with CarbonTestServerManager, With asServer you can't get the second servers information. For that you have to create new AutomationContext. Ex: AutomationContext newContext = new AutomationContext(AS,appServerInstance0002, TestUserMode.SUPER_TENANT_ADMIN); then use newContext instead of asServer In automation.xml, you need to add new instance detail platform !-- cluster instance details to be used to platform test execution -- productGroup name=AS clusteringEnabled=false default=true instance name=appServerInstance0001 type=standalone nonBlockingTransportEnabled=false hosts host type=defaultlocalhost/host /hosts ports port type=http9763/port port type=https9443/port /ports properties /properties /instance instance name=appServerInstance0002 type=standalone nonBlockingTransportEnabled=false hosts host type=defaultlocalhost/host /hosts ports port type=http9764/port !-- IF offset is 1 -- port type=https9444/port !-- IF offset is 1-- /ports properties /properties /instance /productGroup /platform Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jan 28, 2015 at 11:15 AM, Kalpa Welivitigoda kal...@wso2.com wrote: Thanks Kasun and Saneth, I will try the suggestions and will update with the status. On Wed, Jan 28, 2015 at 7:55 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Kalpa, Updating the automation.xml with the idle time information should solve your problem. values are in minutes. listenerExtensions platformExecutionManager extentionClasses class nameorg.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension/name parameter name=-Dwebapp.idle.time value=1/ parameter name=-Dtenant.idle.time value=2/ /class Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Jan 27, 2015 at 6:32 PM, KasunG Gajasinghe kas...@wso2.com wrote: I'm not sure what the 'asServer' object represents, but I assume it's a bean object in the automation test code? May be the system property is set successfully in the server-side! You could write a simple webapp that return a list of system properties from the server to verify that. On Tue, Jan 27, 2015 at 6:24 PM, Kalpa Welivitigoda kal...@wso2.com wrote: Hi, I am writing a test case for AS 5.2.1 when ghost deployment is enabled to test the following, 1. webapp deployment from CApps 2. for a tenant, when it is idle, the first request for a webapp/axis2service being successful AKAIK the default tenant idle time is 15 minutes and cannot be configured other than from a system property as of now. Based on the offline chat I had with Krishantha, I tried CarbonTestServerManager (sample usage [1]) and was successful in starting an AS server setting the tenant.idle.time and with a port offset. However when I checked asServer (which holds the back end url, session cookies etc.) environment variable, it doesn't contain the values of the server started with CarbonTestServerManager. Is there a way to get those variables for the server started with CarbonTestServerManager? A work around would be, without starting the server with CarbonTestServerManager, simply deploy the CApp in a tenant, do a graceful restart so that the tenant is idle when the server is up. Is there a better way to achieve the task? [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/products/esb/4.7.0/modules/integration/tests/src/test/java/org/wso2/carbon/esb/test/servers/NewInstanceTestCase.java -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com
Re: [Dev] Design and implementation of ghost deployer test cases for WSO2AS
Hi, I have completed the following tasks on implementation of ghost deployer test cases for WSO2AS . *tenant-info-service:* This web application will be deployed before running test cases. - TenantInfoService REST service with two methods, isWebAppLoaded and isTenantLoaded - TenantInfoManager Implementation of the logic of above service methods. *TestClasses:* - GhostDeploymentBaseTest - All common methods needed by ghost deployment test cases - WebApplicationGhostDeploymentTestCase - testWebApplicationGhostDeployment - testInvokeWebAppGhostDeployment - testWebAppAutoUnDeployment - testTenantUnloadInIdleTimeAfterWebAPPUsage - TenantLoadUnloadTestCase - testTenantContextLoadInLogin - testTenantContextUnLoadInTenantIdle - JaggeryApplicationGhostDeploymentTestCase - testJaggeryApplicationGhostDeployment - testInvokeJaggeryAppGhostDeployment - testJaggeryAppAutoUnDeployment - testTenantUnloadInIdleTimeAfterJaggeryAPPUsage - CarbonAppGhostDeploymentTestCase - testCarApplicationUploadGhostDeployment - testAppAutoUnDeploymentAfterIdleTime Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jan 14, 2015 at 10:53 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Krishantha, Implemented the web-app as REST service and as a Servlet to get the tenant load/unload information. But in both approaches, it is not retuning the correct information. I am currently finding a solution for that. Also start to write the test cases without the verification part. Verification part needs to be added after solving the problems in the web-app. We may have to use LogViewerClient if the web-app approach will not work. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Jan 14, 2015 at 9:32 AM, Krishantha Samaraweera krishan...@wso2.com wrote: Hi Saneth, Can you please update us on what is going on with Ghost deployer test case writing.. Any blockers ? Thanks, Krishantha. On Tue, Jan 6, 2015 at 4:39 PM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi All, I am working on $subject which will be track through JIRA TA-591 https://wso2.org/jira/browse/TA-591. Ghoest deployer will be test on WSO2AS and test scenarios will be based on this document https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AlTtjx4c_xVpdE10YTliWklBZEpkNnVjaGN3cTFkdmcusp=drive_web#gid=0 New web-app will be created to provide the information about load and unload status of tenats. This web-app will be deployed before the test. Test integration layer can access this web-app via REST call and get the necessary informations. Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to set tenant idle time in writing integration test for AS 5.2.1
Hi Kalpa, Updating the automation.xml with the idle time information should solve your problem. values are in minutes. listenerExtensions platformExecutionManager extentionClasses class nameorg.wso2.carbon.integration.common.extensions.carbonserver.CarbonServerExtension/name parameter name=-Dwebapp.idle.time value=1/ parameter name=-Dtenant.idle.time value=2/ /class Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Jan 27, 2015 at 6:32 PM, KasunG Gajasinghe kas...@wso2.com wrote: I'm not sure what the 'asServer' object represents, but I assume it's a bean object in the automation test code? May be the system property is set successfully in the server-side! You could write a simple webapp that return a list of system properties from the server to verify that. On Tue, Jan 27, 2015 at 6:24 PM, Kalpa Welivitigoda kal...@wso2.com wrote: Hi, I am writing a test case for AS 5.2.1 when ghost deployment is enabled to test the following, 1. webapp deployment from CApps 2. for a tenant, when it is idle, the first request for a webapp/axis2service being successful AKAIK the default tenant idle time is 15 minutes and cannot be configured other than from a system property as of now. Based on the offline chat I had with Krishantha, I tried CarbonTestServerManager (sample usage [1]) and was successful in starting an AS server setting the tenant.idle.time and with a port offset. However when I checked asServer (which holds the back end url, session cookies etc.) environment variable, it doesn't contain the values of the server started with CarbonTestServerManager. Is there a way to get those variables for the server started with CarbonTestServerManager? A work around would be, without starting the server with CarbonTestServerManager, simply deploy the CApp in a tenant, do a graceful restart so that the tenant is idle when the server is up. Is there a better way to achieve the task? [1] https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/products/esb/4.7.0/modules/integration/tests/src/test/java/org/wso2/carbon/esb/test/servers/NewInstanceTestCase.java -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: kal...@wso2.com Mobile: +94776509215 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev -- *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [ESB] - Integration Test Enhancements: Multi-tenant Login Test
HI Pasadi, You can do the multiple user login in same script as bellow. user login: LoginLogoutUtil loginUtil = new LoginLogoutUtil(9443, localhost); // use correct port *sessionCookie* = loginUtil.login(TENANT_NAME_1, TENANT_PASSWORD, backendURL); Make sure to update the cookie information as above. Use updated cookie for your next activities. Ex: WebAppAdminClient webAppAdminClient = new WebAppAdminClient(backendURL, *sessionCookie*); Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Tue, Jan 27, 2015 at 6:52 PM, Malintha Adikari malin...@wso2.com wrote: Hi Prasadi, In WSO2 Test Automation Framework, we store all configurations details related to tests in automation.xml file [1]. You can add/remove your tents under userManagement element of that file. Then Test Framework will automatically create tenants which are mentioned under above tag. So in your case please add two tenants in to that files tenant domain=wso2.com key=wso2.comadmin user key=admin userNameadmin/userNamepasswordadmin/password / user /admin users user key=user1 userName testuser11/userName passwordtestuser11/password /user user key=user2 userNametestuser21/userName password testuser21/password/user /users tenant domain=test.com key=test.com adminuser key=admin userNameadmin/userName passwordadmin/password /user /admin users user key=user11userNametestuser111/userName passwordtestuser11/password /useruser key=user21userName testuser211/userNamepasswordtestuser21/password /user / users Then you can use those tenants seperately inside your tests. You can create separate AutomationContext objects in your test (in your case two) and use those AutomationContext objects for writing your test case. You can achieve tenant separation through these objects. *AutomationContext tenant1Context= new AutomationContext(productGroupName, instanceName, wso2.com http://wso2.com, admin)AutomationContext tenant2Context= new AutomationContext(productGroupName, instanceName, test.com http://test.com, user11)* (Please refer AutmationContext.java class[4] for different constructors you can use to create your AutomationContext object) In ESB tests above AutomationContext object is created inside a base class [3] and all test classes inherited from that class. You can add your AutomationContext objects in your test class and it will do no harm Note: Tenant creation process is done by AutomationFramework here. (In the upstart of the carbon server) If you want to create tenants inside your test case it self please refer how Automation Framework do the same thing [2] [1] https://github.com/wso2/product-as/blob/master/modules/integration/tests-integration/tests/src/test/resources/automation.xml [2] https://github.com/wso2-dev/carbon-platform-integration-utils/tree/master/common-framework-extensions/src/main/java/org/wso2/carbon/integration/common/extensions/usermgt [3] https://github.com/wso2-dev/product-esb/blob/master/modules/integration/test-common/integration-test-utils/src/main/java/org/wso2/esb/integration/common/utils/ESBIntegrationTest.java [4] https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.engine/src/main/java/org/wso2/carbon/automation/engine/context/AutomationContext.java Regards, Malintha Adikari On Tue, Jan 27, 2015 at 12:46 PM, Irham Iqbal iq...@wso2.com wrote: Hi, In this class[1] we populate users for tenant. you can go through addTenantUsers method and see how you can add users. [1] https://github.com/wso2-dev/carbon-platform-integration-utils/blob/master/common-framework-extensions/src/main/java/org/wso2/carbon/integration/common/extensions/usermgt/UserPopulator.java Thanks, Iqbal On Tue, Jan 27, 2015 at 5:55 PM, Pasadi Munasinghe pasa...@wso2.com wrote: Hi Irham, Thank you for the reply. What I actually need to do is to create one tenant and make him execute a certain process and the other one should log in and some other process. Can you please elaborate how can I get each user to perform their respective activities..?? Thanx..!! On Tue, Jan 27, 2015 at 5:40 PM, Irham Iqbal iq...@wso2.com wrote: Hi Pasadi, You can use automation.xml[1] to create multiple tenants. You can define your tenants inside userManagement tag and inside listenerExtensions tag add the extension class[2]. This automation.xml[1] already has those configuration. [1] https://github.com/wso2/product-as/blob/master/modules/integration/tests-integration/tests/src/test/resources/automation.xml [2]org.wso2.carbon.integration.common.extensions.usermgt.UserPopulateExtension Thanks, Iqbal On Tue, Jan 27, 2015 at 5:20 PM, Pasadi Munasinghe pasa...@wso2.com wrote: Hi, I am in the process of implementing a test case where initially 2