Re: [Dev] PCA Product Distribution Folder Structure

2015-08-29 Thread Imesh Gunaratne
Right, then it should be fine! Yes +1 for moving the integrations tests to the product. Thanks On Sun, Aug 30, 2015 at 12:17 AM, Akila Ravihansa Perera wrote: > Hi Imesh, > > I had to change the pattern for PCA since there is a strange issue with > running Python programs under a sub-directory

Re: [Dev] PCA Live Test is Failing

2015-08-29 Thread Imesh Gunaratne
As we discussed offline I do not think Thrift is a RPC based protocol. IMO it can be used for implementing RPC based services but the protocol may not RPC based. I had a look at the Thrift client code, its waiting for a session id from the server after connecting. Therefore a standard socket might

Re: [Dev] PCA Live Test is Failing

2015-08-29 Thread Akila Ravihansa Perera
Hi Imesh, It won't work since Thrift is a RPC based protocol not a messaging based one. So you need to have those service classes generated via a tool (like Axis2). I was looking for a way to mock the CEP server but didn't have enough time to complete it. For now we can run a CEP server externally

Re: [Dev] PCA Product Distribution Folder Structure

2015-08-29 Thread Akila Ravihansa Perera
Hi Imesh, I had to change the pattern for PCA since there is a strange issue with running Python programs under a sub-directory named 'modules' which is very strange. I didn't want to keep the tests in PCA component because we need to check the actual distribution in integration tests. I'm plannin

Re: [Dev] PCA Live Test is Failing

2015-08-29 Thread Imesh Gunaratne
Thanks for the quick response! I prefer if we can simplify this. Why would not a socket (java.net.ServerSocket) work with Thrift? Then again is there a way for the live test to assert statistics published via the external CEP? Thanks On Sun, Aug 30, 2015 at 12:07 AM, Akila Ravihansa Perera wrot

[Dev] PCA Product Distribution Folder Structure

2015-08-29 Thread Imesh Gunaratne
Hi Devs, I think we need to follow the same convention we are following for other distributions [1], [2] for $subject, currently it does not have a modules folder [2]. This problem is also there in the CLI [4]. [1] https://github.com/apache/stratos/tree/stratos-4.1.x/products/stratos/modules [2]

Re: [Dev] PCA Live Test is Failing

2015-08-29 Thread Akila Ravihansa Perera
Hi Imesh, I've added a test to verify PCA health stat publishing. For this you need to run a WSO2 CEP or Stratos server. Regular http sockets will not work with thrift protocol so I removed thrift socket creation from the test. Since this is a live test, it won't impact the build. Thanks. On Sun

[Dev] PCA Live Test is Failing

2015-08-29 Thread Imesh Gunaratne
Hi Akila, I see $subject in 4.1.x branch, any thoughts? [2015-08-29 23:59:06,219] INFO - [PythonAgentTestManager] [2015-08-29 23:59:06,184] DEBUG {cartridgeagentutils.py:check_ports_active} - Port '7712' is not active [2015-08-29 23:59:06,219] INFO - [PythonAgentTestManager] [2015-08-29 23:59:0

Re: [Dev] Stratos installing problem with kubernetes

2015-08-29 Thread Heshan Jayasinghe
Hi, Thank you Lasindu and Pubudu.I go through Lasindu's blog and install Stratos 4.1.1 with kubernetes. I go through Pubudu's guidelines but in kubernetes-vegrant-setup run.sh gives Error: /usr/local/bin/kubectl: cannot execute binary file (OSX Yosemite) i try to fixed this problem but i couldn