You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Akila Ravihansa Perera <ra...@wso2.com> on 2015/11/11 14:35:16 UTC

PCA live test is failing

Hi,

Looks like PCA live test case for CEPHAModeTestCase is failing. Noticed few
issues in this test case.

 - Calling read() method in FIS does not guarantee that complete file is
loaded [1]
 - cepPort + 1 is confusing. Use a public const with the actual value [2]
 - Method name should be fixed to reflect the test case [3]
 - Always add proper logs with information needed to troubleshoot if the
test case fails [4, 5]

Shall we fix these issues please?

[1]
https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L87

[2]
https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L96

[3]
https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L73

[4]
https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L259

[5]
https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L160


Thanks.

-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

Blog: http://ravihansa3000.blogspot.com

Re: PCA live test is failing

Posted by Pubudu Gunatilaka <pu...@wso2.com>.
Yes. That would be better. Otherwise it would be hard to find the root
cause when tests are failing.

On Thu, Nov 12, 2015 at 9:16 PM, Akila Ravihansa Perera <ra...@wso2.com>
wrote:

> Great work Pubudu!
>
> Shall we enforce a min count for thread pool size in messaging event
> receivers? This will avoid mistakenly setting a value that is too low to
> handle the load.
>
> On Thu, Nov 12, 2015 at 4:08 PM, Isuru Haththotuwa <is...@apache.org>
> wrote:
>
>>
>>
>> On Thu, Nov 12, 2015 at 3:54 PM, Pubudu Gunatilaka <pu...@wso2.com>
>> wrote:
>>
>>> PCA live tests were failing due to not having enough threads in the
>>> thread pool. It is not the CEP HA mode test case but the agent startup test
>>> case which was failing as it was waiting for the complete topology event to
>>> receive. The event listener could not be started due to lack of threads.
>>>
>>> I increased the thread pool size and make it configurable so that we can
>>> increase the thread pool size when needed. I also fixed some of issues we
>>> had in test cases with commit -
>>> 443f20aefe5c77a826f9f0b2a95d1aee8b40f4da.
>>>
>> Good catch Pubudu!
>>
>>>
>>> Thank you!
>>>
>>> On Thu, Nov 12, 2015 at 12:24 AM, Akila Ravihansa Perera <
>>> ravihansa@wso2.com> wrote:
>>>
>>>> Thanks Pubudu!
>>>> Yes, I think it's better to use
>>>> IOUtils.toString(classLoader.getResourceAsStream(fileName)) to read the
>>>> config files here.
>>>>
>>>> I'm seeing lot of code duplication warnings in all test cases. We might
>>>> have to refactor the agent test cases.
>>>>
>>>> Thanks.
>>>>
>>>> On Wed, Nov 11, 2015 at 11:47 PM, Pubudu Gunatilaka <pu...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I will look into this. We may have to change [1] as well.
>>>>>
>>>>> [1] -
>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/PythonAgentIntegrationTest.java#L130
>>>>>
>>>>> Thank you!
>>>>>
>>>>> On Wed, Nov 11, 2015 at 7:05 PM, Akila Ravihansa Perera <
>>>>> ravihansa@wso2.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Looks like PCA live test case for CEPHAModeTestCase is failing.
>>>>>> Noticed few issues in this test case.
>>>>>>
>>>>>>  - Calling read() method in FIS does not guarantee that complete file
>>>>>> is loaded [1]
>>>>>>  - cepPort + 1 is confusing. Use a public const with the actual value
>>>>>> [2]
>>>>>>  - Method name should be fixed to reflect the test case [3]
>>>>>>  - Always add proper logs with information needed to troubleshoot if
>>>>>> the test case fails [4, 5]
>>>>>>
>>>>>> Shall we fix these issues please?
>>>>>>
>>>>>> [1]
>>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L87
>>>>>>
>>>>>> [2]
>>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L96
>>>>>>
>>>>>> [3]
>>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L73
>>>>>>
>>>>>> [4]
>>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L259
>>>>>>
>>>>>> [5]
>>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L160
>>>>>>
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> --
>>>>>> Akila Ravihansa Perera
>>>>>> WSO2 Inc.;  http://wso2.com/
>>>>>>
>>>>>> Blog: http://ravihansa3000.blogspot.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Pubudu Gunatilaka*
>>>>> Committer and PMC Member - Apache Stratos
>>>>> Software Engineer
>>>>> WSO2, Inc.: http://wso2.com
>>>>> mobile : +94774079049 <%2B94772207163>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Akila Ravihansa Perera
>>>> WSO2 Inc.;  http://wso2.com/
>>>>
>>>> Blog: http://ravihansa3000.blogspot.com
>>>>
>>>
>>>
>>>
>>> --
>>> *Pubudu Gunatilaka*
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> mobile : +94774079049
>>>
>>> --
>>> <%2B94772207163>
>>> <%2B94772207163>
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> <%2B94772207163>
>>> +94 716 358 048 <%2B94772207163>* <http://wso2.com/>*
>>>
>>>
>>> * <http://wso2.com/>*
>>>
>>>
>>>
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774079049 <%2B94772207163>

Re: PCA live test is failing

Posted by Akila Ravihansa Perera <ra...@wso2.com>.
Great work Pubudu!

Shall we enforce a min count for thread pool size in messaging event
receivers? This will avoid mistakenly setting a value that is too low to
handle the load.

On Thu, Nov 12, 2015 at 4:08 PM, Isuru Haththotuwa <is...@apache.org>
wrote:

>
>
> On Thu, Nov 12, 2015 at 3:54 PM, Pubudu Gunatilaka <pu...@wso2.com>
> wrote:
>
>> PCA live tests were failing due to not having enough threads in the
>> thread pool. It is not the CEP HA mode test case but the agent startup test
>> case which was failing as it was waiting for the complete topology event to
>> receive. The event listener could not be started due to lack of threads.
>>
>> I increased the thread pool size and make it configurable so that we can
>> increase the thread pool size when needed. I also fixed some of issues we
>> had in test cases with commit - 443f20aefe5c77a826f9f0b2a95d1aee8b40f4da.
>>
> Good catch Pubudu!
>
>>
>> Thank you!
>>
>> On Thu, Nov 12, 2015 at 12:24 AM, Akila Ravihansa Perera <
>> ravihansa@wso2.com> wrote:
>>
>>> Thanks Pubudu!
>>> Yes, I think it's better to use
>>> IOUtils.toString(classLoader.getResourceAsStream(fileName)) to read the
>>> config files here.
>>>
>>> I'm seeing lot of code duplication warnings in all test cases. We might
>>> have to refactor the agent test cases.
>>>
>>> Thanks.
>>>
>>> On Wed, Nov 11, 2015 at 11:47 PM, Pubudu Gunatilaka <pu...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I will look into this. We may have to change [1] as well.
>>>>
>>>> [1] -
>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/PythonAgentIntegrationTest.java#L130
>>>>
>>>> Thank you!
>>>>
>>>> On Wed, Nov 11, 2015 at 7:05 PM, Akila Ravihansa Perera <
>>>> ravihansa@wso2.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Looks like PCA live test case for CEPHAModeTestCase is failing.
>>>>> Noticed few issues in this test case.
>>>>>
>>>>>  - Calling read() method in FIS does not guarantee that complete file
>>>>> is loaded [1]
>>>>>  - cepPort + 1 is confusing. Use a public const with the actual value
>>>>> [2]
>>>>>  - Method name should be fixed to reflect the test case [3]
>>>>>  - Always add proper logs with information needed to troubleshoot if
>>>>> the test case fails [4, 5]
>>>>>
>>>>> Shall we fix these issues please?
>>>>>
>>>>> [1]
>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L87
>>>>>
>>>>> [2]
>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L96
>>>>>
>>>>> [3]
>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L73
>>>>>
>>>>> [4]
>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L259
>>>>>
>>>>> [5]
>>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L160
>>>>>
>>>>>
>>>>> Thanks.
>>>>>
>>>>> --
>>>>> Akila Ravihansa Perera
>>>>> WSO2 Inc.;  http://wso2.com/
>>>>>
>>>>> Blog: http://ravihansa3000.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Pubudu Gunatilaka*
>>>> Committer and PMC Member - Apache Stratos
>>>> Software Engineer
>>>> WSO2, Inc.: http://wso2.com
>>>> mobile : +94774079049 <%2B94772207163>
>>>>
>>>>
>>>
>>>
>>> --
>>> Akila Ravihansa Perera
>>> WSO2 Inc.;  http://wso2.com/
>>>
>>> Blog: http://ravihansa3000.blogspot.com
>>>
>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774079049
>>
>> --
>> <%2B94772207163>
>> <%2B94772207163>
>> Thanks and Regards,
>>
>> Isuru H.
>> <%2B94772207163>
>> +94 716 358 048 <%2B94772207163>* <http://wso2.com/>*
>>
>>
>> * <http://wso2.com/>*
>>
>>
>>


-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

Blog: http://ravihansa3000.blogspot.com

Re: PCA live test is failing

Posted by Isuru Haththotuwa <is...@apache.org>.
On Thu, Nov 12, 2015 at 3:54 PM, Pubudu Gunatilaka <pu...@wso2.com> wrote:

> PCA live tests were failing due to not having enough threads in the thread
> pool. It is not the CEP HA mode test case but the agent startup test case
> which was failing as it was waiting for the complete topology event to
> receive. The event listener could not be started due to lack of threads.
>
> I increased the thread pool size and make it configurable so that we can
> increase the thread pool size when needed. I also fixed some of issues we
> had in test cases with commit - 443f20aefe5c77a826f9f0b2a95d1aee8b40f4da.
>
Good catch Pubudu!

>
> Thank you!
>
> On Thu, Nov 12, 2015 at 12:24 AM, Akila Ravihansa Perera <
> ravihansa@wso2.com> wrote:
>
>> Thanks Pubudu!
>> Yes, I think it's better to use
>> IOUtils.toString(classLoader.getResourceAsStream(fileName)) to read the
>> config files here.
>>
>> I'm seeing lot of code duplication warnings in all test cases. We might
>> have to refactor the agent test cases.
>>
>> Thanks.
>>
>> On Wed, Nov 11, 2015 at 11:47 PM, Pubudu Gunatilaka <pu...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I will look into this. We may have to change [1] as well.
>>>
>>> [1] -
>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/PythonAgentIntegrationTest.java#L130
>>>
>>> Thank you!
>>>
>>> On Wed, Nov 11, 2015 at 7:05 PM, Akila Ravihansa Perera <
>>> ravihansa@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> Looks like PCA live test case for CEPHAModeTestCase is failing. Noticed
>>>> few issues in this test case.
>>>>
>>>>  - Calling read() method in FIS does not guarantee that complete file
>>>> is loaded [1]
>>>>  - cepPort + 1 is confusing. Use a public const with the actual value
>>>> [2]
>>>>  - Method name should be fixed to reflect the test case [3]
>>>>  - Always add proper logs with information needed to troubleshoot if
>>>> the test case fails [4, 5]
>>>>
>>>> Shall we fix these issues please?
>>>>
>>>> [1]
>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L87
>>>>
>>>> [2]
>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L96
>>>>
>>>> [3]
>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L73
>>>>
>>>> [4]
>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L259
>>>>
>>>> [5]
>>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L160
>>>>
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> Akila Ravihansa Perera
>>>> WSO2 Inc.;  http://wso2.com/
>>>>
>>>> Blog: http://ravihansa3000.blogspot.com
>>>>
>>>
>>>
>>>
>>> --
>>> *Pubudu Gunatilaka*
>>> Committer and PMC Member - Apache Stratos
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> mobile : +94774079049 <%2B94772207163>
>>>
>>>
>>
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774079049
>
> --
> <%2B94772207163>
> <%2B94772207163>
> Thanks and Regards,
>
> Isuru H.
> <%2B94772207163>
> +94 716 358 048 <%2B94772207163>* <http://wso2.com/>*
>
>
> * <http://wso2.com/>*
>
>
>

Re: PCA live test is failing

Posted by Pubudu Gunatilaka <pu...@wso2.com>.
PCA live tests were failing due to not having enough threads in the thread
pool. It is not the CEP HA mode test case but the agent startup test case
which was failing as it was waiting for the complete topology event to
receive. The event listener could not be started due to lack of threads.

I increased the thread pool size and make it configurable so that we can
increase the thread pool size when needed. I also fixed some of issues we
had in test cases with commit - 443f20aefe5c77a826f9f0b2a95d1aee8b40f4da.

Thank you!

On Thu, Nov 12, 2015 at 12:24 AM, Akila Ravihansa Perera <ravihansa@wso2.com
> wrote:

> Thanks Pubudu!
> Yes, I think it's better to use
> IOUtils.toString(classLoader.getResourceAsStream(fileName)) to read the
> config files here.
>
> I'm seeing lot of code duplication warnings in all test cases. We might
> have to refactor the agent test cases.
>
> Thanks.
>
> On Wed, Nov 11, 2015 at 11:47 PM, Pubudu Gunatilaka <pu...@wso2.com>
> wrote:
>
>> Hi,
>>
>> I will look into this. We may have to change [1] as well.
>>
>> [1] -
>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/PythonAgentIntegrationTest.java#L130
>>
>> Thank you!
>>
>> On Wed, Nov 11, 2015 at 7:05 PM, Akila Ravihansa Perera <
>> ravihansa@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Looks like PCA live test case for CEPHAModeTestCase is failing. Noticed
>>> few issues in this test case.
>>>
>>>  - Calling read() method in FIS does not guarantee that complete file is
>>> loaded [1]
>>>  - cepPort + 1 is confusing. Use a public const with the actual value [2]
>>>  - Method name should be fixed to reflect the test case [3]
>>>  - Always add proper logs with information needed to troubleshoot if the
>>> test case fails [4, 5]
>>>
>>> Shall we fix these issues please?
>>>
>>> [1]
>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L87
>>>
>>> [2]
>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L96
>>>
>>> [3]
>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L73
>>>
>>> [4]
>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L259
>>>
>>> [5]
>>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L160
>>>
>>>
>>> Thanks.
>>>
>>> --
>>> Akila Ravihansa Perera
>>> WSO2 Inc.;  http://wso2.com/
>>>
>>> Blog: http://ravihansa3000.blogspot.com
>>>
>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774079049 <%2B94772207163>
>>
>>
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774079049 <%2B94772207163>

Re: PCA live test is failing

Posted by Akila Ravihansa Perera <ra...@wso2.com>.
Thanks Pubudu!
Yes, I think it's better to use
IOUtils.toString(classLoader.getResourceAsStream(fileName)) to read the
config files here.

I'm seeing lot of code duplication warnings in all test cases. We might
have to refactor the agent test cases.

Thanks.

On Wed, Nov 11, 2015 at 11:47 PM, Pubudu Gunatilaka <pu...@wso2.com>
wrote:

> Hi,
>
> I will look into this. We may have to change [1] as well.
>
> [1] -
> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/PythonAgentIntegrationTest.java#L130
>
> Thank you!
>
> On Wed, Nov 11, 2015 at 7:05 PM, Akila Ravihansa Perera <
> ravihansa@wso2.com> wrote:
>
>> Hi,
>>
>> Looks like PCA live test case for CEPHAModeTestCase is failing. Noticed
>> few issues in this test case.
>>
>>  - Calling read() method in FIS does not guarantee that complete file is
>> loaded [1]
>>  - cepPort + 1 is confusing. Use a public const with the actual value [2]
>>  - Method name should be fixed to reflect the test case [3]
>>  - Always add proper logs with information needed to troubleshoot if the
>> test case fails [4, 5]
>>
>> Shall we fix these issues please?
>>
>> [1]
>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L87
>>
>> [2]
>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L96
>>
>> [3]
>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L73
>>
>> [4]
>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L259
>>
>> [5]
>> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L160
>>
>>
>> Thanks.
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774079049 <%2B94772207163>
>
>


-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

Blog: http://ravihansa3000.blogspot.com

Re: PCA live test is failing

Posted by Pubudu Gunatilaka <pu...@wso2.com>.
Hi,

I will look into this. We may have to change [1] as well.

[1] -
https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/PythonAgentIntegrationTest.java#L130

Thank you!

On Wed, Nov 11, 2015 at 7:05 PM, Akila Ravihansa Perera <ra...@wso2.com>
wrote:

> Hi,
>
> Looks like PCA live test case for CEPHAModeTestCase is failing. Noticed
> few issues in this test case.
>
>  - Calling read() method in FIS does not guarantee that complete file is
> loaded [1]
>  - cepPort + 1 is confusing. Use a public const with the actual value [2]
>  - Method name should be fixed to reflect the test case [3]
>  - Always add proper logs with information needed to troubleshoot if the
> test case fails [4, 5]
>
> Shall we fix these issues please?
>
> [1]
> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L87
>
> [2]
> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L96
>
> [3]
> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L73
>
> [4]
> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L259
>
> [5]
> https://github.com/apache/stratos/blob/stratos-4.1.x/products/python-cartridge-agent/modules/integration/test-integration/src/test/java/org/apache/stratos/python/cartridge/agent/integration/tests/CEPHAModeTestCase.java#L160
>
>
> Thanks.
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774079049 <%2B94772207163>