Re: [Dev] WSO2 ESB TaskManager

2017-05-02 Thread Waruna Perera
Hi Francisco,

The way you can work with task is to use admin services [1] [2] . Please
see TaskAdmin service.

[1] https://docs.wso2.com/display/ESB500/Calling+Admin+Services+from+Apps
[2]
https://buddhimawijeweera.wordpress.com/2014/08/09/calling-wso2-esb-admin-services-using-jaggery-app/

Thanks,

Waruna

On Tue, May 2, 2017 at 12:47 PM, Júnior  wrote:

> Hello,
>
> Is it possible to make usage of an Enterprise Task Manager to control the
> tasks on WSO2 ESB?
>
> Like to use, Appworx in order to control(start, stop, get status) the
> tasks on WSO2 ESB?
>
> Thanks in advance,
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] validate JSON against YAML schema

2016-03-20 Thread Waruna Perera
Hi,

Has some one done a similar sort of thing with JAVA? If so please give me a
good library you have used.

Thanks,

Waruna
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][Patch Automation][APIM] How to retrieve a perticualt log from a Class using LogViewerClient?

2015-10-08 Thread Waruna Perera
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 
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  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 
>> wrote:
>>
>>> Any updates on this?
>>>
>>> On Thu, Oct 8, 2015 at 12:51 PM, Abimaran Kugathasan 
>>> 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
>>> 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>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> 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>
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][Patch Automation][APIM] How to retrieve a perticualt log from a Class using LogViewerClient?

2015-10-08 Thread Waruna Perera
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 
wrote:

> Any updates on this?
>
> On Thu, Oct 8, 2015 at 12:51 PM, Abimaran Kugathasan 
> 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
> 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>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Revamping MB Test Framework to cut down time.

2015-06-09 Thread Waruna Perera
Adding Krishantha

On Tue, Jun 9, 2015 at 1:41 PM, Ramith Jayasinghe  wrote:

> generally very nice to do this.
> @Krishantha,
> Can we run integration tests in parallel against a carbon server?
>
> On Tue, Jun 9, 2015 at 1:34 PM, Hemika Kodikara  wrote:
>
>> Hi All,
>>
>> When executing the MB integration tests, we noticed that it takes a long
>> time to get executed. I have several suggestions that could help us to cut
>> down time.
>>
>> 1. Running tests classes in parallel [1]. Here we have to state how many
>> classes to run in parallel.
>>
>> 2. Disable message receiving loggings in test cases. This can either be
>> disabled or be turned into debug logs. If we are changing it to debug logs,
>> we would need a way to enable debug logs(Have to look into this).
>>
>> 3. Reduce the number of messages published in each test case.
>>
>> What are your thoughts on the above suggestions ?
>>
>> [1] -
>> http://howtodoinjava.com/2014/12/02/testng-executing-parallel-tests/
>>
>> Regards,
>> Hemika
>>
>> Hemika Kodikara
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middleware
>> http://wso2.com
>>
>> Mobile : +9477762
>>
>
>
>
> --
> Ramith Jayasinghe
> Technical Lead
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> E: ram...@wso2.com
> P: +94 777542851
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please Review and Merge

2015-06-04 Thread Waruna Perera
Hi,

Please review and merge the following PR[1]. This is to enable ui tests in
jenkins server.

[1] https://github.com/wso2/product-as/pull/72

Thanks,

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
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 ))

2015-05-12 Thread Waruna Perera
Hi Kevin,

Are those only failing when run together or even as individual runs?



On Tue, May 12, 2015 at 1:48 PM, Kevin Ratnasekera  wrote:

> Hi Saneth,
> These are the two test case methods related to the exception,
>
>
> @Test(groups = {"wso2.esb"}, description = "Tests with filter mediator - JSON 
> path Scenario - Filter condition true" , enabled=false)
> public void testJSONFilterFromJSONPathConditionTrueTestScenario() throws 
> Exception {
>
> String JSON_PAYLOAD = "{\"album\":\"Hello\",\"singer\":\"Peter\"}";
>
> WebResource webResource = client
> .resource(getProxyServiceURLHttp("JSONPathFilterWithJSONProxy"));
>
> // sending post request
> ClientResponse postResponse = webResource.type("application/json")
> .post(ClientResponse.class, JSON_PAYLOAD);
>
> assertEquals(postResponse.getType().toString(), "application/json", 
> "Content-Type Should be application/json");
> assertEquals(postResponse.getStatus(), 201, "Response status should be 
> 201");
>
> // Calling the GET request to verify Added album details
> ClientResponse getResponse = webResource.type("application/json")
> .get(ClientResponse.class);
>
> assertNotNull(getResponse, "Received Null response for while getting 
> Music album details");
> assertEquals(getResponse.getEntity(String.class), JSON_PAYLOAD, "Response 
> mismatch for HTTP Get call");
> }
>
>
> @Test(groups = {"wso2.esb"}, description = "Tests with filter mediator - JSON 
> path Scenario Filter condition False",
> dependsOnMethods = 
> "testJSONFilterFromJSONPathConditionTrueTestScenario")
> public void testJSONFilterFromJSONPathConditionFalseTestScenario() throws 
> Exception {
>
> String JSON_PAYLOAD = "{\"album\":\"Moon\",\"singer\":\"Peter\"}";
>
> WebResource webResource = client
> .resource(getProxyServiceURLHttp("FilterWithJSONProxy"));
>
> // sending post request
> ClientResponse postResponse = webResource.type("application/json")
> .post(ClientResponse.class, JSON_PAYLOAD);
>
> assertEquals(postResponse.getStatus(), 202, "Response status should be 
> 202");
> }
>
> Thanks
> Regards
> Kevin
>
> On Tue, May 12, 2015 at 1:43 PM, Saneth Dharmakeerthi 
> wrote:
>
>> 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 
>> 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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
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 ui integration tests

2015-05-11 Thread Waruna Perera
Hi All,

We had to fix the UI test cases again after the API creation flow changed.
Following is the updated status now. Can you guys run UI module locally
before commit ( since jenkins UI tests can not be run) and check whether
any tests are broken due to new code changes? We are working on to fix
failures.

Results :

Failed tests:

APIMANAGER3250CrossTenantSubscriptionTestCase.checkCrossTenantSubscription:176
» Timeout

APIMANAGER3272ExternalLogoutPageTestCase.loginAndLogoutToStoreCheckForSessionInvalidated:84
» Timeout

APIMANAGER3344ScopeSpecificTokenTestCase.testPublishApiWithScopesDefined:204
» NoSuchElement
  APIVersoinStatTestCase.testVersionStats:70 » Timeout Timed out after 30
second...
  TestNameLengthTestCase.testVerifyAPIName:105 truncated API name found
expected: but was:
  YouTubeUIPagesTestCase.testYoutubeAPI:71 » IllegalArgument Cannot find
element...
  YouTubeUIRecordedTestCase.testSubscribeAPI:173 » Timeout Timed out after
60 se...



Tests run: 26, Failures: 7, Errors: 0, Skipped: 1



On Thu, Apr 23, 2015 at 5:46 PM, Kasun Gunasekara  wrote:

> Hi Irham,
>
> Regarding APIMANAGER3344ScopeSpecificTokenTestCase. Select Scopes button
> only shows up when an API is published with one or more scopes defined and
> applied to some resources + the current application is subscribed to it.
>
> Thank you.
>
>
> Kasun Gunasekara
> Software Engineering Intern - WSO2
> Mobile : +94 77 6986482
> Twitter <https://twitter.com/KaluMallii> | Google+
> <https://plus.google.com/+KaZGunasekara/> | LinkedIn
> <http://www.linkedin.com/in/kasun32>
>
> On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal  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 http://wso2.org/apimanager/security";>900902Missing
>>    CredentialsRequired OAuth credentials not
>>provided. Make sure your API invocation call has a header: "Authorization:
>>Bearer ACCESS_TOKEN"
>>
>> 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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test Automation Framework Support for MQTT Server

2015-05-06 Thread Waruna Perera
HI Krishantha,

Will check on that.

Thanks,

On Thu, May 7, 2015 at 11:54 AM, Krishantha Samaraweera  wrote:

> Hi Waruna,
>
> I don't think we have enabled ActiveMQ broker for MQTT.  Can you check
> whether MQTT endpoint is exposed.  And any workaround to get it started.
>
> The version we used is 5.9.1 and it should support for MQTT.
>
> Thanks,
> Krishantha.
>
>
>
> On Tue, May 5, 2015 at 6:29 PM, Mohanadarshan Vivekanandalingam <
> mo...@wso2.com> wrote:
>
>> Hi All,
>>
>> We are planning to ship MQTT event adapter support with CEP 4.0.0. We are
>> done with the implementation but facing some issues in writing integration
>> tests.. To test this functionality, we have used the ActiveMQ as the MQTT
>> server. ActiveMQ version 5.9.0 and upwards contains a mqtt endpoint. Based
>> on [1], Automation framework has activemq 5.9.1 support. But when I am
>> trying-out, I haven't seen a mqtt endpoint. It only has below endpoint,
>>
>> INFO  [org.apache.activemq.transport.TransportServerThreadSupport] -
>> Listening for connections at: tcp://localhost:61616
>> INFO  [org.apache.activemq.broker.TransportConnector] - Connector tcp://
>> 127.0.0.1:61616 started
>> INFO  [org.apache.activemq.broker.BrokerService] - Apache ActiveMQ 5.9.1
>> (testBroker, ID:mohan-ThinkPad-T530-35747-1430828992894-0:1) started
>> INFO  [org.apache.activemq.broker.BrokerService] - For help or more
>> information please see: http://activemq.apache.org
>>
>> By default, ActiveMQ has mqtt endpoint in port 1883.. Can someone from
>> Automation team help on this.. This is a blocker to consider the feature as
>> done-done ..
>>
>> [1] https://wso2.org/jira/browse/TA-901
>>
>> Thanks,
>> Mohan
>>
>>
>> --
>> *V. Mohanadarshan*
>> *Software Engineer,*
>> *Data Technologies Team,*
>> *WSO2, Inc. http://wso2.com <http://wso2.com> *
>> *lean.enterprise.middleware.*
>>
>> email: mo...@wso2.com
>> phone:(+94) 771117673
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting Error

2015-05-06 Thread Waruna Perera
Hi,

Are you using any keystores here? This might occur due to wrong key store
or some thing. Can you run again with following option and attach the
output?

-Djavax.net.debug=ssl

Thanks,

On Wed, May 6, 2015 at 1:36 PM, Sriashalya Srivathsan 
wrote:

> Hi Nuwan,
> Sorry I sent the wrong one. Please find the correct log below. Due to the
> power cut I delayed to attach it.
>
>
>
> On Wed, May 6, 2015 at 10:58 AM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Sriashalya,
>>
>> As the error log, wso2esb-4.9.0-M7-SNAPSHOT.zip can not be found. Please
>> make sure to verify whether the ESB distribution is exist before running
>> the tests. Copy the wso2esb-4.9.0-M7-SNAPSHOT.zip
>> to 
>> tsheets-connector/tsheets-connector-1.0.0/org.wso2.carbon.connector/repository/
>> directory and run the test again.
>>
>> Running TestSuite
>> [2015-05-06 10:41:24,968]  INFO
>> {org.wso2.carbon.automation.core.PlatformExecutionManager} -
>>  ---Test Execution Started --
>> [2015-05-06 10:41:24,976]  INFO
>> {org.wso2.carbon.automation.core.ServerGroupManager} -  Carbon zip file -
>> /Users/sriashalyasrivathsan/Desktop/gmailThroughREST/esb-connectors/tsheets/tsheets-connector/tsheets-connector-1.0.0/org.wso2.carbon.connector/repository/wso2esb-4.9.0-M7-SNAPSHOT.zip
>> [2015-05-06 10:41:24,984] ERROR
>> {org.wso2.carbon.automation.core.utils.fileutils.ArchiveExtractor} -  Error
>> on archive extraction
>> java.io.FileNotFoundException:
>> /Users/sriashalyasrivathsan/Desktop/gmailThroughREST/esb-connectors/tsheets/tsheets-connector/tsheets-connector-1.0.0/org.wso2.carbon.connector/repository/wso2esb-4.9.0-M7-SNAPSHOT.zip
>> (No such file or directory)
>> at java.io.FileInputStream.open(Native Method)
>> at java.io.FileInputStream.(FileInputStream.java:120)
>> at java.io.FileInputStream.(FileInputStream.java:79)
>> at
>> org.wso2.carbon.automation.core.utils.fileutils.ArchiveExtractor.extractFile(ArchiveExtractor.java:43)
>> at
>> org.wso2.carbon.automation.core.utils.serverutils.ServerUtils.setUpCarbonHome(ServerUtils.java:177)
>>
>>
>> Thanks,
>> Nuwanw
>>
>> On Wed, May 6, 2015 at 10:49 AM, Sriashalya Srivathsan 
>> wrote:
>>
>>> Hi Nuwan,
>>> I'm getting this error when I run the tsheet connector through ESB. Find
>>> the log below.
>>>
>>>
>>>
>>> On Wed, May 6, 2015 at 10:33 AM, Nuwan Wimalasekara 
>>> wrote:
>>>
>>>> Hi
>>>> When did you get this error?
>>>> And please send the full error log
>>>>
>>>> Thanks,
>>>> Nuwanw
>>>>
>>>> On Wed, May 6, 2015 at 9:30 AM, Sriashalya Srivathsan >>> > wrote:
>>>>
>>>>> Hi Devs
>>>>> When I run the integration tests for tsheets connector I'm getting
>>>>> following error.
>>>>>
>>>>> setEnvironment(org.wso2.carbon.connector.integration.test.tsheets.TSheetsConnectorIntegrationTest):
>>>>> java.security.NoSuchAlgorithmException: Error constructing implementation
>>>>> (algorithm: Default, provider: SunJSSE, class:
>>>>> com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
>>>>>
>>>>>
>>>>> cleanUpEsb(org.wso2.carbon.connector.integration.test.tsheets.TSheetsConnectorIntegrationTest)
>>>>>
>>>>>
>>>>> Can any one resolve this?
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> S.Sriashalya,
>>>>> Associate Software Engineer,
>>>>> WSO2 *Inc*.
>>>>> lean . enterprise . middleware
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Nuwan Wimalasekara
>>>> Senior Software Engineer - Test Automation
>>>> WSO2, Inc.: http://wso2.com
>>>> lean. enterprise. middleware
>>>>
>>>> phone: +94 71 668 4620
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> S.Sriashalya,
>>> Associate Software Engineer,
>>> WSO2 *Inc*.
>>> lean . enterprise . middleware
>>>
>>
>>
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>
>
> --
> Regards
> S.Sriashalya,
> Associate Software Engineer,
> WSO2 *Inc*.
> lean . enterprise . middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Testing Jacoco based code coverage genration

2015-05-05 Thread Waruna Perera
Hi Krishantha,

And we need to update Automation.xml to use following class instead of one
from utils.


org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerExtension

Thanks

On Tue, May 5, 2015 at 6:29 PM, Nuwan Wimalasekara  wrote:

> Hi Krishantha,
> I tried generating coverage in ESB. It is working fine and Coverage
> reports generated. However the coverage report aggregation seems not
> working when there are multiple tests modules. We need to fix the issue.
>
> test-automation-framework - 4.3.2-SNAPSHOT
> carbon-platform-integration-utils - 4.3.1-SNAPSHOT
>
> Thanks,
> Nuwanw
>
> On Wed, Apr 29, 2015 at 10:41 PM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Correction : Step #1 configuration should be as follows.
>>
>> 
>> copy-jacoco-dependencies
>> compile
>> 
>> copy-dependencies
>> 
>> 
>>
>> ${project.build.directory}/jacoco
>> jar
>> org.jacoco.agent
>> 
>> 
>>
>> Thanks,
>> Krishantha.
>>
>> On Thu, Apr 30, 2015 at 2:50 AM, Krishantha Samaraweera <
>> krishan...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> New coverage implementation using Jacoco has been committed to master
>>> branch of carbon-platform-integration. I tried my best to adhere to
>>> existing Emma based design and reuse same instrumentation and filters text
>>> files. Note that this new coverage implementation was done to support for
>>> JDK 1.7 and 1.8. We need to test the new implementation thoroughly before
>>> the release.
>>>
>>> I've done initial testing with AS and everything seems to work.
>>> Automation team will start verifying coverage with products already
>>> migrated JDK 1.7. Specially products with multiple test modules (ESB, G-Reg
>>> & BPS)
>>>
>>> Lets focus on testing following scenarios before the release.
>>>
>>> Test Scenarios for coverage :
>>>
>>> 1. Coverage generation with patches applied.
>>> 2. Merge coverage reports in multiple test modules.
>>> 3. WebApp class coverage.
>>> 4. Coverage generation after restart and impact to coverage numbers.
>>>
>>> To get started with Jacoco coverage :
>>>
>>> 1. Edit your test module pom and replace emma copy dependency execution
>>> configuration with below.
>>>
>>> 
>>> copy-emma-dependencies
>>> compile
>>> 
>>> copy-dependencies
>>> 
>>> 
>>>
>>> ${project.build.directory}/emma
>>> jar
>>> emma
>>> 
>>> 
>>> 
>>>
>>> 2. Include jacoco argent as a dependency to root pom.
>>>
>>> 
>>> org.jacoco
>>> org.jacoco.agent
>>> ${jacoco.agent.version}
>>> 
>>>
>>> 0.7.4.201502262128
>>>
>>> 3. Remove following system properties from surefire plugin.
>>>
>>> ${basedir}/target/emma
>>> ${basedir}/target/emma
>>>
>>> You will find following log entries in console with required details to
>>> view the report once coverage generation completed. Available report
>>> formats are XML, HTML and CSV
>>>
>>> INFO
>>>  
>>> [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager]
>>> - Jacoco coverage dump file path :
>>> /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco.exec
>>> INFO
>>>  
>>> [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager]
>>> - Jacoco class file path :
>>> /Users/xxx/product-as/modules/integration/tests-integration/tests/target/wso2as-6.0.0-NAPSHOT/repository/components/plugins
>>> INFO
>>>  
>>> [org.wso2.carbon.automation.extensions.servers.carbonserver.CarbonServerManager]
>>> - Jacoco coverage report path :
>>> /Users/krishantha/git/wso2/product-as/modules/integration/tests-integration/tests/target/jacoco/coverage
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>> --
>>> 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.
>>
>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Test case failure in AS

2015-04-22 Thread Waruna Perera
Hi Supun,

Can you look at following which I came across running AS test cases for
coverage  stats.

java.lang.AssertionError: Unsatisfied components detected in server
startup. [org.wso2.carbon.deployment.synchronizer.XXX] expected:<0> but
was:<1> at
org.wso2.carbon.integration.common.tests.OSGIServerBundleStatusTest.testOSGIUnsatisfiedComponents(OSGIServerBundleStatusTest.java:80)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:295)
at
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
at
org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:90)
at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
... Removed 26 stack frames

org.wso2.carbon.deployment.synchronizer is in a unsatisfied state.

Thanks,

Waruna
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Green Mail server : Email notifications based integration test

2015-04-22 Thread Waruna Perera
Hi Himasha,

I tested above scenario with the current implementation and it worked.

1) Started green mail server
2) Created user to receive mail
3) Created proxy service to send out mails
4) Once request is  sent to proxy it send a mail to greenmail server
5) you can retrieve it

EmailServerUtil emailServerUtil;
emailServerUtil = new EmailServerUtil();
emailServerUtil.startMailServer();

emailServerUtil.createUser("to@localhost", "to", "to123");


int count = emailServerUtil.getReceivedMessages().length;



Please try this with your test case and let us know.


Thanks,


On Mon, Apr 20, 2015 at 1:31 PM, Himasha Guruge  wrote:

>
>
> Thanks for  the quick reply Waruna.
>
> On Mon, Apr 20, 2015 at 1:18 PM, Himasha Guruge  wrote:
>
>> [Looping Nandika]
>>
>> On Mon, Apr 20, 2015 at 1:15 PM, Waruna Perera  wrote:
>>
>>> Hi Himasha,
>>>
>>> You can not achieve the functionality that you are looking for with
>>> GreanMail utility. If you want to receive mails you have to send mail
>>> first. Will further look through API if there is any possibility to provide
>>> what you have requested.
>>>
>>> Thanks,
>>>
>>> On Mon, Apr 20, 2015 at 1:04 PM, Himasha Guruge 
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I'm in the process of writing an integration test which will test the
>>>> email notification feature implementation of BPS. Therefore I have set up
>>>> the GreenMail server with a user registered, to receive the emails, but the
>>>> email count is always 0.
>>>>
>>>> When looking into methods provided by GreenMailUtil, it is noticed that
>>>> to send an email ,GreenMailUtil.sendTextEmail() method is used. For this
>>>> scenario, the email sending process will occur within the implementation.
>>>> Therefore is it possible for the mail messages to be sent through feature
>>>> implementation (without using above method) and just to receive the sent
>>>> emails through GreenMail ? Following are the steps I have followed so far.
>>>>
>>>> 1. Start GreenMail server
>>>> 2. Set a new user to created server
>>>> 3. Add axis2-client mailto configuration (same port as GreenMail server)
>>>> 4. Use  method server.getReceivedMessages() to retrieve the emails.
>>>>
>>>> If this approach is not valid, any other suggestions on this will be
>>>> appreciated.
>>>>
>>>> Thanks & Regards,
>>>>
>>>> Himasha Guruge
>>>> *Software Engineer*
>>>> WS*O2* *Inc.*
>>>> Mobile: +94 777459299
>>>> himas...@wso2.com
>>>>
>>>
>>>
>>>
>>> --
>>> Waruna Perera
>>> Senior Software Engineer - Test Automation
>>> Mobile: +94 77 3867037
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> himas...@wso2.com
>>
>
>
>
> --
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Green Mail server : Email notifications based integration test

2015-04-20 Thread Waruna Perera
Hi Himasha,

You can not achieve the functionality that you are looking for with
GreanMail utility. If you want to receive mails you have to send mail
first. Will further look through API if there is any possibility to provide
what you have requested.

Thanks,

On Mon, Apr 20, 2015 at 1:04 PM, Himasha Guruge  wrote:

> Hi All,
>
> I'm in the process of writing an integration test which will test the
> email notification feature implementation of BPS. Therefore I have set up
> the GreenMail server with a user registered, to receive the emails, but the
> email count is always 0.
>
> When looking into methods provided by GreenMailUtil, it is noticed that to
> send an email ,GreenMailUtil.sendTextEmail() method is used. For this
> scenario, the email sending process will occur within the implementation.
> Therefore is it possible for the mail messages to be sent through feature
> implementation (without using above method) and just to receive the sent
> emails through GreenMail ? Following are the steps I have followed so far.
>
> 1. Start GreenMail server
> 2. Set a new user to created server
> 3. Add axis2-client mailto configuration (same port as GreenMail server)
> 4. Use  method server.getReceivedMessages() to retrieve the emails.
>
> If this approach is not valid, any other suggestions on this will be
> appreciated.
>
> Thanks & Regards,
>
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM ui integration tests

2015-04-09 Thread Waruna Perera
Hi All,

We have started fixing above module.  Will update the progress.

Thanks,

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error adding API in 1.9.0 pack

2015-04-08 Thread Waruna Perera
Hi Lakshman,

I  tried with the pack  that you have given. issue exist.

Thanks,



On Wed, Apr 8, 2015 at 2:56 PM, Lakshman Udayakantha 
wrote:

> in Latest pack built today has no such issue. check the latest pack.
>
> Thanks
>
> On Wed, Apr 8, 2015 at 2:06 PM, Waruna Perera  wrote:
>
>> Hi,
>>
>> Just got  the pack from build product-apim and tried to  add a API.
>>
>> Thanks,
>>
>> Waruna
>>
>> On Wed, Apr 8, 2015 at 1:27 PM, Madusanka Premaratne > > wrote:
>>
>>> Hi Waruna,
>>> AFAIK this is not an known issue. Could you please give me the steps to
>>> reproduce this? I mean what are the tests you performed?
>>>
>>> Thanks,
>>> Madusanka
>>>
>>> On Tue, Apr 7, 2015 at 7:20 PM, Waruna Perera  wrote:
>>>
>>>> Hi,
>>>>
>>>> I tried to run some UI tests in  APIM git 1.9.0 code base. Found out
>>>> that error occurs while adding API. Tried the same thing with built pack
>>>> manually and error is there. Is this known bug? It says constraint
>>>> violation in AM_API table. I checked the h2 DB.  There were no records in
>>>> the DB.
>>>>
>>>>
>>>>
>>>> [2015-04-07 19:14:33,647] ERROR - ApiMgtDAO Error while adding the API:
>>>> admin-ww-1.0.0 to the database
>>>> org.h2.jdbc.JdbcSQLException: Unique index or primary key violation:
>>>> "CONSTRAINT_INDEX_73 ON PUBLIC.AM_API(API_PROVIDER, API_NAME,
>>>> API_VERSION)"; SQL statement:
>>>> INSERT INTO AM_API (API_PROVIDER, API_NAME, API_VERSION, CONTEXT)
>>>> VALUES (?,?,?,?) [23001-140]
>>>> at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
>>>> at org.h2.message.DbException.get(DbException.java:167)
>>>> at org.h2.message.DbException.get(DbException.java:144)
>>>> at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:157)
>>>> at org.h2.index.PageBtree.find(PageBtree.java:121)
>>>> at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:138)
>>>> at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:93)
>>>> at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:90)
>>>> at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:81)
>>>> at org.h2.table.RegularTable.addRow(RegularTable.java:116)
>>>> at org.h2.command.dml.Insert.insertRows(Insert.java:120)
>>>> at org.h2.command.dml.Insert.update(Insert.java:82)
>>>> at org.h2.command.CommandContainer.update(CommandContainer.java:70)
>>>> at org.h2.command.Command.executeUpdate(Command.java:199)
>>>> at
>>>> org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:179)
>>>> at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:6075)
>>>> at
>>>> org.wso2.carbon.apimgt.impl.APIProviderImpl.addAPI(APIProviderImpl.java:391)
>>>> at
>>>> org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.addAPI(UserAwareAPIProvider.java:46)
>>>> at
>>>> org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.saveAPI(APIProviderHostObject.java:864)
>>>> at
>>>> org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_createAPI(APIProviderHostObject.java:773)
>>>> 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.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>>> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
>>>> at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
>>>> at
>>>> org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_5(/publisher/modules/api/add.jag:99)
>>>> at
>>>> org.jaggeryjs.rhino.publisher.modules.api.c3.call(/publisher/modules/api/add.jag)
>>>> at
>>>> org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
>>>> at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
>>>> at
>>>> org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
>>>> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>>>> at
>>>> org.jaggeryjs.rhino.p

Re: [Dev] Error adding API in 1.9.0 pack

2015-04-08 Thread Waruna Perera
Hi,

Just got  the pack from build product-apim and tried to  add a API.

Thanks,

Waruna

On Wed, Apr 8, 2015 at 1:27 PM, Madusanka Premaratne 
wrote:

> Hi Waruna,
> AFAIK this is not an known issue. Could you please give me the steps to
> reproduce this? I mean what are the tests you performed?
>
> Thanks,
> Madusanka
>
> On Tue, Apr 7, 2015 at 7:20 PM, Waruna Perera  wrote:
>
>> Hi,
>>
>> I tried to run some UI tests in  APIM git 1.9.0 code base. Found out that
>> error occurs while adding API. Tried the same thing with built pack
>> manually and error is there. Is this known bug? It says constraint
>> violation in AM_API table. I checked the h2 DB.  There were no records in
>> the DB.
>>
>>
>>
>> [2015-04-07 19:14:33,647] ERROR - ApiMgtDAO Error while adding the API:
>> admin-ww-1.0.0 to the database
>> org.h2.jdbc.JdbcSQLException: Unique index or primary key violation:
>> "CONSTRAINT_INDEX_73 ON PUBLIC.AM_API(API_PROVIDER, API_NAME,
>> API_VERSION)"; SQL statement:
>> INSERT INTO AM_API (API_PROVIDER, API_NAME, API_VERSION, CONTEXT) VALUES
>> (?,?,?,?) [23001-140]
>> at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
>> at org.h2.message.DbException.get(DbException.java:167)
>> at org.h2.message.DbException.get(DbException.java:144)
>> at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:157)
>> at org.h2.index.PageBtree.find(PageBtree.java:121)
>> at org.h2.index.PageBtreeLeaf.addRow(PageBtreeLeaf.java:138)
>> at org.h2.index.PageBtreeLeaf.addRowTry(PageBtreeLeaf.java:93)
>> at org.h2.index.PageBtreeIndex.addRow(PageBtreeIndex.java:90)
>> at org.h2.index.PageBtreeIndex.add(PageBtreeIndex.java:81)
>> at org.h2.table.RegularTable.addRow(RegularTable.java:116)
>> at org.h2.command.dml.Insert.insertRows(Insert.java:120)
>> at org.h2.command.dml.Insert.update(Insert.java:82)
>> at org.h2.command.CommandContainer.update(CommandContainer.java:70)
>> at org.h2.command.Command.executeUpdate(Command.java:199)
>> at
>> org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:179)
>> at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:6075)
>> at
>> org.wso2.carbon.apimgt.impl.APIProviderImpl.addAPI(APIProviderImpl.java:391)
>> at
>> org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.addAPI(UserAwareAPIProvider.java:46)
>> at
>> org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.saveAPI(APIProviderHostObject.java:864)
>> at
>> org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_createAPI(APIProviderHostObject.java:773)
>> 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.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>> at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
>> at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
>> at
>> org.jaggeryjs.rhino.publisher.modules.api.c3._c_anonymous_5(/publisher/modules/api/add.jag:99)
>> at
>> org.jaggeryjs.rhino.publisher.modules.api.c3.call(/publisher/modules/api/add.jag)
>> at
>> org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2430)
>> at org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:269)
>> at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:97)
>> at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:42)
>> at
>> org.jaggeryjs.rhino.publisher.modules.api.c0._c_anonymous_30(/publisher/modules/api/module.jag:98)
>> at
>> org.jaggeryjs.rhino.publisher.modules.api.c0.call(/publisher/modules/api/module.jag)
>> at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
>> at
>> org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0._c_anonymous_2(/publisher/site/blocks/item-design/ajax/add.jag:67)
>> at
>> org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)
>> at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
>> at
>> org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0._c_script_0(/publisher/site/blocks/item-design/ajax/add.jag:18)
>> at
>> org.jaggeryjs.rhino.publisher.site.blocks.item_design.ajax.c0.call(/publisher/site/blocks/item-design/ajax/add.jag)
>> at
>> o

[Dev] Error adding API in 1.9.0 pack

2015-04-07 Thread Waruna Perera
.java:199)
at org.h2.jdbc.JdbcPreparedStatement.execute(JdbcPreparedStatement.java:179)
at org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.addAPI(ApiMgtDAO.java:6075)
... 65 more


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using LogViewerClient in Integration Tests

2015-04-01 Thread Waruna Perera
Hi Maheeka,

Avoid using sleep. Use  time out  function.

Thanks,

On Wed, Apr 1, 2015 at 12:35 PM, Maheeka Jayasuriya 
wrote:

> Hi Waruna,
>
> In that case, what would be the alternative to do the above? Since
> iterating over the new logs (using before length and after length) also did
> not work for me. Or is the issue only in a delay? If so a sleep would solve
> the issue?
>
> Thanks,
> Maheeka
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +9450661
>
> On Wed, Apr 1, 2015 at 11:20 AM, Waruna Perera  wrote:
>
>> Hi Maheeka,
>>
>> We have encountered issue with delay of clear logs in our test cases at
>> times. So you will have to consider that.
>>
>> Thanks,
>>
>> Waruna
>>
>> On Wed, Apr 1, 2015 at 11:15 AM, Maheeka Jayasuriya 
>> wrote:
>>
>>> Hi,
>>>
>>> I want to read the logs in ESB to do perform a few assertions. However,
>>> since I have multiple test methods in the test case, I am unable to find
>>> the correct required log.
>>>
>>> To further elaborate, my first test case prints 20 of required logs and
>>> the second test case prints 100. When I iterate through all logs, although
>>> logViewer.clearLogs() is done at the start of each method, the count for
>>> the second run test case is 120 and not 20 or 100 (I am verifying the log
>>> count in the test case). I verified with the log length before and after
>>> clearLogs() is called and the length remains the same. What is the
>>> expectation of the clearLogs() method. Does it clear all the system logs or
>>> something else?
>>>
>>> If I use the length of the logs before and after the test functionality
>>> and iterate through that, the required logs are not available.
>>>
>>> Also believe, logViewer.getAllRemoteSystemLogs() is the successor to
>>> deprecated method logViewer.getAllSystemLogs() ?
>>>
>>> Thanks,
>>> Maheeka
>>>
>>> Maheeka Jayasuriya
>>> Software Engineer
>>> Mobile : +9450661
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using LogViewerClient in Integration Tests

2015-03-31 Thread Waruna Perera
Hi Maheeka,

We have encountered issue with delay of clear logs in our test cases at
times. So you will have to consider that.

Thanks,

Waruna

On Wed, Apr 1, 2015 at 11:15 AM, Maheeka Jayasuriya 
wrote:

> Hi,
>
> I want to read the logs in ESB to do perform a few assertions. However,
> since I have multiple test methods in the test case, I am unable to find
> the correct required log.
>
> To further elaborate, my first test case prints 20 of required logs and
> the second test case prints 100. When I iterate through all logs, although
> logViewer.clearLogs() is done at the start of each method, the count for
> the second run test case is 120 and not 20 or 100 (I am verifying the log
> count in the test case). I verified with the log length before and after
> clearLogs() is called and the length remains the same. What is the
> expectation of the clearLogs() method. Does it clear all the system logs or
> something else?
>
> If I use the length of the logs before and after the test functionality
> and iterate through that, the required logs are not available.
>
> Also believe, logViewer.getAllRemoteSystemLogs() is the successor to
> deprecated method logViewer.getAllSystemLogs() ?
>
> Thanks,
> Maheeka
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +9450661
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IS] OAuth Token endpoint throws an exception

2015-03-17 Thread Waruna Perera
Hi Kasun,

Pls see if following thread helps [1].

[1][Dev] [IS]Can not access oauth2 authorize endpoint url



On Tue, Mar 17, 2015 at 2:56 PM, Kasun Dananjaya Delgolla 
wrote:

> Hi All,
>
> $subject happens when we try to generate access token using /token
> endpoint. We are using version 4.3.3 and full error log is attached. In
> brief, it's
>
>  java.lang.NoClassDefFoundError:
> org/wso2/carbon/identity/oauth/cache/CacheKey
>
> Thanks
> --
> Kasun Dananjaya Delgolla
>
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> Tel:  +94 11 214 5345
> Fax: +94 11 2145300
> Mob: + 94 771 771 015
> Blog: http://kddcodingparadise.blogspot.com
> Linkedin: *http://lk.linkedin.com/in/kasundananjaya
> <http://lk.linkedin.com/in/kasundananjaya>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
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

2015-03-16 Thread Waruna Perera
Hi Shani,

Remember that due to cache storage, you  need to restart the server in the
test case after the user claims are updated.

Thanks,

On Tue, Mar 17, 2015 at 9:43 AM, Saneth Dharmakeerthi 
wrote:

> 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  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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
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 token generation error

2015-03-11 Thread Waruna Perera
Hi,

Worked it after syncing with the master repo.

Thanks,

On Wed, Mar 11, 2015 at 1:41 PM, Nuwan Dias  wrote:

> Hi Waruna,
>
> I just tried this with a pack I built now. It doesn't throw any errors for
> me. Token generation and regeneration are both work fine.
>
> Thanks,
> NuwanD.
>
> On Wed, Mar 11, 2015 at 1:17 PM, Waruna Perera  wrote:
>
>> Hi,
>>
>> When we tried to run test cases in the latest code following error
>> occurred. I even tried it manually with the built pack and error is coming
>> for token generation.
>>
>> Caused by: org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error
>> occured when updating the status of the Application creation process
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:85)
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:58)
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>> org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:1762)
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - ...
>> 63 more
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>> Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error
>> occurred while creating an Application Registration Entry for Application :
>> APILifeCycleTestAPI-application
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>> org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.handleException(ApiMgtDAO.java:5851)
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>> org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.createApplicationRegistrationEntry(ApiMgtDAO.java:287)
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - at
>> org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:80)
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] - ...
>> 65 more
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>> Caused by: org.h2.jdbc.JdbcSQLException: Column "TOKEN_SCOPE" not found;
>> SQL statement:
>> INFO
>>  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>> INSERT INTO  AM_APPLICATION_REGISTRATION
>> (SUBSCRIBER_ID,WF_REF,APP_ID,TOKEN_TYPE,ALLOWED_DOMAINS,VALIDITY_PERIOD,TOKEN_SCOPE)
>>   VALUES(?,?,?,?,?,?,?) [42122-140
>>
>> any changes cause for this?
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] APIM token generation error

2015-03-11 Thread Waruna Perera
Hi,

When we tried to run test cases in the latest code following error
occurred. I even tried it manually with the built pack and error is coming
for token generation.

Caused by: org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error
occured when updating the status of the Application creation process
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:85)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.execute(ApplicationRegistrationSimpleWorkflowExecutor.java:58)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.apimgt.impl.APIConsumerImpl.requestApprovalForApplicationRegistration(APIConsumerImpl.java:1762)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- ... 63 more
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- Caused by: org.wso2.carbon.apimgt.api.APIManagementException: Error
occurred while creating an Application Registration Entry for Application :
APILifeCycleTestAPI-application
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.handleException(ApiMgtDAO.java:5851)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO.createApplicationRegistrationEntry(ApiMgtDAO.java:287)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- at
org.wso2.carbon.apimgt.impl.workflow.ApplicationRegistrationSimpleWorkflowExecutor.complete(ApplicationRegistrationSimpleWorkflowExecutor.java:80)
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- ... 65 more
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- Caused by: org.h2.jdbc.JdbcSQLException: Column "TOKEN_SCOPE" not found;
SQL statement:
INFO  [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader]
- INSERT INTO  AM_APPLICATION_REGISTRATION
(SUBSCRIBER_ID,WF_REF,APP_ID,TOKEN_TYPE,ALLOWED_DOMAINS,VALIDITY_PERIOD,TOKEN_SCOPE)
  VALUES(?,?,?,?,?,?,?) [42122-140

any changes cause for this?

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Irham Iqbal

2015-03-10 Thread Waruna Perera
Congratulation Irham!

On Tue, Mar 10, 2015 at 1:23 PM, Malintha Adikari  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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] writing jaggery hostobject method to get HTTP Response

2015-02-08 Thread Waruna Perera
@adding sanjeewa

On Sun, Feb 8, 2015 at 10:52 PM, Tharindu Dharmarathna 
wrote:

> Hi all,
> I want to write a host object method to directly give HTTP Response as
> output .  Is there any workaround or any tutorial on this.
>
> --
>
> *Tharindu Dharmarathna*Associate Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <%2B94779109091>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AM Publisher - API Visibility - Search API test case.

2015-01-29 Thread Waruna Perera
Hi Suhan,

In addition to that please go through following mail threads which I
started while writing test cases for APIM for any reference.

[DEV][APIM] writing automation tests for APIM

Get created API list without login in APIM

Can not subscribe to API with user has subscriber permission

Thanks,

On Thu, Jan 29, 2015 at 4:25 PM, Waruna Perera  wrote:

> Hi,
>
> Can you check testStore.jag and other jag file. There are methods
> available. If not we can raise issues.
>
> print(storeHostObj.searchAPIbyType("name:*","carbon.super"))
>
> Thanks,
>
> Waruna
>
> On Thu, Jan 29, 2015 at 3:54 PM, Suhan Dharmasuriya 
> wrote:
>
>> Hi Waruna,
>>
>> There is only getApi(APIName, providerName) and version is set to 1.0.0.
>> I want to automate following search options.
>> Search Options
>> By API Name [Default] or
>> By API Provider [Syntax - provider: ] or
>> By API Version [Syntax - version: ] or
>> By Context [Syntax - context: ] or
>> By Status [Syntax - status: ] or
>> By Description [Syntax - description: ] or
>> By Subcontext [Syntax - subcontext: ] or
>> By Documentation Content [Syntax - doc: ]
>>
>> How to automate these search options?
>>
>> Thanks,
>> Suhan
>>
>> On Thu, Jan 29, 2015 at 3:18 PM, Waruna Perera  wrote:
>>
>>> Hi Suhan,
>>>
>>> I think your case can be achieved via host objects. [1]
>>>
>>> [1]
>>> https://github.com/wso2-dev/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/sample/HostObjectTestCase.java
>>>
>>> On Thu, Jan 29, 2015 at 2:29 PM, Suhan Dharmasuriya 
>>> wrote:
>>>
>>>> Hi Lakshman,
>>>>
>>>> Will try and let you know. Thanks.
>>>>
>>>> Thanks,
>>>> Suhan
>>>>
>>>> On Thu, Jan 29, 2015 at 2:24 PM, Lakshman Udayakantha <
>>>> lakshm...@wso2.com> wrote:
>>>>
>>>>> Hi Suhan,
>>>>>
>>>>> Seems like curl command is not supported for any search parameter
>>>>> numbers behaviour. UI also not providing feature to search with several
>>>>> commands. Ex: name and provider together. Anyway you can do a selenium ui
>>>>> test. Arn't you?
>>>>>
>>>>> Thanks
>>>>>
>>>>> On Thu, Jan 29, 2015 at 12:04 PM, Suhan Dharmasuriya 
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Currently I'm writing test cases for API Manager: API Visibility
>>>>>> (search behaviour).
>>>>>> I'm referring following documentation [1].
>>>>>> I tried the "Get an API" section [1] curl command and it was
>>>>>> successful.
>>>>>>
>>>>>> Suhans-MacBook-Pro:integration suhanr$ *curl -X POST -b cookies
>>>>>> http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
>>>>>> <http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag> 
>>>>>> -d
>>>>>> "action=getAPI&name=APILifeCycleTestAPI&version=1.0.0&provider=admin"*
>>>>>> {"error" : false, "api" : {"name" : "APILifeCycleTestAPI", "version"
>>>>>> : "1.0.0", "description" : "This is test API create by API manager
>>>>>> integration test", "endpoint" : "", "wsdl" :
>>>>>> "/registry/resource/_system/governance/apimgt/applicationdata/wsdls/admin--APILifeCycleTestAPI1.0.0.wsdl",
>>>>>> "tags" : "updated", "availableTiers" : "Gold", "status" : "PUBLISHED",
>>>>>> "thumb" : null, "context" : "/testAPI", "lastUpdated" : "1422445208156",
>>>>>> "subs" : 1, "templates" : [["/*", "GET", "Application", "Unlimited"]],
>>>>>> "sandbox" : "", "tierDescs" : "Allows 20 request(s) per minute.",
>>>>>> "bizOwner" : "", "bizOwnerMail" : "", "techOwner" : "", "techOwnerMail" :
>>>>>> "", "wadl" : "", &

Re: [Dev] AM Publisher - API Visibility - Search API test case.

2015-01-29 Thread Waruna Perera
Hi,

Can you check testStore.jag and other jag file. There are methods
available. If not we can raise issues.

print(storeHostObj.searchAPIbyType("name:*","carbon.super"))

Thanks,

Waruna

On Thu, Jan 29, 2015 at 3:54 PM, Suhan Dharmasuriya  wrote:

> Hi Waruna,
>
> There is only getApi(APIName, providerName) and version is set to 1.0.0.
> I want to automate following search options.
> Search Options
> By API Name [Default] or
> By API Provider [Syntax - provider: ] or
> By API Version [Syntax - version: ] or
> By Context [Syntax - context: ] or
> By Status [Syntax - status: ] or
> By Description [Syntax - description: ] or
> By Subcontext [Syntax - subcontext: ] or
> By Documentation Content [Syntax - doc: ]
>
> How to automate these search options?
>
> Thanks,
> Suhan
>
> On Thu, Jan 29, 2015 at 3:18 PM, Waruna Perera  wrote:
>
>> Hi Suhan,
>>
>> I think your case can be achieved via host objects. [1]
>>
>> [1]
>> https://github.com/wso2-dev/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/sample/HostObjectTestCase.java
>>
>> On Thu, Jan 29, 2015 at 2:29 PM, Suhan Dharmasuriya 
>> wrote:
>>
>>> Hi Lakshman,
>>>
>>> Will try and let you know. Thanks.
>>>
>>> Thanks,
>>> Suhan
>>>
>>> On Thu, Jan 29, 2015 at 2:24 PM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
>>>> Hi Suhan,
>>>>
>>>> Seems like curl command is not supported for any search parameter
>>>> numbers behaviour. UI also not providing feature to search with several
>>>> commands. Ex: name and provider together. Anyway you can do a selenium ui
>>>> test. Arn't you?
>>>>
>>>> Thanks
>>>>
>>>> On Thu, Jan 29, 2015 at 12:04 PM, Suhan Dharmasuriya 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Currently I'm writing test cases for API Manager: API Visibility
>>>>> (search behaviour).
>>>>> I'm referring following documentation [1].
>>>>> I tried the "Get an API" section [1] curl command and it was
>>>>> successful.
>>>>>
>>>>> Suhans-MacBook-Pro:integration suhanr$ *curl -X POST -b cookies
>>>>> http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
>>>>> <http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag> 
>>>>> -d
>>>>> "action=getAPI&name=APILifeCycleTestAPI&version=1.0.0&provider=admin"*
>>>>> {"error" : false, "api" : {"name" : "APILifeCycleTestAPI", "version" :
>>>>> "1.0.0", "description" : "This is test API create by API manager
>>>>> integration test", "endpoint" : "", "wsdl" :
>>>>> "/registry/resource/_system/governance/apimgt/applicationdata/wsdls/admin--APILifeCycleTestAPI1.0.0.wsdl",
>>>>> "tags" : "updated", "availableTiers" : "Gold", "status" : "PUBLISHED",
>>>>> "thumb" : null, "context" : "/testAPI", "lastUpdated" : "1422445208156",
>>>>> "subs" : 1, "templates" : [["/*", "GET", "Application", "Unlimited"]],
>>>>> "sandbox" : "", "tierDescs" : "Allows 20 request(s) per minute.",
>>>>> "bizOwner" : "", "bizOwnerMail" : "", "techOwner" : "", "techOwnerMail" :
>>>>> "", "wadl" : "", "visibility" : "restricted", "roles" : "admin", "tenants"
>>>>> : "", "epUsername" : "", "epPassword" : "", "endpointTypeSecured" :
>>>>> "false", "provider" : "admin", "transport_http" : "checked",
>>>>> "transport_https" : "checked", "apiStores" : null, "inSequence" : "",
>>>>> "outSequence" : "", "subscriptionAvailability" : "", "subscriptionTenants"
>>>>> : "", "endpointConfig&

Re: [Dev] AM Publisher - API Visibility - Search API test case.

2015-01-29 Thread Waruna Perera
[Syntax - version: ] or
>>> By Context [Syntax - context: ] or
>>> By Status [Syntax - status: ] or
>>> By Description [Syntax - description: ] or
>>> By Subcontext [Syntax - subcontext: ] or
>>> By Documentation Content [Syntax - doc: ]
>>>
>>> To simulate above search options, I tried the following and it failed.
>>>
>>> Suhans-MacBook-Pro:integration suhanr$ curl -X POST -b cookies
>>> http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
>>> -d "action=getAPI&*name=APILifeCycleTestAPI&provider=admin"*
>>> {"error" : true, "message" : " Invalid number of parameters or their
>>> types."}Suhans-MacBook-Pro:integration suhanr$
>>>
>>> Suhans-MacBook-Pro:integration suhanr$ curl -X POST -b cookies
>>> http://localhost:9763/publisher/site/blocks/listing/ajax/item-list.jag
>>> -d "action=getAPI&*version=1.0.0&provider=admin"*
>>> {"error" : true, "message" : " Invalid number of parameters or their
>>> types."}Suhans-MacBook-Pro:integration suhanr$
>>>
>>>
>>>- How can I modify the curl command to search APIs by other means
>>>(search by: provider/description/context/documentation content) ?
>>>
>>>
>>>- To automate above search behaviour, do I have to modify (e.g.:
>>>overload getApi method) the
>>>
>>> wso2am-1.9.0/1.9.0/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/am/integration/test/utils/publisher/utils/
>>>*APIPublisherRestClient*.java?
>>>   - If so how can I find the search behaviour/number of parameters
>>>   implemented in service?
>>>
>>> [1] https://docs.wso2.com/display/AM180/Publisher+APIs
>>>
>>> Thanks,
>>> Suhan
>>>
>>> --
>>> Suhan Dharmasuriya
>>> Software Engineer - Test Automation
>>>
>>> *WSO2, Inc. *
>>>
>>> lean . enterprise . middleware
>>> Tel: +94 112 145345
>>> Mob: +94 779 869138
>>> Blog: http://suhan-opensource.blogspot.com/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>
>
> --
> Suhan Dharmasuriya
> Software Engineer - Test Automation
>
> *WSO2, Inc. *
>
> lean . enterprise . middleware
> Tel: +94 112 145345
> Mob: +94 779 869138
> Blog: http://suhan-opensource.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ESB] - Integration Test Enhancements: Multi-tenant Login Test

2015-01-29 Thread Waruna Perera
text 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  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 >>>>>> > 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 
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi Pasadi,
>>>>>>>>>
>>>>>>>>> You can use automation.xml[1] to create multiple tenants.
>>>>>>>>> You can define your tenants inside  tag and  inside
>>>>>>>>>  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
>>>>>>>>>> tenant users should be able to log in. How should I do this..??
>>>>>>>>>> Thanx..!!!
>>>>>>>>>> --
>>>>>>>>>> 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
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Irham Iqbal
>>>>>>>>> Software Engineer - Test Automation
>>>>>>>>>  WSO2, Inc.: http://wso2.com
>>>>>>>>> lean. enterprise. middleware
>>>>>>>>> phone: +94 777888452
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Pasadi Munasinghe
>>>>>>>> Software Engineer Intern
>>>>>>>> WSO2, Inc
>>>>>>>> Mobile: +9471 377 5515
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *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
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Pasadi Munasinghe
>>>> Software Engineer Intern
>>>> WSO2, Inc
>>>> Mobile: +9471 377 5515
>>>>
>>>
>>>
>>>
>>> --
>>> *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
>>>
>>
>>
>>
>> --
>> Pasadi Munasinghe
>> Software Engineer Intern
>> WSO2, Inc
>> Mobile: +9471 377 5515
>>
>
>
> --
> *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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Test Automation] Writing test-cases which connect to databases

2015-01-23 Thread Waruna Perera
https://github.com/warunap/product-esb/blob/master/modules/integration/tests-integration/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/mediation/db/Sample360TestCase.java

On Fri, Jan 23, 2015 at 5:42 PM, Buddhima Wijeweera 
wrote:

> Hi,
> I need to write test-cases for a new feature which connects with a
> database (H2).
> Tests need to;
> * Create a new table.
> * Remove table.
>
> Is this possible with the Test-Framework?
> If so, please provide a sample test-case for that.
>
> Thank You!
>
> --
> Buddhima Wijeweera
> Software Engineer; WSO2 Inc.; http://wso2.com ,
>
> Mobile: +94 71 427 9966
> Email: buddh...@wso2.com
> Blog:   https://buddhimawijeweera.wordpress.com
> GitHub Profile: https://github.com/Buddhima
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Webseal authenticator] UI authenticator includes log-out filter

2015-01-22 Thread Waruna Perera
Hi,

In webseal authenticator ui feature, Authenticator.java includes log-out
filter. I could not find the reason for it. Can some one explain whats the
purpose of it?

Thanks,
-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Anyone who has written a restful service using spring?

2015-01-15 Thread Waruna Perera
Hi,

Pls see if this helps [1].

[1] https://spring.io/guides/gs/consuming-rest/

On Fri, Jan 16, 2015 at 12:47 AM, Niranjan Karunanandham 
wrote:

> Hi all,
>
> $Subject plz.
>
> Regards,
> Nira
>
> --
>
> *Niranjan Karunanandham*
> WSO2 Inc.: http://www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Unable to login to LoginLogoutClient by a user for a test case due to an error

2015-01-15 Thread Waruna Perera
>>>> String queueName = destination.replace("queue", StringUtils.EMPTY);
>>>> andesAdminClient.deleteQueue(queueName);
>>>>
>>>>
>>>> Receiving the following error.
>>>>
>>>> performAllQueuePermissionCase(org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase)
>>>>  Time elapsed: 10.821 sec  <<< FAILURE!
>>>> org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException:
>>>> Login Unsuccessful. Return false as a login status by Server
>>>> at
>>>> org.wso2.carbon.integration.common.admin.client.AuthenticatorClient.login(AuthenticatorClient.java:61)
>>>> at
>>>> org.wso2.carbon.integration.common.utils.LoginLogoutClient.login(LoginLogoutClient.java:68)
>>>> at
>>>> org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performDelete(PermissionTreeTestCase.java:287)
>>>> at
>>>> org.wso2.mb.integration.tests.amqp.functional.PermissionTreeTestCase.performAllQueuePermissionCase(PermissionTreeTestCase.java:224)
>>>>
>>>>
>>>> Following are user information and platform information from
>>>> automation.xml
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> admin
>>>> admin
>>>> 
>>>> 
>>>> 
>>>> 
>>>> testuser11
>>>> testuser11
>>>> 
>>>> 
>>>> testuser21
>>>> testuser21
>>>> 
>>>> 
>>>> permissionUser
>>>>         permissionUser
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>>
>>>> 
>>>> 
>>>> >>> default="true">
>>>>
>>>> >>> nonBlockingTransportEnabled="false">
>>>> 
>>>> localhost
>>>> 
>>>> 
>>>> 9763
>>>> 9443
>>>> 
>>>> 
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>> Any help would be useful.
>>>>
>>>>
>>>> Regards,
>>>> Hemika
>>>>
>>>> Hemika Kodikara
>>>> Software Engineer
>>>> WSO2 Inc.
>>>> lean . enterprise . middleware
>>>> http://wso2.com
>>>>
>>>> Mobile : +9477762
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Nuwan Wimalasekara
>>> Senior Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> phone: +94 71 668 4620
>>>
>>>
>>>
>>>
>>
>> ___
>> 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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Automated Testing of Email Sending Functionality of EMM

2015-01-14 Thread Waruna Perera
gt;>>>>>
>>>>>>>> What is the best possible way to test this functionality?
>>>>>>>> Is there a recommended SMTP mail server to use?
>>>>>>>>
>>>>>>>> If I am using Selenium, to verify "success", I need to capture the
>>>>>>>> status message
>>>>>>>> of a dialog popup. How can I do this using Selenium?
>>>>>>>>
>>>>>>>> Appreciate any feedback on this.
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> *Dilan U. Ariyaratne*
>>>>>>>> Software Engineer
>>>>>>>> WSO2 Inc. <http://wso2.com/>
>>>>>>>> Mobile: +94775149066
>>>>>>>> lean . enterprise . middleware
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Inosh Perera
>>>>>> Software Engineer, WSO2 Inc.
>>>>>> Tel: 0785293686
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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
>>>
>>>
>>
>>
>> --
>> 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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MB] Error occurred while building carbon-business-messaging

2015-01-12 Thread Waruna Perera
Hi,

Are you building offline? Can you try with building [1] first?

[1] https://github.com/wso2-dev/andes.git
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fwso2-dev%2Fandes.git&sa=D&sntz=1&usg=AFQjCNGmDqLuC5WDT0sQTISYgJCVFngFsQ>

On Tue, Jan 13, 2015 at 10:38 AM, Madhawa Gunasekara 
wrote:

>
> Hi all,
>
> I'm getting following error when building carbon-business-messaging. but
> yesterday I have built it nicely. Since I'm getting this error after
> deleting my m2.repository.
>
> [ERROR] Failed to execute goal on project org.wso2.carbon.andes.commons:
> Could not resolve dependencies for project
> org.wso2.carbon:org.wso2.carbon.andes.commons:bundle:4.3.0-SNAPSHOT: Could
> not find artifact org.wso2.carbon:org.wso2.carbon.core:jar:4.3.0-SNAPSHOT
> in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/)
>
> Any help would be much appreciated.
>
> Thanks.
> Madhawa
> --
> *Madhawa Gunasekara*
> Software Engineering Intern
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002
>
>
>
> ___________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EMM] Errors occur on Server Shutdown when building the Product

2015-01-12 Thread Waruna Perera
HI Dilan,

I could not find any fault with your test case. Will update.

Thanks,

On Mon, Jan 12, 2015 at 11:05 AM, Dilan Udara Ariyaratne 
wrote:

> Hi Waruna,
>
> Integration test module and Parent pom of emm is attached herewith.
>
> Thanks.
>
>
> *Dilan U. Ariyaratne*
> Software Engineer
> WSO2 Inc. <http://wso2.com/>
> Mobile: +94775149066
> lean . enterprise . middleware
>
> On Mon, Jan 12, 2015 at 10:32 AM, Waruna Perera  wrote:
>
>> HI Dilan,
>>
>> Can you share the test case code?
>>
>> Thanks,
>>
>> On Mon, Jan 12, 2015 at 10:23 AM, Dilan Udara Ariyaratne > > wrote:
>>
>>> Hi Krishanthan,
>>>
>>> With in the test class, I do not explicitly access or populate any
>>> CarbonContext in any place...
>>>
>>> Thanks.
>>>
>>>
>>> *Dilan U. Ariyaratne*
>>> Software Engineer
>>> WSO2 Inc. <http://wso2.com/>
>>> Mobile: +94775149066
>>> lean . enterprise . middleware
>>>
>>> On Sat, Jan 10, 2015 at 11:04 AM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
>>>> Does the device registration at server-side access/populate
>>>> CarbonContext in any place?
>>>>
>>>> On Thu, Jan 8, 2015 at 4:34 PM, Dilan Udara Ariyaratne >>> > wrote:
>>>>
>>>>> Hi Kishanthan,
>>>>>
>>>>> I checked on a separate manual server shutdown and it seems to be fine.
>>>>> No errors appear as in this case.
>>>>>
>>>>> Regards,
>>>>> Dilan.
>>>>>
>>>>>
>>>>> *Dilan U. Ariyaratne*
>>>>> Software Engineer
>>>>> WSO2 Inc. <http://wso2.com/>
>>>>> Mobile: +94775149066
>>>>> lean . enterprise . middleware
>>>>>
>>>>> On Thu, Jan 8, 2015 at 2:26 PM, Dilan Udara Ariyaratne <
>>>>> dil...@wso2.com> wrote:
>>>>>
>>>>>> Hi Kishanthan,
>>>>>>
>>>>>> I am doing a dummy device registration at server-side to check
>>>>>> whether the registration functionality
>>>>>> works fine with an ORACLE connection.
>>>>>>
>>>>>> I will check whether a normal server shutdown also brings out these
>>>>>> exceptions, to isolate the issue from automation framework.
>>>>>>
>>>>>> Thanks for the feedback.
>>>>>>
>>>>>>
>>>>>>
>>>>>> *Dilan U. Ariyaratne*
>>>>>> Software Engineer
>>>>>> WSO2 Inc. <http://wso2.com/>
>>>>>> Mobile: +94775149066
>>>>>> lean . enterprise . middleware
>>>>>>
>>>>>> On Thu, Jan 8, 2015 at 1:43 PM, Kishanthan Thangarajah <
>>>>>> kishant...@wso2.com> wrote:
>>>>>>
>>>>>>> The root cause here is  : "java.lang.SecurityException: Illegal
>>>>>>> access attempt by  tenant[-1] to sessions owned by tenant[-1234]"
>>>>>>>
>>>>>>> This is because the CarbonContext is is not populated with the
>>>>>>> tenant information on showdown path which leads to this. There can be
>>>>>>> multiple reasons. Can you isolate this issue from automation framework, 
>>>>>>> by
>>>>>>> manually starting and stopping the EMM server? Also what are you doing
>>>>>>> within the test case here?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Jan 6, 2015 at 2:17 PM, Dilan Udara Ariyaratne <
>>>>>>> dil...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Folks,
>>>>>>>>
>>>>>>>> I have been working on writing a test case for the device
>>>>>>>> registration use-case of EMM with Oracle Support.
>>>>>>>> When I built the product with the test, every thing ran well with a
>>>>>>>> build success message except
>>>>>>>> the server shutdown.
>>>>>>>>
>>>>>>>> Following is the stack trace of it...
>>>>>>>>
>>>>>>>> INFO
>>>>>>>> [org.wso2.carbon.automation.extensions.serv

Re: [Dev] [EMM] Errors occur on Server Shutdown when building the Product

2015-01-11 Thread Waruna Perera
;>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> Caused by: org.wso2.carbon.CarbonException: Cannot lazy unload webapp
>>>>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/store-admin]
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at
>>>>>> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:379)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at
>>>>>> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:354)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at
>>>>>> org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer.lazyUnload(TomcatGenericWebappsDeployer.java:379)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at
>>>>>> org.wso2.carbon.webapp.mgt.AbstractWebappDeployer.cleanup(AbstractWebappDeployer.java:259)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> ... 44 more
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> Caused by: org.apache.catalina.LifecycleException: Failed to stop 
>>>>>> component
>>>>>> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/store-admin]]
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at
>>>>>> org.wso2.carbon.webapp.mgt.WebApplication.lazyUnload(WebApplication.java:365)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> ... 47 more
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> Caused by: org.apache.catalina.LifecycleException: Failed to stop 
>>>>>> component
>>>>>> [org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager[/store-admin]]
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at
>>>>>> org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5474)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> ... 48 more
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> Caused by: java.lang.SecurityException: Illegal access attempt by
>>>>>> tenant[-1] to sessions owned by tenant[-1234]
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at
>>>>>> org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager.checkAccess(CarbonTomcatSessionManager.java:126)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at
>>>>>> org.wso2.carbon.webapp.mgt.CarbonTomcatSessionManager.findSessions(CarbonTomcatSessionManager.java:78)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at
>>>>>> org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:525)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> ... 50 more
>>>>>> INFO
>>>>>> [org.wso2.carbon.automation.extensions.servers.utils.ServerLogReader] -
>>>>>> [2015-01-06 14:03:25,734] ERROR
>>>>>> {org.wso2.carbon.tomcat.internal.ServerManager} -  Error while stopping
>>>>>> tomcat
>>>>>> 
>>>>>> 
>>>>>>
>>>>>> Any idea on why these errors pop up?
>>>>>>
>>>>>> Appreciate your feedback on this.
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>>
>>>>>> *Dilan U. Ariyaratne*
>>>>>> Software Engineer
>>>>>> WSO2 Inc. <http://wso2.com/>
>>>>>> Mobile: +94775149066
>>>>>> lean . enterprise . middleware
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Kishanthan Thangarajah*
>>>>> Senior Software Engineer,
>>>>> 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>*
>>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Senior Software Engineer,
>> 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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Automation frame work find bugs stats

2015-01-11 Thread Waruna Perera
Hi All,

I have run find bugs for existing code in automation frame work. I fixed
most of the generic bugs found and there are remaining 39 bugs. Fixing some
of them will effect underlying users of the TAF. Please go through the
fixed code and suggest for any fixes with out major changes  to underlying
users.

Thanks,


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] https support for sample axis2server in automation framework

2014-12-23 Thread Waruna Perera
Hi Krishantha,

Sample test case is added to ESB.

Thanks,

Waruna

On Tue, Dec 23, 2014 at 1:29 PM, Krishantha Samaraweera  wrote:

> Hi Waruna,
>
> Lets write sample test case to consume secured backend.
>
> We need to add this to automation wiki once the sample test case is
> completed.
>
> Thanks,
> Krishantha.
>
> On Tue, Dec 23, 2014 at 1:25 PM, Waruna Perera  wrote:
>
>> HI All,
>>
>> https support in sample axis2server in automation framework added. You
>> can find the how to use it in the attached doc.
>>
>> Thanks,
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>> ___
>> 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.
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB Error when running test cases

2014-12-23 Thread Waruna Perera
HI Irham,

I think you have to iterate the InboundEndpointDTO array and use the getName
method.[1]

[1]
https://github.com/wso2/carbon-mediation/blob/master/components/mediation-admin/org.wso2.carbon.inbound/src/main/java/org/wso2/carbon/inbound/InboundEndpointDTO.java

Thanks,

On Tue, Dec 23, 2014 at 12:18 PM, Irham Iqbal  wrote:

> Hi All,
>
> when running ESB test cases i am getting the following Error.
>
> java.lang.NoSuchMethodError:
> org.wso2.carbon.inbound.stub.InboundAdminStub.getAllInboundEndpointNames()Ljava/lang/String;
> at
> org.wso2.esb.integration.common.clients.inbound.endpoint.InboundAdminClient.getAllInboundEndpointNames(InboundAdminClient.java:68)
> at
> org.wso2.esb.integration.common.utils.ESBTestCaseUtils.getAllInboundEndpoints(ESBTestCaseUtils.java:397)
> at
> org.wso2.esb.integration.common.utils.ESBIntegrationTest.deleteInboundEndpoints(ESBIntegrationTest.java:266)
> at
> org.wso2.esb.integration.common.utils.ESBIntegrationTest.cleanup(ESBIntegrationTest.java:143)
> at
> org.wso2.carbon.esb.mailto.transport.receiver.test.MailToTransportActionAfterFailureDELETETestCase.deleteService(MailToTransportActionAfterFailureDELETETestCase.java:70)
>
> It's because method getAllInboundEndpointNames() from InboundAdminStub was
> returning a string earlier now it has been changed to return a
> InboundEndpointDTO Object Array. We are using this method to get
> endpointName.
> How can i get endpointName from InboundEndpointDTO object?
>
> 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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] https support for sample axis2server in automation framework

2014-12-22 Thread Waruna Perera
HI All,

https support in sample axis2server in automation framework added. You can
find the how to use it in the attached doc.

Thanks,

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.


Axis2serverHTTPStransportsupport.pdf
Description: Adobe PDF document
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] SSLHandShake issue when invoking https endpoint from ESB

2014-12-14 Thread Waruna Perera
Hi Vijitha,

Pls try debug using *-Djavax.net.debug=all* and see the output.

Thanks,

On Mon, Dec 15, 2014 at 11:34 AM, Vijitha Ekanayake 
wrote:
>
> Hi,
>
>  i was trying to invoke a HTTPS endpoint using ESB proxy service. it gives
> following SSLHandShakeException. If i call the endpoint directly from
> advanced rest client tool provided by google chrome, I am able to get the
> successful response. i used [1] as a reference material.
>
> Steps i followed
> 1. generated a custom certificate using keytool
> 2. configured web server (tomcat) with created keystore.
> 3. exported public certificate to .crt file
> 4. added .crt to wso2carbon.jks and client-truststore.jks
> 5. change axis2.xml parameter as  name="HostnameVerifier">AllowAll
>
> Can anyone help me to sort out this issue?
>
> following exception printed out in the terminal
>
> [2014-12-15 08:40:04,243] ERROR - SourceHandler I/O error: null cert chain
>
> javax.net.ssl.SSLHandshakeException: null cert chain
>
> at
> com.sun.net.ssl.internal.ssl.Handshaker.checkThrown(Handshaker.java:1015)
>
> at
> com.sun.net.ssl.internal.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:485)
>
> at
> com.sun.net.ssl.internal.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1108)
>
> at com.sun.net.ssl.internal.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1080)
>
> at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:452)
>
> at
> org.apache.http.nio.reactor.ssl.SSLIOSession.doWrap(SSLIOSession.java:220)
>
> at
> org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:254)
>
> at
> org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:380)
>
> at
> org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118)
>
> at
> org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:160)
>
> at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
>
> at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
>
> at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
>
> at
> org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
>
> at
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
>
> at java.lang.Thread.run(Thread.java:695)
>
> Caused by: javax.net.ssl.SSLHandshakeException: null cert chain
>
> at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
>
> at
> com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1447)
>
> at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:243)
>
> at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:231)
>
> at
> com.sun.net.ssl.internal.ssl.ServerHandshaker.clientCertificate(ServerHandshaker.java:1372)
>
> at
> com.sun.net.ssl.internal.ssl.ServerHandshaker.processMessage(ServerHandshaker.java:160)
>
> at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
>
> at com.sun.net.ssl.internal.ssl.Handshaker$1.run(Handshaker.java:533)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at
> com.sun.net.ssl.internal.ssl.Handshaker$DelegatedTask.run(Handshaker.java:952)
>
> at
> org.apache.http.nio.reactor.ssl.SSLIOSession.doRunTask(SSLIOSession.java:238)
>
> at
> org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:270)
> [1]
> http://sahanlm.blogspot.com/2013/10/wso2-esb-exposing-secure-backend.html
>
> --
> Vijitha Ekanayake
> Software Engineer*, *WSO2, Inc.; http://wso2.com/
> Mobile : +94 777 24 73 39 | +94 718 74 44 08
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Configure PHP web application to use SSO with IS

2014-12-03 Thread Waruna Perera
Hi,

Following is the SSO config available in web app side.

$tlCfg->authentication['SSO_enabled'] = true;
$tlCfg->authentication['SSO_method'] = 'CLIENT_CERTIFICATE';
$tlCfg->authentication['SSO_uid_field'] = 'SSL_CLIENT_S_DN_Email';

Thanks,

On Wed, Dec 3, 2014 at 4:44 PM, Waruna Perera  wrote:

> Hi,
>
> I am trying to configure a PHP web app[1] with IS as the IDP. Can some one
> please guide me to any doc that is availbale to do that? Above app is
> installed on Apache.
>
> [1]http://testlink.org/
>
> Thanks,
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Configure PHP web application to use SSO with IS

2014-12-03 Thread Waruna Perera
Hi,

I am trying to configure a PHP web app[1] with IS as the IDP. Can some one
please guide me to any doc that is availbale to do that? Above app is
installed on Apache.

[1]http://testlink.org/

Thanks,

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Write OMElement to xml with proper indentation

2014-11-17 Thread Waruna Perera
Hi Vijitha,

Pls see [1] if it helps.

[1]
http://stackoverflow.com/questions/2949203/formatting-xml-file-using-stax

On Tue, Nov 18, 2014 at 10:04 AM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> Can you check the code in [1].. It will help you..
>
> [1]
> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/event-stream/event-formatter/org.wso2.carbon.event.formatter.core/1.0.1/src/main/java/org/wso2/carbon/event/formatter/core/internal/util/helper/XmlFormatter.java
>
> Thanks,
> Mohan
>
>
> On Tue, Nov 18, 2014 at 9:59 AM, Vijitha Ekanayake 
> wrote:
>
>> Hi,
>>
>> I was trying to write OMElement to xml file. what I did is call
>> OMElements' toString method to write it into a xml, which eventually ended
>> up creating xml file content with single line.
>> following is my code.
>>
>> BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(new
>> File(filePath,eventSink.getName()+".xml")));
>> bufferedWriter.write((OMElement).toString());
>>
>> Is there anyway to write xml with correct indentations and formatting?
>>
>>
>>
>>
>> --
>> Vijitha Ekanayake
>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>> lean.enterprise.middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *V. Mohanadarshan*
> *Software Engineer,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com <http://wso2.com> *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Unsupported user claim error

2014-11-14 Thread Waruna Perera
Hi,

I tried following scenario for a test case.


   1. Added user profile value (givenname) and invoked API.
   2. Checked JWT token, givenname claim is in the JWT claims.
   3. Edited claims and set givenname not supported by default.
   4. User profile now does not  show the givenname field.
   5. invoked API again and still givenname claim is received in JWT
   claims.

Is this scenario correct? Is there a way to not receive claim if
unsupported?

Thanks,

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get user claims in JWT token

2014-11-11 Thread Waruna Perera
HI Sanjeewa,

This is not tenant specific issue.

Thanks

On Tue, Nov 11, 2014 at 6:18 PM, Sanjeewa Malalgoda 
wrote:

>
>
> On Tue, Nov 11, 2014 at 6:18 PM, Sanjeewa Malalgoda 
> wrote:
>
>> Hi Waruna,
>> I can see role list claim in this JWT (which is generated on behalf of
>> user). So it seems user claims retrieving is working fine. We can check
>> claims with profile management feature. Shall we check that. And is this
>> tenant specific issue? We might need to debug DefaultClaimsRetriever
>> and JWTGenerator classes to identify exact issue here.
>>
>> Thanks,
>> sanjeewa.
>>
>> On Tue, Nov 11, 2014 at 5:31 PM, Waruna Perera  wrote:
>>
>>> Hi,
>>>
>>> I am writing a test case to check user claims in JWT token for API
>>> invocation. I have a user with firstname, lastname and few other fields
>>> entered. But when i decode the user claims received it only shows
>>> following. What could be the error I am doing here?
>>>
>>> {
>>> "iss": "wso2.org/products/am",
>>> "exp": 1415706288828,
>>> "http://wso2.org/claims/subscriber": "subscriberUser",
>>> "http://wso2.org/claims/applicationid": "4",
>>> "http://wso2.org/claims/applicationname":
>>> "APILifeCycleTestAPI-application1",
>>> "http://wso2.org/claims/applicationtier": "Gold",
>>> "http://wso2.org/claims/apicontext": "/tokenTest",
>>> "http://wso2.org/claims/version": "1.0.0",
>>> "http://wso2.org/claims/tier": "Gold",
>>> "http://wso2.org/claims/keytype": "PRODUCTION",
>>> "http://wso2.org/claims/usertype": "APPLICATION",
>>> "http://wso2.org/claims/enduser": "subscriberuser@carbon.super",
>>> "http://wso2.org/claims/enduserTenantId": "-1234",
>>> "http://wso2.org/claims/role":
>>> "Internal/subscriber,Internal/everyone"
>>> }
>>>
>>> Thanks,
>>>
>>> --
>>> Waruna Perera
>>> Senior Software Engineer - Test Automation
>>> Mobile: +94 77 3867037
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>>  <http://sanjeewamalalgoda.blogspot.com/>blog
>> :http://sanjeewamalalgoda.blogspot.com/
>> <http://sanjeewamalalgoda.blogspot.com/>
>>
>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  <http://sanjeewamalalgoda.blogspot.com/>blog
> :http://sanjeewamalalgoda.blogspot.com/
> <http://sanjeewamalalgoda.blogspot.com/>
>
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Get user claims in JWT token

2014-11-11 Thread Waruna Perera
Hi,

I am writing a test case to check user claims in JWT token for API
invocation. I have a user with firstname, lastname and few other fields
entered. But when i decode the user claims received it only shows
following. What could be the error I am doing here?

{
"iss": "wso2.org/products/am",
"exp": 1415706288828,
"http://wso2.org/claims/subscriber": "subscriberUser",
"http://wso2.org/claims/applicationid": "4",
"http://wso2.org/claims/applicationname":
"APILifeCycleTestAPI-application1",
"http://wso2.org/claims/applicationtier": "Gold",
"http://wso2.org/claims/apicontext": "/tokenTest",
"http://wso2.org/claims/version": "1.0.0",
"http://wso2.org/claims/tier": "Gold",
"http://wso2.org/claims/keytype": "PRODUCTION",
"http://wso2.org/claims/usertype": "APPLICATION",
"http://wso2.org/claims/enduser": "subscriberuser@carbon.super",
"http://wso2.org/claims/enduserTenantId": "-1234",
"http://wso2.org/claims/role": "Internal/subscriber,Internal/everyone"
}

Thanks,

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Can not subscribe to API with user has subscriber permission

2014-11-10 Thread Waruna Perera
Hi Dinesh,

Found out that request was wrong. Thanks for the reply.


On Mon, Nov 10, 2014 at 3:30 PM, Dinesh J Weerakkody 
wrote:

> Hi Waruna,
>
> This error occurs when API is not available in the registry. I hope that
> you are running a jmeter script. If so, please keep some time gap between
> requests because server take some time to store and make available newly
> created APIs.
>
> Thanks,
>
> On Mon, Nov 10, 2014 at 1:27 PM, Waruna Perera  wrote:
>
>>
>> Hi,
>>
>> I am writing a test cae for JWT claim checks. For that I created a user
>> with subscriber permission. But when user sends the subscriber request it
>> gives following error. What could be the reason?
>>
>> UserAwareAPIConsumer Failed to get API from :
>> /apimgt/applicationdata/provider/subscriberUser/JWTTokenTestAPI/1.0.0/api
>> INFO
>>  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader] -
>> org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
>> Resource does not exist at path
>> /_system/governance/apimgt/applicationdata/provider/subscriberUser/JWTTokenTestAPI/1.0.0/api
>>
>> Thanks,
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Dinesh J. Weerakkody*
> Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Can not subscribe to API with user has subscriber permission

2014-11-09 Thread Waruna Perera
Hi,

I am writing a test cae for JWT claim checks. For that I created a user
with subscriber permission. But when user sends the subscriber request it
gives following error. What could be the reason?

UserAwareAPIConsumer Failed to get API from :
/apimgt/applicationdata/provider/subscriberUser/JWTTokenTestAPI/1.0.0/api
INFO  [org.wso2.carbon.integration.common.extensions.utils.ServerLogReader]
- org.wso2.carbon.registry.core.exceptions.ResourceNotFoundException:
Resource does not exist at path
/_system/governance/apimgt/applicationdata/provider/subscriberUser/JWTTokenTestAPI/1.0.0/api

Thanks,

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Automate OpenID to SAML federation flow - How to start two IS instances with different hostnames

2014-11-04 Thread Waruna Perera
Hi Malithi,

To overcome session cookie problem pls look at[1].

[1]
http://warunaperera.blogspot.com/2014/06/enablingsso-for-wso2-servers-overcome.html

On Tue, Nov 4, 2014 at 11:06 PM, Malithi Edirisinghe 
wrote:

> Hi all,
>
> I'm working on automating the OpenID to SAML federation flow. At the
> moment OpenID implementation on IS 5.1.0 depends on the session, which
> would be fixed in future. Hence when I start two IS instances with the same
> hostname changing only the port the OpenID federation flow breaks since the
> cookie is bound to the hostname and this overwrites each other's session
> information resulting in lost sessions. Thus, I need to start two IS
> instances that bind to different hostnames.
> I would like to know whether this is possible with TAF 4.2.8 or how could
> we achieve this scenario ?
>
> 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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is ESB mediator serializer for?

2014-11-03 Thread Waruna Perera
Hi Lahiru,

can you check whether your bundle got activated vi Osgi console?


Thanks

On Tue, Nov 4, 2014 at 11:34 AM, Lahiru Chandima  wrote:

> Hi All,
>
> I am writing a new ESB mediator and I cannot figure out the need of a
> mediator serializer (extension of AbstractMediatorSerializer) for a
> mediator.
>
> Also, in the new mediator I created, if I add a breakpoint in
> serializeSpecificMediator() method in my mediator serializer and debugged,
> the breakpoint never gets hit (during ESB startup or when the mediator
> receives an event to mediate).
>
> Does anybody know what is the need of a mediator serializer and when does
> the serializeSpecificMediator() method get called?
>
> Thanks
>
> --
> Lahiru Chandima
> *Senior Software Engineer*
> Mobile : +94 (0) 772 253283
> lahi...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting error when having two ESB instance with offset 0 & 1

2014-10-31 Thread Waruna Perera
ecutor.java:895)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>> at java.lang.Thread.run(Thread.java:662)
>> Caused by: javax.naming.CommunicationException [Root exception is
>> java.rmi.ConnectIOException: error during JRMP connection establishment;
>> nested exception is:
>> java.io.EOFException]
>> at
>> com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:126)
>> at
>> com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)
>> at
>> org.wso2.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.bind(CarbonContextDataHolder.java:959)
>> at javax.naming.InitialContext.bind(InitialContext.java:400)
>> at
>> javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
>> at
>> javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
>> ... 76 more
>> Caused by: java.rmi.ConnectIOException: error during JRMP connection
>> establishment; nested exception is:
>> java.io.EOFException
>> at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286)
>> at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
>> at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
>> at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
>> at
>> com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
>> ... 81 more
>> Caused by: java.io.EOFException
>> at java.io.DataInputStream.readByte(DataInputStream.java:250)
>> at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228)
>> ... 85 more
>>
>>
>> --
>> Priya Kishok
>> Software Engineer
>> WSO2, Inc : http://wso2.com
>> Mob : +94774457404
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
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 create a new ESB mediator

2014-10-28 Thread Waruna Perera
HI Lahiru,

File path

/
repository/deployment/server/synapse-configs/default/proxy-services

On Wed, Oct 29, 2014 at 10:02 AM, Lahiru Chandima  wrote:

> Hi Waruna,
>
> Here is the git repo url
>
> https://github.com/lahiruchandima/publish_event_mediator
>
> Here is the Synapse config
>
> http://ws.apache.org/ns/synapse";>
> 
> 
> 
> http://localhost:9000/services/SimpleStockQuoteService"/>
> 
> 
> 
> **
> 
> 
>  uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>
> 
> 
>
>
> Thanks
>
>
>
> On Wed, Oct 29, 2014 at 9:49 AM, Waruna Perera  wrote:
>
>> HI Lahiru,
>>
>> Can you share the code in GitHub? And share your synapse config as well.
>>
>> On Wed, Oct 29, 2014 at 9:37 AM, Lahiru Chandima 
>> wrote:
>>
>>> Hi All,
>>>
>>> I am trying to create a new mediator (not a class mediator) for ESB. I
>>> have encountered several problems so far.
>>>
>>> 1. Where does the synapse config of ESB reside? I searched for some text
>>> in the config (shown in the management console) in the ESB directory but
>>> couldn't find the location.
>>>
>>> 2. So far I have crated a maven project for the mediator and created
>>> mediator, mediator factory and mediator serializer classes (I haven't
>>> created the mediator configuration UI module yet). I copied the generated
>>> jar file to repository/components/plugins directory, added the new mediator
>>> to a sequence in the synapse config of ESB sample 150[1
>>> <https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services>]
>>> and started ESB with sample 150 config. ESB gives following exception at
>>> startup.
>>>
>>> [2014-10-29 09:05:48,116]  WARN - SynapseXMLConfigurationFactory Proxy
>>> Service configuration: StockQuoteProxy cannot be built - Continue in
>>> fail-safe mode
>>> java.lang.NullPointerException
>>> at
>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:207)
>>> at
>>> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:41)
>>> at
>>> org.apache.synapse.config.xml.SequenceMediatorFactory.createAnonymousSequence(SequenceMediatorFactory.java:70)
>>> at
>>> org.apache.synapse.config.xml.ProxyServiceFactory.createProxy(ProxyServiceFactory.java:193)
>>> at
>>> org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineProxy(SynapseXMLConfigurationFactory.java:142)
>>> at
>>> org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:92)
>>>
>>>
>>> Looks like ESB cannot find the factory for creating the new mediator
>>> specified in the synapse config. What should I do for ESB to identify my
>>> jar as an ESB mediator?
>>>
>>> Can somebody help me on this?
>>>
>>> [1]
>>> https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services
>>>
>>> Thanks
>>> --
>>> Lahiru Chandima
>>> *Senior Software Engineer*
>>> Mobile : +94 (0) 772 253283
>>> lahi...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Lahiru Chandima
> *Senior Software Engineer*
> Mobile : +94 (0) 772 253283
> lahi...@wso2.com
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
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 create a new ESB mediator

2014-10-28 Thread Waruna Perera
HI Lahiru,

Can you share the code in GitHub? And share your synapse config as well.

On Wed, Oct 29, 2014 at 9:37 AM, Lahiru Chandima  wrote:

> Hi All,
>
> I am trying to create a new mediator (not a class mediator) for ESB. I
> have encountered several problems so far.
>
> 1. Where does the synapse config of ESB reside? I searched for some text
> in the config (shown in the management console) in the ESB directory but
> couldn't find the location.
>
> 2. So far I have crated a maven project for the mediator and created
> mediator, mediator factory and mediator serializer classes (I haven't
> created the mediator configuration UI module yet). I copied the generated
> jar file to repository/components/plugins directory, added the new mediator
> to a sequence in the synapse config of ESB sample 150[1
> <https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services>]
> and started ESB with sample 150 config. ESB gives following exception at
> startup.
>
> [2014-10-29 09:05:48,116]  WARN - SynapseXMLConfigurationFactory Proxy
> Service configuration: StockQuoteProxy cannot be built - Continue in
> fail-safe mode
> java.lang.NullPointerException
> at
> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:207)
> at
> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:41)
> at
> org.apache.synapse.config.xml.SequenceMediatorFactory.createAnonymousSequence(SequenceMediatorFactory.java:70)
> at
> org.apache.synapse.config.xml.ProxyServiceFactory.createProxy(ProxyServiceFactory.java:193)
> at
> org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineProxy(SynapseXMLConfigurationFactory.java:142)
> at
> org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:92)
>
>
> Looks like ESB cannot find the factory for creating the new mediator
> specified in the synapse config. What should I do for ESB to identify my
> jar as an ESB mediator?
>
> Can somebody help me on this?
>
> [1]
> https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services
>
> Thanks
> --
> Lahiru Chandima
> *Senior Software Engineer*
> Mobile : +94 (0) 772 253283
> lahi...@wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Amqp not client now connecting to activemq

2014-10-23 Thread Waruna Perera
Hi Prasanna,

Please update the thread with solution you found.

Thanks

On Fri, Oct 17, 2014 at 10:30 PM, Udara Rathnayake  wrote:

> Hi Prasanna,
>
> Seems there is AMQP version mismatch. ActiveMQ is AMQP 1.0 implementation.
> But Im not sure about 1.0 support from RabbitMQ side.
>
> On Fri, Oct 17, 2014 at 6:13 AM, Prasanna Dangalla 
> wrote:
>
>> Hi Waruna,
>>
>> In activemq 5.10.0 console log the error says as follows
>>
>> INFO | Listening for connections at
>> ws://prasa-ubuntu:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600
>>  INFO | Connector ws started
>>  INFO | Apache ActiveMQ 5.10.0 (localhost,
>> ID:prasa-ubuntu-39398-1413539625377-0:1) started
>>  INFO | For help or more information please see:
>> http://activemq.apache.org
>>  INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/
>>  INFO | Initializing Spring FrameworkServlet 'dispatcher'
>>  INFO | jolokia-agent: No access restrictor found at
>> classpath:/jolokia-access.xml, access to all MBeans is allowed
>> org.apache.activemq.transport.amqp.AmqpProtocolException: Could not
>> decode AMQP frame: hex: 414d51500901
>> at
>> org.apache.activemq.transport.amqp.AmqpProtocolConverter.onFrame(AmqpProtocolConverter.java:233)
>> at
>> org.apache.activemq.transport.amqp.AmqpProtocolConverter.onAMQPData(AmqpProtocolConverter.java:224)
>> at
>> org.apache.activemq.transport.amqp.AMQPProtocolDiscriminator.onAMQPData(AMQPProtocolDiscriminator.java:89)
>> at
>> org.apache.activemq.transport.amqp.AmqpTransportFilter.onCommand(AmqpTransportFilter.java:98)
>> at
>> org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:83)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:214)
>> at
>> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)
>> at java.lang.Thread.run(Thread.java:662)
>> Caused by: org.apache.qpid.proton.engine.TransportException:
>> org.apache.qpid.proton.engine.TransportException: AMQP header mismatch
>> value 0, expecting 1. In state: HEADER5
>> at
>> org.apache.qpid.proton.engine.TransportResultFactory$TransportResultImpl.checkIsOk(TransportResultFactory.java:116)
>> at
>> org.apache.qpid.proton.engine.impl.TransportImpl.input(TransportImpl.java:220)
>> at
>> org.apache.activemq.transport.amqp.AmqpProtocolConverter.onFrame(AmqpProtocolConverter.java:230)
>> ... 7 more
>> Caused by: org.apache.qpid.proton.engine.TransportException: AMQP header
>> mismatch value 0, expecting 1. In state: HEADER5
>> at
>> org.apache.qpid.proton.engine.impl.FrameParser.input(FrameParser.java:202)
>> at
>> org.apache.qpid.proton.engine.impl.FrameParser.process(FrameParser.java:502)
>> at
>> org.apache.qpid.proton.engine.impl.TransportImpl.process(TransportImpl.java:1265)
>> at
>> org.apache.qpid.proton.engine.impl.TransportImpl.processInput(TransportImpl.java:1226)
>> ... 9 more
>>
>>
>> In client side the error says as follows
>>
>> Exception in thread "main" java.io.IOException
>> at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106)
>> at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102)
>> at
>> com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:346)
>> at
>> com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:590)
>> at
>> com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:612)
>> at Cache.main(Cache.java:15)
>> 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
>> com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
>> Caused by: com.rabbitmq.client.ShutdownSignalException: connection error
>> at
>> com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)
>> at
>> com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33)
>> at
>> com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:343)
>> at
>> com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:292)
>> ... 8 more
>> Caused by: java.io.EOFException
>>   

Re: [Dev] Use of javax.net.ssl.keyStore and javax.net.ssl.trustStore

2014-10-22 Thread Waruna Perera
HI Tharindu,

Here is code example of using custom SSL context. [1]

[1]
https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.test.utils/src/main/java/org/wso2/carbon/automation/test/utils/generic/MutualSSLClient.java

On Thu, Oct 23, 2014 at 9:39 AM, Johann Nallathamby  wrote:

> You should be able to use SSLSocketFactory API to create a custom SSL
> context.
>
> However you need to think about where you are going to store the key store
> and trust store. For your requirement, it should default to the carbon key
> store and trust store in IS by default. Only if someone wants to they can
> override it with their own configuration.
>
> Basically you need to provide a callback to get this information. Default
> callback should populate it using carbon server key store.
>
> Thanks,
> Johann.
>
> On Wed, Oct 22, 2014 at 12:47 PM, Tharindu Edirisinghe  > wrote:
>
>> Hi,
>>
>> I have a webapp that calls an admin service of IS through mutual ssl
>> authentication. The call is done using the HttpClient. For that I am
>> setting the keystore and truststore details of the client at runtime like
>> below.
>>
>> System.setProperty("javax.net.ssl.keyStore",
>> CLIENT_KEY_STORE_PATH);
>> System.setProperty("javax.net.ssl.trustStore",
>> CLIENT_TRUST_STORE_PATH);
>> System.setProperty("javax.net.ssl.keyStorePassword",
>> CLIENT_KEY_STORE_PASSWORD);
>> System.setProperty("javax.net.ssl.trustStorePassword",
>> CLIENT_TRUST_STORE_PASSWORD);
>>
>> SSLContext context = SSLContexts.createSystemDefault();
>> HttpClientBuilder builder = HttpClientBuilder.create();
>>
>> Registry registry = RegistryBuilder
>> .create()
>> .register("https", new
>> SSLConnectionSocketFactory(context))
>> .build();
>>
>> HttpClientConnectionManager ccm = new
>> BasicHttpClientConnectionManager(registry);
>>
>> builder.setConnectionManager(ccm);
>> HttpClient client = builder.build();
>>
>> Now I want to get rid of the code that sets the ssl system properties at
>> runtime. Here it is assumed that those properties are already set.
>>
>> But System.getProperty("javax.net.ssl.keyStore") and
>> System.getProperty("javax.net.ssl.keyStorePassword") return null at runtime
>> and therefore the client cannot call the service properly.
>>
>> It seems those two properties get overwritten at runtime. TrustStore
>> properties are not overwritten and they remain with the same values set
>> previously.
>>
>> Any suggestions for setting the keyStore properties correctly (outside
>> the webapp) ?
>>
>> --
>>
>> Tharindu Edirisinghe
>> Software Engineer | WSO2 Inc
>> Identity Server Team
>> mobile : +94 775 181586
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Associate Technical Lead & Product Lead of WSO2 Identity Server
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+9476950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Write integration test for new osgi service.

2014-10-20 Thread Waruna Perera
HI Danesh,

You can use this guide[1] to get an idea as well as above.

[1]
http://wso2.com/library/articles/2014/06/introducing-automated-tests-for-wso2-products/

On Tue, Oct 21, 2014 at 8:54 AM, Ravindra Ranwala  wrote:

> Hi Danesh,
>
> The way you write an integration tests depend on your product. Based on
> that you have to extend a specific class and write integration tests. For
> an instance if the product is ESB you have to extend the ESBIntegrationTest
> class. Also you have to patch the product with the new artifact to test
> that functionality. If you have a module where integration tests have
> already been written then you can merely add the necessary test cases to
> that module. For more information please refer this documentation [1].
>
>
> [1.]
> https://docs.wso2.com/display/TA430/WSO2+Test+Automation+Documentation
>
>
> Thanks & Regards,
>
>
>
> On Tue, Oct 21, 2014 at 7:33 AM, Danesh Kuruppu  wrote:
>
>> Hi all,
>>
>> I wrote new osgi service to expose configuration context. Need to write
>> integration test case for that. what is the best way I could follow.
>>
>> Please help
>>
>> Thanks
>> --
>>
>> Danesh Kuruppu
>> Software Engineer
>> WSO2 Inc,
>> Mobile: +94 (77) 1690552
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ravindra Ranwala
> Software Engineer
> WSO2, Inc: http://wso2.com
> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
> Mobile: +94714198770
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Amqp not client now connecting to activemq

2014-10-17 Thread Waruna Perera
Hi Prasanna,

Please post the connection error trace.

Thanks!

On Fri, Oct 17, 2014 at 2:54 PM, Prasanna Dangalla 
wrote:

> Hi Waruna
>
> Yes, I put the amqp-client-3.0.3.jar to repository/components/lib in greg
> to test it in greg and to test it in my sample client I put the maven
> dependency as follows in the pom file
>
>  
>  com.rabbitmq
>  amqp-client
>  3.3.5
> 
>
>
>
> On Fri, Oct 17, 2014 at 2:48 PM, Waruna Perera  wrote:
>
>> Hi Prasanna,
>>
>> Did you put any client libraries of activemq server in side amqp cleint
>> class path?
>>
>> Thanks
>>
>> On Fri, Oct 17, 2014 at 2:45 PM, Prasanna Dangalla 
>> wrote:
>>
>>> Sorry the $subject should be as follows
>>> Amqp client not connecting to activemq server.
>>>
>>>
>>> On Fri, Oct 17, 2014 at 2:31 PM, Prasanna Dangalla 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm trying connect from a amqp client to a aqtivemq server with default
>>>> settings to test cache Invalidation in greg. It always gives the error
>>>> message saying connection refused, I wrote a sample client using the
>>>> rabbitmq client library. It to doesn't work with activemq server too. But
>>>> it works in AmalG's lap. Both laps having the same ubuntu versions,
>>>> activemq server versions and rabbitmq client versions. Then I tried it with
>>>> a rabbitmq server instead of a activemq server and it works fine. I wonder
>>>> whether activemq needs a linux library to communicate.
>>>>
>>>> Activemq server versions used which does not connects: 5.4.2 / 5.10.0
>>>> Rabitmq version used: 3.3.5
>>>>
>>>> rabitmq sample client code
>>>>
>>>> import com.rabbitmq.client.ConnectionFactory;
>>>> import com.rabbitmq.client.Connection;
>>>> import com.rabbitmq.client.Channel;
>>>>
>>>> public class Cache {
>>>> private final static String QUEUE_NAME = "hello";
>>>>
>>>> public static void main(String[] argv)
>>>> throws java.io.IOException {
>>>>
>>>> //creating the connection factory
>>>> ConnectionFactory factory = new ConnectionFactory();
>>>> factory.setHost("localhost");
>>>>
>>>> //Creating a connection to the server
>>>> Connection connection = factory.newConnection();
>>>> Channel channel = connection.createChannel();
>>>>
>>>> //declaring a queuw
>>>> channel.queueDeclare(QUEUE_NAME, false, false, false, null);
>>>> String message = "Hello World!";
>>>>
>>>> //publishing the queue the queue
>>>> channel.basicPublish("", QUEUE_NAME, null, message.getBytes());
>>>> System.out.println(" [x] Sent '" + message + "'");
>>>>
>>>> //closing the connection
>>>> channel.close();
>>>> connection.close();
>>>> }
>>>> }
>>>>
>>>>
>>>> Fails in the following line of code
>>>>//Creating a connection to the server
>>>> Connection connection = factory.newConnection();
>>>>
>>>> Thanks
>>>>
>>>> Prasanna Dangalla
>>>> Software Engineer, WSO2, Inc.; http://wso2.com/
>>>> lean.enterprise.middleware
>>>>
>>>> cell: +94 777 55 80 30 | +94 718 11 27 51
>>>> twitter: @prasa77
>>>>
>>>
>>>
>>>
>>> --
>>> Prasanna Dangalla
>>> Software Engineer, WSO2, Inc.; http://wso2.com/
>>> lean.enterprise.middleware
>>>
>>> cell: +94 777 55 80 30 | +94 718 11 27 51
>>> twitter: @prasa77
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Prasanna Dangalla
> Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
> cell: +94 777 55 80 30 | +94 718 11 27 51
> twitter: @prasa77
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Amqp not client now connecting to activemq

2014-10-17 Thread Waruna Perera
Hi Prasanna,

Did you put any client libraries of activemq server in side amqp cleint
class path?

Thanks

On Fri, Oct 17, 2014 at 2:45 PM, Prasanna Dangalla 
wrote:

> Sorry the $subject should be as follows
> Amqp client not connecting to activemq server.
>
>
> On Fri, Oct 17, 2014 at 2:31 PM, Prasanna Dangalla 
> wrote:
>
>> Hi,
>>
>> I'm trying connect from a amqp client to a aqtivemq server with default
>> settings to test cache Invalidation in greg. It always gives the error
>> message saying connection refused, I wrote a sample client using the
>> rabbitmq client library. It to doesn't work with activemq server too. But
>> it works in AmalG's lap. Both laps having the same ubuntu versions,
>> activemq server versions and rabbitmq client versions. Then I tried it with
>> a rabbitmq server instead of a activemq server and it works fine. I wonder
>> whether activemq needs a linux library to communicate.
>>
>> Activemq server versions used which does not connects: 5.4.2 / 5.10.0
>> Rabitmq version used: 3.3.5
>>
>> rabitmq sample client code
>>
>> import com.rabbitmq.client.ConnectionFactory;
>> import com.rabbitmq.client.Connection;
>> import com.rabbitmq.client.Channel;
>>
>> public class Cache {
>> private final static String QUEUE_NAME = "hello";
>>
>> public static void main(String[] argv)
>> throws java.io.IOException {
>>
>> //creating the connection factory
>> ConnectionFactory factory = new ConnectionFactory();
>> factory.setHost("localhost");
>>
>> //Creating a connection to the server
>> Connection connection = factory.newConnection();
>> Channel channel = connection.createChannel();
>>
>> //declaring a queuw
>> channel.queueDeclare(QUEUE_NAME, false, false, false, null);
>> String message = "Hello World!";
>>
>> //publishing the queue the queue
>> channel.basicPublish("", QUEUE_NAME, null, message.getBytes());
>> System.out.println(" [x] Sent '" + message + "'");
>>
>> //closing the connection
>> channel.close();
>> connection.close();
>> }
>> }
>>
>>
>> Fails in the following line of code
>>//Creating a connection to the server
>> Connection connection = factory.newConnection();
>>
>> Thanks
>>
>> Prasanna Dangalla
>> Software Engineer, WSO2, Inc.; http://wso2.com/
>> lean.enterprise.middleware
>>
>> cell: +94 777 55 80 30 | +94 718 11 27 51
>> twitter: @prasa77
>>
>
>
>
> --
> Prasanna Dangalla
> Software Engineer, WSO2, Inc.; http://wso2.com/
> lean.enterprise.middleware
>
> cell: +94 777 55 80 30 | +94 718 11 27 51
> twitter: @prasa77
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while accessing ProvisioningAdminService

2014-10-14 Thread Waruna Perera
Hi Aruna,

Yes. What i did was to set session  management in soapui test case.

Thanks

On Tue, Oct 14, 2014 at 5:34 PM, Aruna Karunarathna  wrote:

> Hi Waruna,
>
> Did you manage to resolve the issue with session cookie?
>
> Regards,
> Aruna
>
> On Tue, Oct 14, 2014 at 4:52 PM, Waruna Perera  wrote:
>
>> Hi All,
>>
>> After offline discussion with Sameera  I found out that error was due to
>> not sending the session cookie with the 2nd request.
>>
>> On Mon, Oct 13, 2014 at 3:22 PM, Waruna Perera  wrote:
>>
>>> Hi,
>>>
>>> I am trying to install feature via ProvisioningAdminService using soapui
>>> requests. I Followed following steps.
>>>
>>> 1) Add feature repo via RepositoryAdminService - SUCCESSFUL
>>> 2) reviewProvisioningAction
>>> 3) performProvisioning Action
>>>
>>> In the step 3 it gives following error. What can be the error here?
>>>
>>> ERROR - ProvisioningAdminService Error occurred while performing
>>> provisioning action
>>> org.apache.axis2.AxisFault: Error occurred while performing provisioning
>>> action
>>> at
>>> org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.handleException(ProvisioningAdminService.java:386)
>>> at
>>> org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.performProvisioningAction(ProvisioningAdminService.java:281)
>>> 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
>>> at
>>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
>>> at
>>> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
>>> at
>>> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> at
>>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
>>> at
>>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
>>> at
>>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
>>> at
>>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at
>>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(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.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
>>> at
>>> org.w

Re: [Dev] Error while accessing ProvisioningAdminService

2014-10-14 Thread Waruna Perera
Hi All,

After offline discussion with Sameera  I found out that error was due to
not sending the session cookie with the 2nd request.

On Mon, Oct 13, 2014 at 3:22 PM, Waruna Perera  wrote:

> Hi,
>
> I am trying to install feature via ProvisioningAdminService using soapui
> requests. I Followed following steps.
>
> 1) Add feature repo via RepositoryAdminService - SUCCESSFUL
> 2) reviewProvisioningAction
> 3) performProvisioning Action
>
> In the step 3 it gives following error. What can be the error here?
>
> ERROR - ProvisioningAdminService Error occurred while performing
> provisioning action
> org.apache.axis2.AxisFault: Error occurred while performing provisioning
> action
> at
> org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.handleException(ProvisioningAdminService.java:386)
> at
> org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.performProvisioningAction(ProvisioningAdminService.java:281)
> 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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
> at
> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at
> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(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.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
> 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.runWorker(ThreadPoolExecutor.java:1145)
> at
> jav

[Dev] Error while accessing ProvisioningAdminService

2014-10-13 Thread Waruna Perera
Hi,

I am trying to install feature via ProvisioningAdminService using soapui
requests. I Followed following steps.

1) Add feature repo via RepositoryAdminService - SUCCESSFUL
2) reviewProvisioningAction
3) performProvisioning Action

In the step 3 it gives following error. What can be the error here?

ERROR - ProvisioningAdminService Error occurred while performing
provisioning action
org.apache.axis2.AxisFault: Error occurred while performing provisioning
action
at
org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.handleException(ProvisioningAdminService.java:386)
at
org.wso2.carbon.feature.mgt.services.prov.ProvisioningAdminService.performProvisioningAction(ProvisioningAdminService.java:281)
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.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(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.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49)
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.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
-- 

Thanks,

Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the standard way of handling exceptions

2014-10-09 Thread Waruna Perera
Hi Danesh,

In integration tests we used to log the exception and throw it. The reason
is the result will be included in the testng reports.

Thanks

On Wed, Oct 8, 2014 at 9:24 AM, Danesh Kuruppu  wrote:

> One more question, why we do both log exception and throw it inside
> handleException?. It will result in multiple log messages in log file, for
> a single problem in the code.
>
> On Thu, Oct 2, 2014 at 9:32 AM, Dinesh J Weerakkody 
> wrote:
>
>> Hi,
>>
>> I'm just curious about the stranded way of handling exceptions in WSO2
>> products. When I go through source code, I found that we use
>> handleException method in some places (in some places use deferent method
>> such as create new exceptions, catch, log and ignore, etc.) Can someone
>> explain the standard exception handling mechanism in WSO2 products and it
>> will be very helpful for newcomers also. (use cases for each case like when
>> to use what method).
>>
>>
>> When it comes to handleException method, I have another question.
>>
>>
>> *Current handle exception method*
>> public void handleException(String msg, Exception e) throws
>> ProductException{
>> log.error(msg, e);
>> throw new ProductException(msg, e);
>> }
>>
>> *Problem*
>> class One{
>> public void methodOne() {
>> try {
>> Two two = new Two();
>> two.methodTwo();
>> } catch (WhateverException e) {
>> handleException("Whatever exception message", e);
>> }
>> }
>> }
>>
>> class Two{
>> public void methodTwo() {
>> try {
>> // Database manipulation code goes here
>> } catch (SQLException e) {
>> handleException("Cannot complete the transaction", e);
>> }
>> }
>> }
>>
>> In handleException method we always create a new Exception. When we have
>> multiple method calls, there will be duplicate stacktraces and the actual
>> exception is printed in very latter part of the stack trace. Sometimes it
>> is bit difficult to trace an error. Is there any specific reason to create
>> new exceptions inside handleException method, instead of throwing same
>> exception object if the exceptions is an instance of ProductException like
>> below sample.
>>
>> public void handleException(String msg, Exception e) throws
>> ProductException{
>> log.error(msg, e);
>> if(e instanceof ProductException)
>>throw e;
>> throw new ProductException(msg, e);
>> }
>>
>> Thank you.
>>
>>
>> --
>>
>> *Dinesh J. Weerakkody*
>> Software Engineer
>> WSO2 Inc.
>> lean | enterprise | middleware
>> M : +94 727 361788 | E : dine...@wso2.com | W : www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Danesh Kuruppu
> Software Engineer
> WSO2 Inc,
> Mobile: +94 (77) 1690552
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
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 get WSO2 Carbon Log to UI?

2014-10-09 Thread Waruna Perera
Hi jerad,

Here is an example logviewerclient.

[1]
https://github.com/wso2-dev/carbon-platform-integration-utils/blob/master/common-admin-clients/src/main/java/org/wso2/carbon/integration/common/admin/client/LogViewerClient.java

On Thu, Oct 9, 2014 at 1:10 PM, KasunG Gajasinghe  wrote:

>
> For Carbon, you can use the LogViewer admin service to get the system
> logs. It uses the log4j memory appender to get the logs.
>
> On Thu, Oct 9, 2014 at 9:10 AM, Jerad Rutnam  wrote:
>
>> Hi,
>>
>> Do anyone know how to get wso2 carbon info log to front-end using
>> jaggery? I want to get Startos back-end log to the UI.
>>
>> Regards,
>> --
>> *Jerad Rutnam | **Software Engineer - UI*
>> WSO2, Inc. www.wso2.com
>>
>> *Email: je...@wso2.com *
>>
>> ___
>> 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
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MB cluster integration tests

2014-09-30 Thread Waruna Perera
Hi Krishantha,

I will arrange that.

Thanks,

On Wed, Oct 1, 2014 at 12:00 PM, Dharshana Warusavitharana <
dharsha...@wso2.com> wrote:

> Hi All,
>
> Please merge the pull request to wso2-dev on MB. This contains the cluster
> test module and supporting common classes for the test module.
>
> [1]. https://github.com/wso2-dev/product-mb/pull/43
>
> Thank you,
> Dharshana.
>
> On Wed, Oct 1, 2014 at 11:49 AM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Thanks Waruna.
>>
>> Shall we do code review with MB team to see whether we cater their
>> requirements.
>>
>> @Dharshana - Can you please arrange this.
>>
>> Thanks,
>> Krishantha.
>>
>> On Tue, Sep 30, 2014 at 8:28 PM, Waruna Perera  wrote:
>>
>>> Hi,
>>>
>>> We have created initial test cases for $subject. We have created
>>> separate module for cluster tests *(tests-platform). *This module won't
>>> start the MB pack as compared to standalone tests and only create needed
>>> context objects.  You have to mention nodes of the cluster in the
>>> automation.xml.  You can access random instance and continue writing test
>>> cases. We have provided few utility methods and admin clients to test
>>> topics and queues. Code is available in git and we will send the pull
>>> request.
>>>
>>> Thanks
>>>
>>> [1] https://github.com/dharshanaw/product-mb.git
>>>
>>> --
>>> Waruna Perera
>>> Senior Software Engineer - Test Automation
>>> Mobile: +94 77 3867037
>>> 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.
>>
>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : dharsha...@wso2.com 
> Tel  : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94770342233
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] MB cluster integration tests

2014-09-30 Thread Waruna Perera
Hi,

We have created initial test cases for $subject. We have created separate
module for cluster tests *(tests-platform). *This module won't start the MB
pack as compared to standalone tests and only create needed context
objects.  You have to mention nodes of the cluster in the automation.xml.
You can access random instance and continue writing test cases. We have
provided few utility methods and admin clients to test topics and queues.
Code is available in git and we will send the pull request.

Thanks

[1] https://github.com/dharshanaw/product-mb.git

--
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] MB clustering test cases

2014-09-25 Thread Waruna Perera
Hi,

To do $subject I have provided with 2 nodes of MB and 2 nodes with
cassandra profiles. Dont we need MB with zookeepre profile here?

Thanks

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Cassandra configs for MB cluster

2014-09-25 Thread Waruna Perera
Hi,

I am trying to get simple test case up and running with MB cluster which I
have been provided with. Can you tell me where I should configure Cassandra
related properties in MB?

Thanks

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APIM] writing automation tests for APIM

2014-09-21 Thread Waruna Perera
Hi,

I have finished writing automated test cases for publisher and store except
for secure end point configurations. I have updated the test plan doc and
following are the pending issues. I have updated the test cases where UI
tests needed.

[1] https://wso2.org/jira/browse/APIMANAGER-2458
<https://www.google.com/url?q=https://wso2.org/jira/browse/APIMANAGER-2458&sa=D&usg=ALhdy2_v7zb3HCEWFKVt6hn3adcnkgVdSA>
[2] https://wso2.org/jira/browse/APIMANAGER-2124
[3] https://wso2.org/jira/browse/APIMANAGER-2835
<https://www.google.com/url?q=https://wso2.org/jira/browse/APIMANAGER-2835&sa=D&usg=ALhdy2-cXRekyqjYXj7SJIMNhQi0s_3p7A>

Thanks,



On Tue, Sep 16, 2014 at 12:03 PM, Waruna Perera  wrote:

> Hi,
>
> I will close the duplicate issue.
>
> Thanks
>
> On Tue, Sep 16, 2014 at 11:49 AM, Nuwan Dias  wrote:
>
>> This is a duplicate of [1]? This has been fixed in 1.8.0 (RC packs).
>>
>> [1] - https://wso2.org/jira/browse/APIMANAGER-2765
>>
>> Thanks,
>> NuwanD.
>>
>> On Tue, Sep 16, 2014 at 11:11 AM, Waruna Perera  wrote:
>>
>>> Hi,
>>>
>>> Issue logged for for *"APIM does not return correct error when adding
>>> document with duplicate name to a API".*
>>>
>>> [1] https://wso2.org/jira/browse/APIMANAGER-2874
>>>
>>> On Wed, Sep 10, 2014 at 10:51 PM, Sanjeewa Malalgoda 
>>> wrote:
>>>
>>>> Hi Waruna,
>>>> In UI we first call host object isContextExist method and then validate
>>>> it before add API. That is why you dont get this error in UI. AFAIR there
>>>> is no rest API to check context existence. Its API developers
>>>> responsibility to check this first. But still we need to have same check in
>>>> add API method as well. So we might need to add this check in add API
>>>> method(to work rest call properly).
>>>>
>>>> Thanks,
>>>> sanjeewa.
>>>>
>>>> On Wed, Sep 10, 2014 at 2:11 AM, Waruna Perera 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Issue logged in JIRA related to automation test case.
>>>>>
>>>>> [1] https://wso2.org/jira/browse/APIMANAGER-2835
>>>>>
>>>>> On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera 
>>>>> wrote:
>>>>>
>>>>>> Hi Sanjeewa,
>>>>>>
>>>>>> Noted. I will update the thread as we move forward about the API
>>>>>> calls which we will think of useful to have.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>> On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda <
>>>>>> sanje...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Waruna,
>>>>>>>
>>>>>>>
>>>>>>> On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Amalka and me started doing above $subject by following[1]. When
>>>>>>>> following some of the test cases available we found that API calls in
>>>>>>>> publisher[2] and store are limited. The search API functions are 
>>>>>>>> covered by
>>>>>>>> calling host objects. I have few questions regarding that.
>>>>>>>>
>>>>>>>> Do we have a plan to provide other API calls in publisher and store?
>>>>>>>>
>>>>>>> I assume here you are talking about rest APIs that we documented.
>>>>>>> For the moment most of required operations are exposed as rest APIs. But
>>>>>>> still there are missing parts. In such cases  we can deploy simple jag 
>>>>>>> file
>>>>>>> in the server and call to host object. If you looked at 
>>>>>>> HostObjectTestCase,
>>>>>>> you will see how we tested host object operations that did not exposed 
>>>>>>> as
>>>>>>> rest APIs. Please refer java test cases available in product.
>>>>>>>
>>>>>>> Do we need uniformity with test cases? (some via API calls and
>>>>>>>> others with direct host object calls)
>>>>>>>>
>>>>>>> IMO there is no such requirement. We cant test all scenarios in

Re: [Dev] Get created API list without login in APIM

2014-09-17 Thread Waruna Perera
Will try that.

Thanks!

On Thu, Sep 18, 2014 at 11:23 AM, Sanjeewa Malalgoda 
wrote:

> Please have a look at HostObjectTestCase test case written sometimes back.
> In that test case i deployed 2 jaggery files in server side and fetch data
> without logged-in user session. We should not expose these as rest APIs
> IMO. But jaggery app deployed in server side can call to host objects
> directly.
>
> Thanks,
> sanjeewa.
>
> On Wed, Sep 17, 2014 at 10:34 PM, Waruna Perera  wrote:
>
>> Hi,
>>
>> My use case is different here. We need to write automation test cases to
>> for check what user with out login can view in publisher/store. In simple
>> terms I need to access those views anonymously.
>>
>> Thanks!
>>
>> On Thu, Sep 18, 2014 at 10:58 AM, Udara Rathnayake 
>> wrote:
>>
>>> Hi Waruna,
>>>
>>> Anything blocking you to use login API first and use the generated
>>> cookie to invoke other APIS?
>>>
>>> On Wed, Sep 17, 2014 at 10:03 PM, Waruna Perera 
>>> wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> I am writing automation test cases for APIM. There are lot of cases
>>>> that you need to get published API info with out login to the
>>>> publisher/store vi rest client. I coudnot find a REST API call or
>>>> hostobject call to get this info with out login. Any idea on how to achieve
>>>> this?
>>>>
>>>> Thanks,
>>>>
>>>> --
>>>> Waruna Perera
>>>> Senior Software Engineer - Test Automation
>>>> Mobile: +94 77 3867037
>>>> WSO2, Inc.; http://wso2.com/
>>>> lean . enterprise . middlewear.
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Udara Rathnayake*
>>> Software Engineer
>>> WSO2 Inc. : http://wso2.com
>>>
>>> Mobile : 1 4087864651
>>> Twitter : http://twitter.com/udarakr
>>> Blog: http://udarakr.blogspot.com
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  <http://sanjeewamalalgoda.blogspot.com/>blog
> :http://sanjeewamalalgoda.blogspot.com/
> <http://sanjeewamalalgoda.blogspot.com/>
>
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get created API list without login in APIM

2014-09-17 Thread Waruna Perera
Hi,

My use case is different here. We need to write automation test cases to
for check what user with out login can view in publisher/store. In simple
terms I need to access those views anonymously.

Thanks!

On Thu, Sep 18, 2014 at 10:58 AM, Udara Rathnayake  wrote:

> Hi Waruna,
>
> Anything blocking you to use login API first and use the generated cookie
> to invoke other APIS?
>
> On Wed, Sep 17, 2014 at 10:03 PM, Waruna Perera  wrote:
>
>>
>> Hi,
>>
>> I am writing automation test cases for APIM. There are lot of cases that
>> you need to get published API info with out login to the publisher/store vi
>> rest client. I coudnot find a REST API call or hostobject call to get this
>> info with out login. Any idea on how to achieve this?
>>
>> Thanks,
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : 1 4087864651
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Get created API list without login in APIM

2014-09-17 Thread Waruna Perera
Hi,

I am writing automation test cases for APIM. There are lot of cases that
you need to get published API info with out login to the publisher/store vi
rest client. I coudnot find a REST API call or hostobject call to get this
info with out login. Any idea on how to achieve this?

Thanks,

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APIM] writing automation tests for APIM

2014-09-17 Thread Waruna Perera
Hi,

I will close the duplicate issue.

Thanks

On Tue, Sep 16, 2014 at 11:49 AM, Nuwan Dias  wrote:

> This is a duplicate of [1]? This has been fixed in 1.8.0 (RC packs).
>
> [1] - https://wso2.org/jira/browse/APIMANAGER-2765
>
> Thanks,
> NuwanD.
>
> On Tue, Sep 16, 2014 at 11:11 AM, Waruna Perera  wrote:
>
>> Hi,
>>
>> Issue logged for for *"APIM does not return correct error when adding
>> document with duplicate name to a API".*
>>
>> [1] https://wso2.org/jira/browse/APIMANAGER-2874
>>
>> On Wed, Sep 10, 2014 at 10:51 PM, Sanjeewa Malalgoda 
>> wrote:
>>
>>> Hi Waruna,
>>> In UI we first call host object isContextExist method and then validate
>>> it before add API. That is why you dont get this error in UI. AFAIR there
>>> is no rest API to check context existence. Its API developers
>>> responsibility to check this first. But still we need to have same check in
>>> add API method as well. So we might need to add this check in add API
>>> method(to work rest call properly).
>>>
>>> Thanks,
>>> sanjeewa.
>>>
>>> On Wed, Sep 10, 2014 at 2:11 AM, Waruna Perera  wrote:
>>>
>>>> Hi,
>>>>
>>>> Issue logged in JIRA related to automation test case.
>>>>
>>>> [1] https://wso2.org/jira/browse/APIMANAGER-2835
>>>>
>>>> On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera 
>>>> wrote:
>>>>
>>>>> Hi Sanjeewa,
>>>>>
>>>>> Noted. I will update the thread as we move forward about the API calls
>>>>> which we will think of useful to have.
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>> On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda >>>> > wrote:
>>>>>
>>>>>> Hi Waruna,
>>>>>>
>>>>>>
>>>>>> On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Amalka and me started doing above $subject by following[1]. When
>>>>>>> following some of the test cases available we found that API calls in
>>>>>>> publisher[2] and store are limited. The search API functions are 
>>>>>>> covered by
>>>>>>> calling host objects. I have few questions regarding that.
>>>>>>>
>>>>>>> Do we have a plan to provide other API calls in publisher and store?
>>>>>>>
>>>>>> I assume here you are talking about rest APIs that we documented. For
>>>>>> the moment most of required operations are exposed as rest APIs. But 
>>>>>> still
>>>>>> there are missing parts. In such cases  we can deploy simple jag file in
>>>>>> the server and call to host object. If you looked at HostObjectTestCase,
>>>>>> you will see how we tested host object operations that did not exposed as
>>>>>> rest APIs. Please refer java test cases available in product.
>>>>>>
>>>>>> Do we need uniformity with test cases? (some via API calls and others
>>>>>>> with direct host object calls)
>>>>>>>
>>>>>> IMO there is no such requirement. We cant test all scenarios in the
>>>>>> same way. Important thing is cover use cases as much as possible.
>>>>>>
>>>>>> Thanks,
>>>>>> sanjeewa.
>>>>>>
>>>>>>>
>>>>>>> [1]
>>>>>>> https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWc&usp
>>>>>>>
>>>>>>> [2] https://docs.wso2.com/display/AM170/Publisher+APIs
>>>>>>>
>>>>>>> --
>>>>>>> Waruna Perera
>>>>>>> Senior Software Engineer - Test Automation
>>>>>>> Mobile: +94 77 3867037
>>>>>>> WSO2, Inc.; http://wso2.com/
>>>>>>> lean . enterprise . middlewear.
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> *Sanjeewa Malalgoda*
>>>>>> WSO2 Inc.
>>>>>> Mobile : +94713068779
>>>>>>
>>>>>>  <http://sanjeewamalalgoda.blogspot.com/>blog
>>>>>> :http://sanjeewamalalgoda.blogspot.com/
>>>>>> <http://sanjeewamalalgoda.blogspot.com/>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Waruna Perera
>>>>> Senior Software Engineer - Test Automation
>>>>> Mobile: +94 77 3867037
>>>>> WSO2, Inc.; http://wso2.com/
>>>>> lean . enterprise . middlewear.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Waruna Perera
>>>> Senior Software Engineer - Test Automation
>>>> Mobile: +94 77 3867037
>>>> WSO2, Inc.; http://wso2.com/
>>>> lean . enterprise . middlewear.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Sanjeewa Malalgoda*
>>> WSO2 Inc.
>>> Mobile : +94713068779
>>>
>>>  <http://sanjeewamalalgoda.blogspot.com/>blog
>>> :http://sanjeewamalalgoda.blogspot.com/
>>> <http://sanjeewamalalgoda.blogspot.com/>
>>>
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APIM] writing automation tests for APIM

2014-09-16 Thread Waruna Perera
Hi,

Issue logged for for *"APIM does not return correct error when adding
document with duplicate name to a API".*

[1] https://wso2.org/jira/browse/APIMANAGER-2874

On Wed, Sep 10, 2014 at 10:51 PM, Sanjeewa Malalgoda 
wrote:

> Hi Waruna,
> In UI we first call host object isContextExist method and then validate it
> before add API. That is why you dont get this error in UI. AFAIR there is
> no rest API to check context existence. Its API developers responsibility
> to check this first. But still we need to have same check in add API method
> as well. So we might need to add this check in add API method(to work rest
> call properly).
>
> Thanks,
> sanjeewa.
>
> On Wed, Sep 10, 2014 at 2:11 AM, Waruna Perera  wrote:
>
>> Hi,
>>
>> Issue logged in JIRA related to automation test case.
>>
>> [1] https://wso2.org/jira/browse/APIMANAGER-2835
>>
>> On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera  wrote:
>>
>>> Hi Sanjeewa,
>>>
>>> Noted. I will update the thread as we move forward about the API calls
>>> which we will think of useful to have.
>>>
>>> Thanks
>>>
>>>
>>> On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda 
>>> wrote:
>>>
>>>> Hi Waruna,
>>>>
>>>>
>>>> On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera  wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Amalka and me started doing above $subject by following[1]. When
>>>>> following some of the test cases available we found that API calls in
>>>>> publisher[2] and store are limited. The search API functions are covered 
>>>>> by
>>>>> calling host objects. I have few questions regarding that.
>>>>>
>>>>> Do we have a plan to provide other API calls in publisher and store?
>>>>>
>>>> I assume here you are talking about rest APIs that we documented. For
>>>> the moment most of required operations are exposed as rest APIs. But still
>>>> there are missing parts. In such cases  we can deploy simple jag file in
>>>> the server and call to host object. If you looked at HostObjectTestCase,
>>>> you will see how we tested host object operations that did not exposed as
>>>> rest APIs. Please refer java test cases available in product.
>>>>
>>>> Do we need uniformity with test cases? (some via API calls and others
>>>>> with direct host object calls)
>>>>>
>>>> IMO there is no such requirement. We cant test all scenarios in the
>>>> same way. Important thing is cover use cases as much as possible.
>>>>
>>>> Thanks,
>>>> sanjeewa.
>>>>
>>>>>
>>>>> [1]
>>>>> https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWc&usp
>>>>>
>>>>> [2] https://docs.wso2.com/display/AM170/Publisher+APIs
>>>>>
>>>>> --
>>>>> Waruna Perera
>>>>> Senior Software Engineer - Test Automation
>>>>> Mobile: +94 77 3867037
>>>>> WSO2, Inc.; http://wso2.com/
>>>>> lean . enterprise . middlewear.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Sanjeewa Malalgoda*
>>>> WSO2 Inc.
>>>> Mobile : +94713068779
>>>>
>>>>  <http://sanjeewamalalgoda.blogspot.com/>blog
>>>> :http://sanjeewamalalgoda.blogspot.com/
>>>> <http://sanjeewamalalgoda.blogspot.com/>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Waruna Perera
>>> Senior Software Engineer - Test Automation
>>> Mobile: +94 77 3867037
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  <http://sanjeewamalalgoda.blogspot.com/>blog
> :http://sanjeewamalalgoda.blogspot.com/
> <http://sanjeewamalalgoda.blogspot.com/>
>
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Test case error on esb connectors

2014-09-11 Thread Waruna Perera
Hi,

Can you share the test case code?

On Fri, Sep 12, 2014 at 11:54 AM, Elilmatha Sivanesan 
wrote:

>
> When we run our test case we get this error
> What can be the reasons
>
> [2014-09-12 11:44:23,552] ERROR
> {org.wso2.carbon.automation.core.PlatformTestManager} -  On Test failure..
> [2014-09-12 11:44:23,552] ERROR
> {org.wso2.carbon.automation.core.PlatformTestManager} -
>  java.net.SocketException: Unexpected end of file from server
> [2014-09-12 11:44:23,552]  INFO
> {org.wso2.carbon.automation.core.PlatformTestManager} -
>  --Tests Failed
> org.wso2.carbon.connector.integration.test.event_brite.eventbriteConnectorIntegrationTest.testgetuserdetails
> FAILED: testgetuserdetails
> event_brite{getuserdetails} integration test with negative case.
> java.net.SocketException: Unexpected end of file from server
> at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:718)
> at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
> at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:715)
> at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
> at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322)
> at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
> at
> java.net.HttpURLConnection.getResponseMessage(HttpURLConnection.java:534)
> at
> org.wso2.carbon.connector.integration.test.common.ConnectorIntegrationUtil.sendRequest(ConnectorIntegrationUtil.java:140)
> at
> org.wso2.carbon.connector.integration.test.event_brite.eventbriteConnectorIntegrationTest.testgetuserdetails(eventbriteConnectorIntegrationTest.java:118)
> 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:80)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:673)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
> at
> org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
> at org.testng.TestRunner.runWorkers(TestRunner.java:1178)
> at org.testng.TestRunner.privateRun(TestRunner.java:757)
> at org.testng.TestRunner.run(TestRunner.java:608)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
> at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
> at org.testng.SuiteRunner.run(SuiteRunner.java:240)
> at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)
> at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)
> at org.testng.TestNG.run(TestNG.java:999)
> at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:178)
> at
> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> at
> org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:96)
> 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.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)
> --
> *S.Elilmatha*
> Associative Software Engineer,
>
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> Mobile 0779842221.
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Unable to regenerate access token in APIM

2014-09-11 Thread Waruna Perera
HI,

I came across $subject in APIM 1.7.0 pack. There is a public JIRA [1] for
this and it states that the issue has been fixed. It still seems like issue
still exist as some more comments have added complaining of it. Can I know
the status of it? Should we reopen the issue?

[1] https://wso2.org/jira/browse/APIMANAGER-2290
-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM] getExternalAPIStores method no longer available in publisher host object

2014-09-10 Thread Waruna Perera
Hi,

When I ran the APIM test cases , some methods in APIProviderHostObject.java
are changed and
jsFunction_getExternalAPIStores method is commented out in 1.2.2 code path
hence there are test failures. Can i Know the reason for commenting out
above method?

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.hostobjects/1.2.2/src/main/java/org/wso2/carbon/apimgt/hostobjects/APIProviderHostObject.java
-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APIM] writing automation tests for APIM

2014-09-10 Thread Waruna Perera
Hi,

Issue logged in JIRA related to automation test case.

[1] https://wso2.org/jira/browse/APIMANAGER-2835

On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera  wrote:

> Hi Sanjeewa,
>
> Noted. I will update the thread as we move forward about the API calls
> which we will think of useful to have.
>
> Thanks
>
>
> On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda 
> wrote:
>
>> Hi Waruna,
>>
>>
>> On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera  wrote:
>>
>>> Hi,
>>>
>>> Amalka and me started doing above $subject by following[1]. When
>>> following some of the test cases available we found that API calls in
>>> publisher[2] and store are limited. The search API functions are covered by
>>> calling host objects. I have few questions regarding that.
>>>
>>> Do we have a plan to provide other API calls in publisher and store?
>>>
>> I assume here you are talking about rest APIs that we documented. For the
>> moment most of required operations are exposed as rest APIs. But still
>> there are missing parts. In such cases  we can deploy simple jag file in
>> the server and call to host object. If you looked at HostObjectTestCase,
>> you will see how we tested host object operations that did not exposed as
>> rest APIs. Please refer java test cases available in product.
>>
>> Do we need uniformity with test cases? (some via API calls and others
>>> with direct host object calls)
>>>
>> IMO there is no such requirement. We cant test all scenarios in the same
>> way. Important thing is cover use cases as much as possible.
>>
>> Thanks,
>> sanjeewa.
>>
>>>
>>> [1]
>>> https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWc&usp
>>>
>>> [2] https://docs.wso2.com/display/AM170/Publisher+APIs
>>>
>>> --
>>> Waruna Perera
>>> Senior Software Engineer - Test Automation
>>> Mobile: +94 77 3867037
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>>
>> *Sanjeewa Malalgoda*
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>>  <http://sanjeewamalalgoda.blogspot.com/>blog
>> :http://sanjeewamalalgoda.blogspot.com/
>> <http://sanjeewamalalgoda.blogspot.com/>
>>
>>
>>
>
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM][Publisher REST API] copy API rest call should be updated in the docs

2014-09-09 Thread Waruna Perera
Hi,

I tried to invoke API manager REST publisher API via in a test case to copy
API to new version and failed[1]. There is a additional parameter added in
1.2.2 code path to check whether the newly created version is default
version or not. So doc should be updated as follows.

curl -X POST -b cookies
http://localhost:9763/publisher/site/blocks/overview/ajax/overview.jag -d
"action=createNewAPI&provider=user1&apiName=API1&version=1.0.0&newVersion=2.0.0
*&isDefaultVersion=default_version*”

[1]
https://docs.wso2.com/display/AM170/Publisher+APIs#PublisherAPIs-CopyanAPI

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while building the SAML testcase in WSO2 EAM

2014-09-05 Thread Waruna Perera
Hi,

This sets the trust store in client. Set it to your paths

System.setProperty("javax.net.ssl.trustStore",
"/home/waruna/Products/wso2is-4.7.0/repository/resources/security/wso2carbon.jks");
System.setProperty("javax.net.ssl.trustStorePassword",
"wso2carbon");
System.setProperty("javax.net.ssl.trustStoreType", "JKS");


On Fri, Sep 5, 2014 at 1:45 PM, Waruna Perera  wrote:

> HI,
>
>
> Can you try adding following code segment and try.
>
>
>
> On Fri, Sep 5, 2014 at 1:43 PM, Kasun Dissanayake  wrote:
>
>> Hi Waruna,
>>
>> @Test(groups = { "wso2.appmanager" }, description = "test SAML tokens
>> send to the backend")
>> public void samlToBackendTestCase() throws Exception {
>>
>> String appId = "";
>> // publisher creates an app
>> String username = userInfo.getUserName();
>> String password = userInfo.getPassword();
>> appmPublisher.login(username, password);
>>
>> AppCreateRequest appRequest = new AppCreateRequest();
>>
>> int port = 9988; // used to create a wiremonitor server and get
>> the
>> // requst
>> String webappUrl = "http://localhost:"; + port;
>> String appName = "samltestapp";
>> String version = "1.0.0";
>>
>> appRequest.setOverview_webAppUrl(webappUrl);
>> appRequest.setOverview_transports("https");
>> appRequest.setOverview_name(appName);
>> appRequest.setOverview_version(version);
>> appRequest.setOverview_context("/" + appName);
>> appRequest.setEntitlementPolicies("[]");
>>
>> // for IS autoconfig to get SSO feature
>> appRequest.setAutoConfig("on");
>> appRequest.setProviders("wso2is-5.0.0");
>> appRequest.setSso_ssoProvider("wso2is-5.0.0");
>> appRequest.setSso_singleSignOn("Enabled");
>> appRequest.setClaims("http://wso2.org/claims/role";);
>> appRequest.setClaimPropertyCounter("1");
>> appRequest.setSso_idpProviderUrl("https://localhost:9443/samlsso/
>> ");
>>
>> log.info("Waiting for the test application to be
>> created..");
>> HttpResponse response = appmPublisher.createApp(appRequest);
>> JSONObject jsonObject = new JSONObject(response.getData());
>> appId = (String) jsonObject.get("id");
>>
>>
>> try {
>> Thread.sleep(4000);
>> } catch (InterruptedException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> }
>> log.info("Publishing the test
>> application..");
>> appmPublisher.publishApp(appId);
>> try {
>> Thread.sleep(1);
>> } catch (InterruptedException e) {
>> // TODO Auto-generated catch block
>> e.printStackTrace();
>> }
>>
>> // client subscribe to that app
>> log.info("Subscribe to the test
>> application..");
>> appmStore.login(username, password);
>> // try {
>> // Thread.sleep(5000);
>> // } catch (InterruptedException e) {
>> // // TODO Auto-generated catch block
>> // e.printStackTrace();
>> // }
>>
>> SubscriptionRequest subscriptionRequest = new SubscriptionRequest(
>> appName, username, version);
>> HttpResponse subscriptionResponse = appmStore
>> .subscribeForApplication(subscriptionRequest);
>> Thread.sleep(2);
>> // Assert.assertTrue((Boolean)
>> subscriptionJsonObject.get("status"),
>> // "Application is already subscribed");
>>
>> // do the selenium login and app selection
>> //FirefoxDriver driver = new FirefoxDriver();
>> log.info("sso profiver--
>> +"+appRequest.getSso_ssoProvider());
>> // wire monitor server to get the request from the appmanager
>> WireMonitorServer server = new WireMonitorServer(port);
>> server.start();
>>
>>
>> driver = BrowserManager.getWebDriver();
>> APPMStoreUIClient.login(driver, storeURLHttp, username, pas

Re: [Dev] Error while building the SAML testcase in WSO2 EAM

2014-09-05 Thread Waruna Perera
Hi,

Use the trust store in IS which is within your pack.


On Fri, Sep 5, 2014 at 1:51 PM, Kasun Dissanayake  wrote:

> Hi waruna,
>
> You have submitted your WSO2 IS certificate in a different pack right?
> But our pack contains the IS too.
>
> How can I manage this file path ?
>
>
>
>
> On Fri, Sep 5, 2014 at 1:47 PM, Waruna Perera  wrote:
>
>> Hi,
>>
>> This sets the trust store in client. Set it to your paths
>>
>> System.setProperty("javax.net.ssl.trustStore",
>> "/home/waruna/Products/wso2is-4.7.0/repository/resources/security/wso2carbon.jks");
>> System.setProperty("javax.net.ssl.trustStorePassword",
>> "wso2carbon");
>> System.setProperty("javax.net.ssl.trustStoreType", "JKS");
>>
>>
>> On Fri, Sep 5, 2014 at 1:45 PM, Waruna Perera  wrote:
>>
>>> HI,
>>>
>>>
>>> Can you try adding following code segment and try.
>>>
>>>
>>>
>>> On Fri, Sep 5, 2014 at 1:43 PM, Kasun Dissanayake 
>>> wrote:
>>>
>>>> Hi Waruna,
>>>>
>>>> @Test(groups = { "wso2.appmanager" }, description = "test SAML tokens
>>>> send to the backend")
>>>> public void samlToBackendTestCase() throws Exception {
>>>>
>>>> String appId = "";
>>>> // publisher creates an app
>>>> String username = userInfo.getUserName();
>>>> String password = userInfo.getPassword();
>>>> appmPublisher.login(username, password);
>>>>
>>>> AppCreateRequest appRequest = new AppCreateRequest();
>>>>
>>>> int port = 9988; // used to create a wiremonitor server and get
>>>> the
>>>> // requst
>>>> String webappUrl = "http://localhost:"; + port;
>>>> String appName = "samltestapp";
>>>> String version = "1.0.0";
>>>>
>>>> appRequest.setOverview_webAppUrl(webappUrl);
>>>> appRequest.setOverview_transports("https");
>>>> appRequest.setOverview_name(appName);
>>>> appRequest.setOverview_version(version);
>>>> appRequest.setOverview_context("/" + appName);
>>>> appRequest.setEntitlementPolicies("[]");
>>>>
>>>> // for IS autoconfig to get SSO feature
>>>> appRequest.setAutoConfig("on");
>>>> appRequest.setProviders("wso2is-5.0.0");
>>>> appRequest.setSso_ssoProvider("wso2is-5.0.0");
>>>> appRequest.setSso_singleSignOn("Enabled");
>>>> appRequest.setClaims("http://wso2.org/claims/role";);
>>>> appRequest.setClaimPropertyCounter("1");
>>>> appRequest.setSso_idpProviderUrl("
>>>> https://localhost:9443/samlsso/";);
>>>>
>>>> log.info("Waiting for the test application to be
>>>> created..");
>>>> HttpResponse response = appmPublisher.createApp(appRequest);
>>>> JSONObject jsonObject = new JSONObject(response.getData());
>>>> appId = (String) jsonObject.get("id");
>>>>
>>>>
>>>> try {
>>>> Thread.sleep(4000);
>>>> } catch (InterruptedException e) {
>>>> // TODO Auto-generated catch block
>>>> e.printStackTrace();
>>>> }
>>>> log.info("Publishing the test
>>>> application..");
>>>> appmPublisher.publishApp(appId);
>>>> try {
>>>> Thread.sleep(1);
>>>> } catch (InterruptedException e) {
>>>> // TODO Auto-generated catch block
>>>> e.printStackTrace();
>>>> }
>>>>
>>>> // client subscribe to that app
>>>> log.info("Subscribe to the test
>>>> application..");
>>>> appmStore.login(username, password);
>>>> // try {
>>>> // Thread.sleep(5000);
>>>> // } catch (InterruptedException e) {
>>>> // // TODO Auto-generated c

Re: [Dev] Error while building the SAML testcase in WSO2 EAM

2014-09-05 Thread Waruna Perera
Hi,

Can you please share your test case code?

Thanks


On Fri, Sep 5, 2014 at 1:37 PM, Kasun Dissanayake  wrote:

> Hi all,
>
> I'm working on [1] and getting following error
> [1] https://wso2.org/jira/browse/APPM-161
>
> samlToBackendTestCase(org.wso2.carbon.appmanager.tests.sample.SAMLtoBackendTest)
>  Time elapsed: 51.699 sec  <<< FAILURE!
> org.openqa.selenium.remote.UnreachableBrowserException: Error
> communicating with the remote browser. It may have died.
> Build info: version: '2.37.0', revision:
> 'a7c61cbd68657e133ae96672cf995890bad2ee42', time: '2013-10-18 09:51:02'
> System info: host: 'puppet.kasun.org', ip: '127.0.0.1', os.name: 'Linux',
> os.arch: 'amd64', os.version: '3.13.0-35-generic', java.version: '1.6.0_45'
> Driver info: driver.version: RemoteWebDriver
> at
> org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
> at
> org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:268)
> at
> org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:89)
> at
> org.wso2.carbon.appmanager.tests.util.APPMStoreUIClient.selectApplication(APPMStoreUIClient.java:93)
> at
> org.wso2.carbon.appmanager.tests.sample.SAMLtoBackendTest.samlToBackendTestCase(SAMLtoBackendTest.java:141)
> Caused by: org.apache.http.conn.HttpHostConnectException: Connection to
> http://127.0.0.1:7056 refused
> at
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
> at
> org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
> at
> org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
> at
> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561)
> at
> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
> at
> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
> at
> org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:337)
> at
> org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:298)
> at
> org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:145)
> at
> org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:366)
> at
> org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527)
> ... 38 more
> Caused by: java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> at java.net.Socket.connect(Socket.java:529)
> at
> org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
> at
> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
> ... 48 more
>
>
> Any idea ?
>
> --
> Kasun Dissanayake
> Software Engineer
> WSO2 Inc.
> Lean | Enterprise | Middleware
> Tel - +94 77 086 2860
> Skype - kasun.dissanayake4
> LinkedIn - lk.linkedin.com/in/kasundis/
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while building the SAML testcase in WSO2 EAM

2014-09-05 Thread Waruna Perera
HI,


Can you try adding following code segment and try.



On Fri, Sep 5, 2014 at 1:43 PM, Kasun Dissanayake  wrote:

> Hi Waruna,
>
> @Test(groups = { "wso2.appmanager" }, description = "test SAML tokens send
> to the backend")
> public void samlToBackendTestCase() throws Exception {
>
> String appId = "";
> // publisher creates an app
> String username = userInfo.getUserName();
> String password = userInfo.getPassword();
> appmPublisher.login(username, password);
>
> AppCreateRequest appRequest = new AppCreateRequest();
>
> int port = 9988; // used to create a wiremonitor server and get the
> // requst
> String webappUrl = "http://localhost:"; + port;
> String appName = "samltestapp";
> String version = "1.0.0";
>
> appRequest.setOverview_webAppUrl(webappUrl);
> appRequest.setOverview_transports("https");
> appRequest.setOverview_name(appName);
> appRequest.setOverview_version(version);
> appRequest.setOverview_context("/" + appName);
> appRequest.setEntitlementPolicies("[]");
>
> // for IS autoconfig to get SSO feature
> appRequest.setAutoConfig("on");
> appRequest.setProviders("wso2is-5.0.0");
> appRequest.setSso_ssoProvider("wso2is-5.0.0");
> appRequest.setSso_singleSignOn("Enabled");
> appRequest.setClaims("http://wso2.org/claims/role";);
> appRequest.setClaimPropertyCounter("1");
> appRequest.setSso_idpProviderUrl("https://localhost:9443/samlsso/
> ");
>
> log.info("Waiting for the test application to be
> created..");
> HttpResponse response = appmPublisher.createApp(appRequest);
> JSONObject jsonObject = new JSONObject(response.getData());
> appId = (String) jsonObject.get("id");
>
>
> try {
> Thread.sleep(4000);
> } catch (InterruptedException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
> log.info("Publishing the test application..");
> appmPublisher.publishApp(appId);
> try {
> Thread.sleep(1);
> } catch (InterruptedException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>
> // client subscribe to that app
> log.info("Subscribe to the test
> application..");
> appmStore.login(username, password);
> // try {
> // Thread.sleep(5000);
> // } catch (InterruptedException e) {
> // // TODO Auto-generated catch block
> // e.printStackTrace();
> // }
>
> SubscriptionRequest subscriptionRequest = new SubscriptionRequest(
> appName, username, version);
> HttpResponse subscriptionResponse = appmStore
> .subscribeForApplication(subscriptionRequest);
> Thread.sleep(2);
> // Assert.assertTrue((Boolean)
> subscriptionJsonObject.get("status"),
> // "Application is already subscribed");
>
> // do the selenium login and app selection
> //FirefoxDriver driver = new FirefoxDriver();
> log.info("sso profiver--
> +"+appRequest.getSso_ssoProvider());
> // wire monitor server to get the request from the appmanager
> WireMonitorServer server = new WireMonitorServer(port);
> server.start();
>
>
> driver = BrowserManager.getWebDriver();
> APPMStoreUIClient.login(driver, storeURLHttp, username, password);
> //String baseWindow = driver.getWindowHandle();
> //driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
> //driver.manage().timeouts().implicitlyWait(4000,
> TimeUnit.MILLISECONDS);
> try {
> Thread.sleep(5000);
> } catch (InterruptedException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>
> APPMStoreUIClient.selectApplication(driver, storeURLHttp, appId,
> username, password);
> try {
> Thread.sleep(3000);
> } catch (InterruptedException e) {
> // TODO Auto-generated catch block
>     e.printStackTrace();
> }
>
> System.out.println("the backend sent saml message :
> "+server.getCap

Re: [Dev] [DEV][APIM] writing automation tests for APIM

2014-09-03 Thread Waruna Perera
Hi Sanjeewa,

Noted. I will update the thread as we move forward about the API calls
which we will think of useful to have.

Thanks


On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda 
wrote:

> Hi Waruna,
>
>
> On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera  wrote:
>
>> Hi,
>>
>> Amalka and me started doing above $subject by following[1]. When
>> following some of the test cases available we found that API calls in
>> publisher[2] and store are limited. The search API functions are covered by
>> calling host objects. I have few questions regarding that.
>>
>> Do we have a plan to provide other API calls in publisher and store?
>>
> I assume here you are talking about rest APIs that we documented. For the
> moment most of required operations are exposed as rest APIs. But still
> there are missing parts. In such cases  we can deploy simple jag file in
> the server and call to host object. If you looked at HostObjectTestCase,
> you will see how we tested host object operations that did not exposed as
> rest APIs. Please refer java test cases available in product.
>
> Do we need uniformity with test cases? (some via API calls and others with
>> direct host object calls)
>>
> IMO there is no such requirement. We cant test all scenarios in the same
> way. Important thing is cover use cases as much as possible.
>
> Thanks,
> sanjeewa.
>
>>
>> [1]
>> https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWc&usp
>>
>> [2] https://docs.wso2.com/display/AM170/Publisher+APIs
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
>  <http://sanjeewamalalgoda.blogspot.com/>blog
> :http://sanjeewamalalgoda.blogspot.com/
> <http://sanjeewamalalgoda.blogspot.com/>
>
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][APIM] writing automation tests for APIM

2014-09-03 Thread Waruna Perera
Hi,

Amalka and me started doing above $subject by following[1]. When following
some of the test cases available we found that API calls in publisher[2]
and store are limited. The search API functions are covered by calling host
objects. I have few questions regarding that.

Do we have a plan to provide other API calls in publisher and store?
Do we need uniformity with test cases? (some via API calls and others with
direct host object calls)

[1]
https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWc&usp

[2] https://docs.wso2.com/display/AM170/Publisher+APIs

-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] LifeCycle TEST automation for WSO2 EAM

2014-09-03 Thread Waruna Perera
HI,

The same pattern has used in APIM test cases as well[1].

[1]
https://github.com/wso2-dev/product-apim/blob/master/modules/integration/tests/src/test/java/org/wso2/carbon/am/tests/sample/APIApplicationLifeCycleITestCase.java




On Thu, Sep 4, 2014 at 6:40 AM, Rushmin Fernando  wrote:

> I think the "apps which has been published are invokable" test scenario
> should be divided into  following sub scenarios.
>
> 1. Published apps are shown in the store
> 2. A user who can sign in to the store can subscribe to apps in store
> 3. Apps which are visible in my subscriptions section are invokable.
>
> I think this way its much more cleaner and is an end to end test. WDYT?
> On Sep 4, 2014 5:36 AM, "Dinusha Senanayaka"  wrote:
>
>> Hi Kasun,
>>
>>
>> On Wed, Sep 3, 2014 at 10:25 PM, Kasun Dissanayake 
>> wrote:
>>
>>> Hi All,
>>>
>>> I was working on [1] and tested it. The way I've done it, is, hit the
>>> gateway URL and check the response code is 302. But I realize that was
>>> wrong when the gateway url is once hit it will redirect to IS and it will
>>> always give me 302.
>>>
>>> Since the gateway URL is handled by SAML and cookies for the following
>>> flow, the test case will be very lengthy.
>>>
>>> *Create app => publish app => login to store => Subscribe the app =>
>>> test weather the gateway url is hit*
>>>
>>> or
>>>
>>> *=> unpublish the app => test weather the app is hit*.
>>>
>>> My suggestion is to do as follow.
>>>
>>> 1)* Create app => login store => test the app is visible in the store
>>> (App is visible only the app is published)*
>>> 2) *=> publish app = > login to store => test the app can be
>>> subscribed.*
>>> 3) *Change the state to unpublish (this will cover other states as
>>> well) => login to store => test the app is visible in the store*
>>>
>>
>> Above mentioned scenarios are fine. Chamila/Thilini/Roshan/Jena has
>> written test cases to create -> publish and subscribe an app. You should be
>> able to reuse them for [1], [2]. In addition to checking whether particular
>> app appears/removed on store once app is in publish/unpublish state, we
>> need to validate whether the invocation is success or not as well. This is
>> to ensure, synapse api get deployed properly in-addition to  saving wep
>> -app artifacts into registry and db in each lifecycle state.
>>
>> Regadrs,
>> Dinusha.
>>
>>>
>>> Over all three test cases will be covered as for LifyCycleTest class.
>>>
>>> WDYT ?
>>>
>>> [1] https://wso2.org/jira/browse/APPM-125
>>>
>>> Cheers
>>>
>>>
>>> --
>>> Kasun Dissanayake
>>> Software Engineer
>>> WSO2 Inc.
>>> Lean | Enterprise | Middleware
>>> Tel - +94 77 086 2860
>>> Skype - kasun.dissanayake4
>>> LinkedIn - lk.linkedin.com/in/kasundis/
>>>
>>
>>
>>
>> --
>> Dinusha Dilrukshi
>> Senior Software Engineer
>> WSO2 Inc.: http://wso2.com/
>> Mobile: +94725255071
>> Blog: http://dinushasblog.blogspot.com/
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB connector: SSL Handshake Exception

2014-09-03 Thread Waruna Perera
Hi,

Please check your keystores and certificates.


On Wed, Sep 3, 2014 at 1:18 PM, Keerthika Mahendralingam  wrote:

>
> When we invoke our services into proxy we got this error:
>
> [2014-09-03 11:01:15,881]  INFO - CarbonAuthenticationUtil
> 'admin@carbon.super [-1234]' logged in at [2014-09-03 11:01:15,881+0530]
>
> [2014-09-03 11:01:51,476]  INFO - TimeoutHandler This engine will expire
> all callbacks after : 120 seconds, irrespective of the timeout action,
> after the specified or optional timeout
>
> [2014-09-03 11:01:52,305] ERROR - TargetHandler I/O error: General
> SSLEngine problem
>
> javax.net.ssl.SSLHandshakeException: General SSLEngine problem
>
> at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1364)
>
> at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:513)
>
> at sun.security.ssl.SSLEngineImpl.writeAppRecord(SSLEngineImpl.java:1197)
>
> at sun.security.ssl.SSLEngineImpl.wrap(SSLEngineImpl.java:1169)
>
> at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:469)
>
> at
> org.apache.http.nio.reactor.ssl.SSLIOSession.doWrap(SSLIOSession.java:220)
>
> at
> org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:254)
>
> at
> org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:380)
>
> at
> org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:118)
>
> at
> org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:160)
>
> at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:342)
>
> at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:320)
>
> at
> org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)
>
> at
> org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
>
> at
> org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:604)
>
> at java.lang.Thread.run(Thread.java:722)
>
> Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
>
> at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>
> at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1703)
>
> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:278)
>
> at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
>
> at
> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1338)
>
> at
> sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)
>
> at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
>
> at sun.security.ssl.Handshaker$1.run(Handshaker.java:808)
>
> at sun.security.ssl.Handshaker$1.run(Handshaker.java:806)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1301)
>
> at
> org.apache.http.nio.reactor.ssl.SSLIOSession.doRunTask(SSLIOSession.java:238)
>
> at
> org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:270)
>
> ... 9 more
>
> Caused by: sun.security.validator.ValidatorException: PKIX path building
> failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
> to find valid certification path to requested target
>
> at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)
>
> at
> sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
>
> at sun.security.validator.Validator.validate(Validator.java:260)
>
> at
> sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
>
> at
> sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:283)
>
> at
> sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:138)
>
> at
> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1325)
>
> ... 17 more
>
> Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
> unable to find valid certification path to requested target
>
> at
> sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196)
>
> at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)
>
> at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)
>
> ... 23 more
>
> [2014-09-03 11:01:52,312]  WARN - EndpointContext Endpoint :
> AnonymousEndpoint will be marked SUSPENDED as it failed
>
> [2014-09-03 11:01:52,312]  WARN - EndpointContext Suspending endpoint :
> AnonymousEndpoint - current suspend duration is : 3ms - Next retry
> after : Wed Sep 03 11:02

Re: [Dev] Mutual SSL work with java 7 and open jdk 6 but not with sun java 6

2014-08-31 Thread Waruna Perera
Hi Janaka,

Can you try running ESB with -Djavax.net.debug=ssl ? So that it will show
more info regarding SSL connection setup.

Thanks,


On Mon, Sep 1, 2014 at 11:46 AM, Jay  wrote:

> Hi Varuna,
>
> I tired with your solution but problem still remain as same. Using SSLv3
> instead of TLS is working fine with direct call but not for connector.  And
> also above mentioned code is a part of BrainTree SDK, not a  connector
> code.
>
> Thnaks.
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Mutual-SSL-work-with-java-7-and-open-jdk-6-but-not-with-sun-java-6-tp102060p102075.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Mutual SSL work with java 7 and open jdk 6 but not with sun java 6

2014-08-31 Thread Waruna Perera
gt; TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
> tmf.init(keyStore);
>
> SSLContext sslContext = SSLContext.getInstance("TLS");
> sslContext.init((KeyManager[]) kmf.getKeyManagers(),
> tmf.getTrustManagers(), SecureRandom.getInstance("SHA1PRNG"));
>
> return sslContext.getSocketFactory();
> } catch (Exception e) {
> throw new UnexpectedException(e.getMessage(), e);
> }
> }
>
> The following approaches were tried to resolve the issue which apparently
> proved useless.
> 1.  Imported the Braintree API X509 certificate into wso2carbon.jks and to
> client-truststore.jks.
> 2.  Imported the same into cacerts (jre\lib\security\cacerts)file when
> using
> Java SDK 1.6.
> 3.  Tried installing OpenJDK 1.6 and ran the ESB using it. The connector
> worked fine.
> 4.  Tried extracting the downloaded JCE jars to (jre\lib\security) folder.
>
>
> Thanks,
>
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Mutual-SSL-work-with-java-7-and-open-jdk-6-but-not-with-sun-java-6-tp102060.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Run soap ui projects within maven project

2014-08-24 Thread Waruna Perera
Hi,

Right now we are changed the approach on doing this a bit. Since our final
task is to run soapuio projects within  wso2 product integration tests, we
had to write a test case to run soapui projects. You just have to write
single test case and give the soapui project files location in the pom.xml.
Anyhow we are trying to figure out licensing aspect using
maven-soapui-extension-plugin. Once we clear this out, will put out a
document to how to use this.

Thanks,


On Tue, Aug 19, 2014 at 1:22 PM, Evanthika Amarasiri 
wrote:

>
> On Tue, Aug 19, 2014 at 10:50 AM, Krishantha Samaraweera <
> krishan...@wso2.com> wrote:
>
>> Hi Waruna,
>>
>> Please add a sample soap UI project to App server in order demonstrate
>> the functionality. So others can use it as a reference for future test
>> cases.
>>
>> Also provide a guide on how to configure SoapUI tests to run in
>> integration test phase.
>>
>> I think we can configure Jenkins to read the Junit reports and get the
>> result to Jenkins dashboard. If it is not the case, we might need to
>> implement a Junit report parser and get the result integrated with TestNG.
>>
>> @QA Team - Please note on this feature, you can easily integrated your
>> SOAPUi test projects to build system now.
>>
>
> ​Noted Krishantha. It would be great if we can get instructions on how to
> do the integration as Krishantha mentioned.
>
> Regards,
> Evanthika
> ​
>
>>
>> Thanks,
>> Krishantha.
>>
>>
>> On Tue, Aug 19, 2014 at 10:40 AM, Waruna Perera  wrote:
>>
>>>
>>> HI,
>>>
>>> I have configured sample project to run above task. The objective of
>>> this would be a user can create and configure multiple soapui projects and
>>> run within a test run. So that it will output the results of them as well.
>>> I integrated this in AS product integration as well and working fine. The
>>> output of the soapui project automated test cases are available as junit
>>> reports and not in testng. Are there any more improvements that can be
>>> done?
>>>  --
>>> Waruna Perera
>>> Senior Software Engineer - Test Automation
>>> Mobile: +94 77 3867037
>>> 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.
>>
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Optimize file read operation in Jaggery

2014-08-20 Thread Waruna Perera
Hi,

What about population your file data to temp db and access it and
update/delete when needed?

Thanks


On Thu, Aug 21, 2014 at 1:23 AM, Udara Liyanage  wrote:

>
> Hi,
>
> If the file content is stored in memory, memory consumption would grow if
> it reads a big file or several files. How about using a cache of a fix
> size?
>
> What kind of files it would read multiple times, if they are configuration
> files only the important data could be stored in the memory.
> Could you please elaborate more of your task with an example in order to
> get a better understanding.
>
> Touched, not typed. Erroneous words are a feature, not a typo.
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Run soap ui projects within maven project

2014-08-18 Thread Waruna Perera
Hi,

I have pushed a sample maven project on github[1] which includes soapui
project as well. Guide for integrate provided as well [2].

[1] https://github.com/warunap/SoupuiRunner
[2]
https://docs.google.com/a/wso2.com/document/d/1cgyh9TRlXSkAtp1Pu8_WDDOaw3_tmdokTFBbBop55V4

I will find more on what you have suggested in the with reports.

Thanks


On Tue, Aug 19, 2014 at 10:50 AM, Krishantha Samaraweera <
krishan...@wso2.com> wrote:

> Hi Waruna,
>
> Please add a sample soap UI project to App server in order demonstrate the
> functionality. So others can use it as a reference for future test cases.
>
> Also provide a guide on how to configure SoapUI tests to run in
> integration test phase.
>
> I think we can configure Jenkins to read the Junit reports and get the
> result to Jenkins dashboard. If it is not the case, we might need to
> implement a Junit report parser and get the result integrated with TestNG.
>
> @QA Team - Please note on this feature, you can easily integrated your
> SOAPUi test projects to build system now.
>
> Thanks,
> Krishantha.
>
>
> On Tue, Aug 19, 2014 at 10:40 AM, Waruna Perera  wrote:
>
>>
>> HI,
>>
>> I have configured sample project to run above task. The objective of this
>> would be a user can create and configure multiple soapui projects and run
>> within a test run. So that it will output the results of them as well. I
>> integrated this in AS product integration as well and working fine. The
>> output of the soapui project automated test cases are available as junit
>> reports and not in testng. Are there any more improvements that can be
>> done?
>>  --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> 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.
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Run soap ui projects within maven project

2014-08-18 Thread Waruna Perera
HI,

I have configured sample project to run above task. The objective of this
would be a user can create and configure multiple soapui projects and run
within a test run. So that it will output the results of them as well. I
integrated this in AS product integration as well and working fine. The
output of the soapui project automated test cases are available as junit
reports and not in testng. Are there any more improvements that can be
done?
-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][ES] Social SSO redirect breaks due to cross-domain requests in google-chrome

2014-08-13 Thread Waruna Perera
Hi,

Did you encounter with session time out error with chrome browser session
cookies?


On Wed, Aug 13, 2014 at 1:46 PM, Udara Rathnayake  wrote:

> Hi,
>
> Seems this issue[1] happens due to URL redirections during SSO login.
> Initially we use URL[2] to browse store homepage. When we click log-in,
> store redirects to a similar URL like this[3]. If we provide correct login
> credentials it redirects back to the store[2]. Up to now everything works
> as expected.
>
> We have embedded social framework via an iframe, when user browse an asset
> within the store and press UserReviews Ideally comment/rating box should
> appear within the iframe. This( comment/rating box) resides within
> Social-Jaggery app which SSOed with store and publisher apps.
>
> Since there is a redirect happens underneath(from localhost to localIP)
> while SSO login, google chrome doesn't allow this. But on FF this works
> perfectly.
>
> Then I have modified AssertionConsumerService property within
> sso-idp-config.xml from,
> https://localhost:9443//acs to 
> https://:9443//acs
> .
> After this modification everything works as expected.
>
> Is there any way to change the hostname in sso-idp-config.xml from
> localhost to something like ${carbon.local.ip} as in carbon.xml so it will
> be populated and assigned dynamically.?
>
> ATM I'm looking into a possible solution where I can set a header
> parameter to solve this issue in google chrome.
>
> [1] https://wso2.org/jira/browse/STORE-490
> [2] http://localhost:9763/store
> [3]
> https://10.100.0.128:9443/sso/login?null&relyingParty=store&sessionDataKey=0dd324f3-aa70-42cd-a6c5-dd99e0b81062&type=samlsso&commonAuthCallerPath=samlsso&forceAuth=false&passiveAuth=false&authenticators=BasicAuthenticator:LOCAL
>
> Regards,
> UdaraR
>
> --
> *Udara Rathnayake*
> Software Engineer
> WSO2 Inc. : http://wso2.com
>
> Mobile : +94 772207239
> Twitter : http://twitter.com/udarakr
> Blog: http://udarakr.blogspot.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Announce] WSO2 Committers += Jayanga Dissanayake

2014-08-05 Thread Waruna Perera
>>>>>>>> * Aruna Sujith Karunarathna* | Software Engineer
>>>>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>>>>>> Mobile: +94 71 9040362 | Work: +94 112145345
>>>>>>>> Email: ar...@wso2.com | Web: www.wso2.com
>>>>>>>>
>>>>>>>>
>>>>>>>> ___
>>>>>>>> Dev mailing list
>>>>>>>> Dev@wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Suhan Dharmasuriya
>>>>>>>
>>>>>>> Software Engineer - Test Automation
>>>>>>>
>>>>>>> Tel: +94 112 145345
>>>>>>> Mob: +94 779 869138
>>>>>>>
>>>>>>> ___
>>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Milinda Perera
>>>>> Software Engineer;
>>>>> WSO2 Inc. http://wso2.com ,
>>>>> Mobile: (+94) 714 115 032
>>>>>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Rajith Vitharana
>>>>
>>>> Software Engineer,
>>>> WSO2 Inc. : wso2.com
>>>> Mobile : +94715883223
>>>> Blog : http://lankavitharana.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
>>>
>>>
>>
>>
>> --
>> *Gayan Kaushalya Yalpathwala*
>>  Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 71 8682704 <http://asia14.wso2con.com/>
>>
>>  <http://asia14.wso2con.com/>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 77 1708229
>
> <http://stackoverflow.com/users/515034>
> <http://lk.linkedin.com/in/abimaran>
> <http://www.lkabimaran.blogspot.com/>  <https://github.com/abimaran>
> <https://twitter.com/abimaran>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Kavith Lokuhewage

2014-08-03 Thread Waruna Perera
Congratz Kavith


On Mon, Aug 4, 2014 at 11:48 AM, Waruna Jayaweera  wrote:

> Congratulations..!
>
>
> On Mon, Aug 4, 2014 at 11:43 AM, Shani Ranasinghe  wrote:
>
>> Congratulations Kavith.
>>
>>
>> On Mon, Aug 4, 2014 at 11:41 AM, Jasintha Dasanayake 
>> wrote:
>>
>>> Hi All,
>>>
>>> It's my distinct pleasure to welcome kavith Lokuhewage as a WSO2
>>> Committer.
>>>
>>> Kavith has  been a valuable contributor for WSO2 Developer Studio since
>>> he joined WSO2. In recognition of his contributions to WSO2, he has been
>>> voted as a WSO2 Committer.
>>>
>>> Kavith, Congratulations and Keep up the good work!
>>>
>>> Thanks and Regards,
>>> /Jasintha
>>>
>>> --
>>>
>>> *Jasintha Dasanayake *
>>>
>>> *Senior Software EngineerWSO2 Inc. | http://wso2.com <http://wso2.com/>
>>> lean . enterprise . middleware*
>>>
>>>
>>> *mobile :- 0711368118*
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>
>
> --
> Regards,
>
> Waruna Lakshitha Jayaweera
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +94713255198
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Automated test case for ESB sample 705

2014-07-15 Thread Waruna Perera
Hi,

I am trying to write a test case for [1]. In this scenario ESB uses Message
Forwarding Processor to forwards requests in a load balance scenario. My
first approach was to alter the sample a bit by sending messages to three
different JMS queues and check the message count. As I understood it will
not work as forwarding Processor will send the message as soon as the end
point is available.

What would be the best way to implement this test case?



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB sample 363 giving eoor

2014-07-15 Thread Waruna Perera
Hi,

I found that in the document[1] synapse config should be changed as follows.

existing config

rmi://localhost:2199

Correct config
rmi://localhost:


[1]
http://docs.wso2.com/display/ESB481/Sample+363%3A+Reusable+Database+Connection+Pools


On Tue, Jul 15, 2014 at 10:54 AM, Waruna Perera  wrote:

>
> Hi,
>
> I tried to run ESB sample 363 with mysql configuration. It gives following
> exception. Any idea on it?
>
> ERROR - DataSourceFinder Error looking up DataSource : lookupdb using JNDI
> properties : javax.naming.InitialContext@4ec44deb
> javax.naming.ServiceUnavailableException [Root exception is
> java.rmi.ConnectException: Connection refused to host: localhost; nested
> exception is:
> java.net.ConnectException: Connection refused]
>
> --
> Waruna Perera
> Senior Software Engineer - Test Automation
> Mobile: +94 77 3867037
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   >