Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Joseph Fonseka
Sorry mail got sent accidentally half written. will complete and send shortly. On Mon, Oct 19, 2015 at 12:15 PM, Joseph Fonseka wrote: > Hi Sanjeewa > > Saneth & I had an offline chat regarding this last week there are few > things we need to consider. > > 1. Generating

Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Nuwan Dias
Is it right to auto-generate the test client code? IMO one objective of this should be to make sure the REST APIs don't change across patch releases, etc. If we auto-generate the test stubs we would loose that advantage. Thanks, NuwanD. On Mon, Oct 19, 2015 at 12:26 PM, Joseph Fonseka

[Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Sanjeewa Malalgoda
Hi Team, We are planning to implement complete REST API for all operations available in API Manager. This will be CXF based jax-rs application. This application based on swagger template and service skeleton automatically generate according to swagger to cxf implementation done by Jo. We would

Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Sanjeewa Malalgoda
On Mon, Oct 19, 2015 at 11:39 AM, Sanjeewa Malalgoda wrote: > Hi Team, > We are planning to implement complete REST API for all operations > available in API Manager. > This will be CXF based jax-rs application. > This application based on swagger template and service skeleton

Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Joseph Fonseka
Hi Sanjeewa Saneth & I had an offline chat regarding this last week there are few things we need to consider. 1. Generating integration test for the Jax-RS functionality ex . If crud operations work, if it returns correct error messages. - We can use swagger-codegen to do this. API

Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Dharshana Warusavitharana
Hi Sanjeewa, Currently we are not using a mechanism to proceed testing with auto generated clients. As I understand by the requirement this might subject to change API definition posted by the application with changes in the product level. But as per the requirement I think it would be ideal if

Re: [Dev] finding the buying pattern of consumer store data.

2015-10-19 Thread Fazlan Nazeem
Hi Nifras. If you have successfully built the model using the Machine Learner with a suitable algorithm, you can use the model for prediction. Different ways of using the model are listed in the documentation page[1] . The pattern is stored within the model, and you can use this pattern for

Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Joseph Fonseka
Hi Sanjeewa Saneth & I had an offline chat regarding this last week there are few things we need to consider. 1. Generating integration test for the Jax-RS functionality ex . If crud operations work, if it returns correct error messages. - We can use swagger-codegen to do this.

Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Joseph Fonseka
Hi Nuwan Thanks for pointing that out, in that case test can be version-ed so auto generated tests for version 1.0.0 should work with API 1.0.1 ... WDYT? Regards Jo On Mon, Oct 19, 2015 at 12:29 PM, Nuwan Dias wrote: > Is it right to auto-generate the test client code? IMO

Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Dharshana Warusavitharana
Hi Jo, If so the issue is how you eliminate the client generation on normal product build. So if there is a requirement of maintaining API as it is it is a bad idea it generate test client on demand. So in bottom line you only expect API change for 1.0.0 in next main release 2.0.0. So this won't

Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Sanjeewa Malalgoda
Here idea is easily manage the tests and web application. Since web application purely depend on swagger definition it will automatically generate beans, service skeletons etc. So in same way if we implement test cases we don't have to go and edit test case code after we adding new parameters or

Re: [Dev] [DEV] Implement unit/integration test cases for API Manager JAX-RS Rest API

2015-10-19 Thread Dharshana Warusavitharana
Hi Jo, As per the practise we followed there won't be a big effort in migrating these tests since we use base test methods to use these API calls. So we can handle this without changing tests. Thank you, Dharshana. On Mon, Oct 19, 2015 at 12:17 PM, Joseph Fonseka wrote: >

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC3

2015-10-19 Thread Rajith Vitharana
Hi, Tested with DSS basic scenarios 1 - deploying car scenario 2 - invoking simple service 3 - invoking simple rest service (with post body content - which doesn't work in kernel 4.4.1) +1 to release Thanks, On Mon, Oct 19, 2015 at 10:45 AM, Manuri Amaya Perera wrote: > Hi

Re: [Dev] [AF] Application creation can be failed, if we create the application before the git repo is available in s2git

2015-10-19 Thread Aiyadurai Rajeevan
Hi All, What if we implement a pollar which monitor the s2git repo, If the repo is not ready show a message saying "The environment setup for app creation in progress, Please wait few moments" and hide that once repo initialization completed. Thanks & Regards, S.A.Rajeevan Software Engineer

Re: [Dev] Incorporated carbon-feature-plugin-2.0.0-m1 in MSS and GW projects

2015-10-19 Thread Afkham Azeez
I am seeing a lot of introduction of new tags. e.g. 1. org.wso2.carbon.p2.category.type:server is now written as org.wso2.carbon.p2.category.type server 2. javax.ws.rs:javax.ws.rs-api is now written as. Also we have the additional burden of specifying the version again. javax.ws.rs-api

Re: [Dev] finding the buying pattern of consumer store data.

2015-10-19 Thread Fazlan Nazeem
Hi Nifras, It is actually in a serialized binary format. So there is no way to read it through a text editor. But you can use this serialized model file in any of the mentioned methods which are specified in the documentation link I provided. On Mon, Oct 19, 2015 at 2:38 PM, NIFRAS ISMAIL

Re: [Dev] [Carbon] DSS DB Console is not available in kernel 4.4.0

2015-10-19 Thread Madhawa Gunasekara
and also this h2 database dependency is bundled by the org.wso2.carbon.core.common.feature in Carbon kernel On Mon, Oct 19, 2015 at 2:44 PM, Madhawa Gunasekara wrote: > Hi KasunG, > > I have installed DBConsole feature successfully in DSS. I think Kernel is > restricting the

Re: [Dev] carbon-feature-plugin 2.0.0 Milestone 1 Released

2015-10-19 Thread KasunG Gajasinghe
Hi Dinusha, Looks good. Could you please share the documentation that is accessible without a Google login? May be we can add this to wso2 carbon documentation? Thanks. On Mon, Oct 19, 2015 at 2:43 PM, Dinusha Boteju wrote: > WSO2 Carbon Feature plugin 2.0.0 - Milestone 01

Re: [Dev] [Architecture] carbon-feature-plugin 2.0.0 Milestone 1 Released

2015-10-19 Thread Kishanthan Thangarajah
Great work Dinusha. I think we are already working an a migration tool (java and python based) to ease the migration effort from previous plugin configuration. These tools will be helpful for users with migration effort. We have already used this with C5 M5 release. And as the testing effort,

Re: [Dev] [Carbon] DSS DB Console is not available in kernel 4.4.0

2015-10-19 Thread Madhawa Gunasekara
Hi All, Issue was fixed by enabling dynamic imports in db console component. @KasunG I will move this jira to DSS. Thanks, Madhawa On Mon, Oct 19, 2015 at 2:48 PM, Madhawa Gunasekara wrote: > and also this h2 database dependency is bundled by the >

[Dev] [Jaggery] response.sendError() not working for PUT and DELETE

2015-10-19 Thread Thilini Cooray
Hi, I want to send error messages for invalid URLs from API Manager Store jaggery layer. I use response.sendError(404) for this purpose. For HTTP POST and GET this method returns the correct error page while it doesn't return any message for PUT and DELETE. I debugged [1] and found out that the

Re: [Dev] finding the buying pattern of consumer store data.

2015-10-19 Thread NIFRAS ISMAIL
Hi, Finally I have download the file on .model format. How can i open and read? How can i make use of it? OMG. I didn't hear how to do this? I am an Linux one. Note: I have attached the output model on attachments. Thank you Regards. *M. Nifras Ismail* [image: LinkedIn]

[Dev] Incorporated carbon-feature-plugin-2.0.0-m1 in MSS and GW projects

2015-10-19 Thread Dinusha Boteju
Hi all, I have updated the pom files in WSO2 MSS and WSO2 GW projects to incorporate carbon-feature-plugin 2.0.0-m1 and sent pull requests to relevant repositories. jira link for MSS : https://wso2.org/jira/browse/WMS-2 PR link for MSS : https://github.com/wso2/product-mss/pull/14 jira link for

Re: [Dev] [Carbon] DSS DB Console is not available in kernel 4.4.0

2015-10-19 Thread Madhawa Gunasekara
Hi KasunG, I have installed DBConsole feature successfully in DSS. I think Kernel is restricting the H2 db console ui. In dss side we simply expose dbConsole by using an IFrame. because this db Console UI is a built in feature in H2 embedded database. That's why I have reported the issue in

[Dev] carbon-feature-plugin 2.0.0 Milestone 1 Released

2015-10-19 Thread Dinusha Boteju
WSO2 Carbon Feature plugin 2.0.0 - Milestone 01 Released! We are pleased to inform you the 1st milestone release of carbon feature plugin 2.0.0 is now available to use. Source for this release is available here .

Re: [Dev] carbon-feature-plugin 2.0.0 Milestone 1 Released

2015-10-19 Thread Sameera Jayasoma
+1. Lets do that with the alpha release of this plugin. Nilmini, we can add this document to C5 doc space. We will let you know once this document is finalized. On Mon, Oct 19, 2015 at 2:18 AM, KasunG Gajasinghe wrote: > Hi Dinusha, > > Looks good. Could you please share the

Re: [Dev] carbon-feature-plugin 2.0.0 Milestone 1 Released

2015-10-19 Thread Dinusha Boteju
Hi Kasun, I've mentioned following in the mail; "We are in the process of converting this documentation into a document in WSO2 wiki.". So looking forward to contact documentation team and add this to wso2 carbon documentation. -Dinusha On Mon, Oct 19, 2015 at 2:51 PM, Sameera Jayasoma

[Dev] POST message payload from Swagger UI [API M]

2015-10-19 Thread Nadeesha Gamage
Hi Devs, Is it possible to POST a message payload from the Swagger UI in the API Store. The current API Manager version doesnt have a 'Body' parameter type available to do this. Is there any other way to send a message payload from Swagger UI. Thank you, -- Nadeesha Gamage Associate Technical

Re: [Dev] POST message payload from Swagger UI [API M]

2015-10-19 Thread Malintha Amarasinghe
Hi, What is the APIM version you are using? AFAIK this is supported in APIM 1.9.1 version. Thank you. Malintha On Tue, Oct 20, 2015 at 5:13 AM, Nadeesha Gamage wrote: > Hi Devs, > Is it possible to POST a message payload from the Swagger UI in the API > Store. The current

Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.2 RC3

2015-10-19 Thread Kishanthan Thangarajah
We are closing this vote and this vote passes with 5 binding(+1) votes and 0 -1s. We will proceed with release of WSO2 Carbon Kernel 4.4.2. On Tue, Oct 20, 2015 at 8:10 AM, Inosh Goonewardena wrote: > Hi All, > > I have tested DAS basic scenarios and basic user management >

Re: [Dev] [Jaggery] response.sendError() not working for PUT and DELETE

2015-10-19 Thread Thilini Cooray
Hi, This is the source. var uri = request.getRequestURI(); var callPath=uri.replace("/store",""); var action = "list"; // default action list the topics if(uri != null) { var uriMatcher = new URIMatcher(callPath); if (uriMatcher.match("/forum") || uriMatcher.match("/forum/")) {

Re: [Dev] WSO2 Committers += Maheshakya Wijewardena

2015-10-19 Thread Ashen Weerathunga
Congratz Maheshakya!!! :) On Tue, Oct 20, 2015 at 10:42 AM, Nirmal Fernando wrote: > Hi All, > > It's my pleasure to announce *Maheshakya Wijewardena* as a > *WSO2 Committer*. He has been a key contributor to the *WSO2 Machine > Learner *Product and in recognition of his

Re: [Dev] POST message payload from Swagger UI [API M]

2015-10-19 Thread Madusanka Premaratne
Hi Nadeesha, You can do this in APIM 1.9.0 and up. In order to post, you need to create a model/definition from the API Publisher. Please refer the petstore sample[1] When defining you need to set the parameter type as in: body and you need to set the schema. Refer to the attached yaml for

Re: [Dev] [Jaggery] response.sendError() not working for PUT and DELETE

2015-10-19 Thread Sajith Ariyarathna
Hi Thilini, Can you share your code here? I tested following Jaggery code. (Test was executed in* AppM 1.0.0* pack and *Advanced Rest Client* was used as the HTTP client) *URL Mapping in jaggery.conf: * { "url": "/test/*", "path": "/lib/test.jag" } *File*: *test.jag* *Code:* var log =

Re: [Dev] POST message payload from Swagger UI [API M]

2015-10-19 Thread Nadeesha Gamage
API M 1.9.1 On Mon, Oct 19, 2015 at 5:42 PM, Malintha Amarasinghe wrote: > Hi, > > What is the APIM version you are using? AFAIK this is supported in APIM > 1.9.1 version. > > Thank you. > Malintha > > On Tue, Oct 20, 2015 at 5:13 AM, Nadeesha Gamage >

[Dev] WSO2 Committers += Maheshakya Wijewardena

2015-10-19 Thread Nirmal Fernando
Hi All, It's my pleasure to announce *Maheshakya Wijewardena* as a *WSO2 Committer*. He has been a key contributor to the *WSO2 Machine Learner *Product and in recognition of his excellent work, he had been voted as a WSO2 Committer. Congratulations Maheshakya and keep up the good work! --

Re: [Dev] POST message payload from Swagger UI [API M]

2015-10-19 Thread Nadeesha Gamage
Thanks, is there any particular reason why the 'body' option is not available in the UI? On Mon, Oct 19, 2015 at 9:11 PM, Madusanka Premaratne wrote: > Hi Nadeesha, > You can do this in APIM 1.9.0 and up. In order to post, you need to create > a model/definition from the

Re: [Dev] WSO2 Committers += Maheshakya Wijewardena

2015-10-19 Thread Rajith Roshan
Congratz Maheshakya On Tue, Oct 20, 2015 at 10:48 AM, Ashen Weerathunga wrote: > Congratz Maheshakya!!! :) > > On Tue, Oct 20, 2015 at 10:42 AM, Nirmal Fernando wrote: > >> Hi All, >> >> It's my pleasure to announce *Maheshakya Wijewardena* as a >>

[Dev] WSO2 developer Studio Kernel 4.0.0 Milestone-0 Released

2015-10-19 Thread Kavith Lokuhewage
We are pleased to announce the 4.0.0-M0 release of WSO2 developer Studio Kernel. P2 repository of WSO2 developer Studio kernel 4.0.0-M0 is available to download here . Source and Tag Location for this release is

Re: [Dev] Regarding DAS connection with the external spark cluster

2015-10-19 Thread Anjana Fernando
Hi Nayomi, Current approach is an acceptable solution, where copying the DAS pack to a target Spark node is not a problem. Having a script or something to compile the list of jars only required for it is just a small convenience mechanism, and is not really that important. Someone may actually