Hi Lasantha, This is exactly what I needed. Had to struggle a bit to connect to the test server from a Python client but managed to do that after couple of tweaks. I faced an issue since we cannot define the cipher set to be used in ThriftTestServer. Therefore, ThriftDataReceiver will get initialized with default set of parameters for TSSLTransportParameters. I'd like to suggest that we provide a method to customize these SSL parameters.
Thanks a lot for the prompt response. This was really helpful :) On Sun, Aug 30, 2015 at 3:20 PM, Lasantha Fernando <[email protected]> wrote: > Hi Akila, > > There is a ThriftTestServer we've written for tests in > carbon-analytics-common. You can find an example here [1]. Also you can > find other examples in the databridge-agent test cases. Can you go through > them and see if that fits your purpose? > > [1] > https://github.com/wso2/carbon-analytics-common/blob/master/components/data-bridge/org.wso2.carbon.databridge.agent/src/test/java/org/wso2/carbon/databridge/agent/test/thrift/ThriftTestServer.java > > Thanks, > Lasantha > > On 30 August 2015 at 12:59, Akila Ravihansa Perera <[email protected]> > wrote: > >> Hi, >> >> I'm looking for a way to mock the Thrift receiver in CEP. My requirement >> is to write an integration test to assert stat publishing functionality (to >> CEP via Thrift) in my Python app. I'm developing the automation test cases >> using TestNG framework so I can use any Java based library. Is this >> possible by using regular Java sockets? >> >> I'd rather prefer to start an embedded CEP Thrift receiver in my test >> method and verify the functionality. Appreciate any help regarding this. >> >> Thanks. >> -- >> Akila Ravihansa Perera >> WSO2 Inc.; http://wso2.com/ >> >> Blog: http://ravihansa3000.blogspot.com >> > > > > -- > *Lasantha Fernando* > Senior Software Engineer - Data Technologies Team > WSO2 Inc. http://wso2.com > > email: [email protected] > mobile: (+94) 71 5247551 > -- Akila Ravihansa Perera WSO2 Inc.; http://wso2.com/ Blog: http://ravihansa3000.blogspot.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
