This didn't fail locally (I ran a verify including all the products with a
latest build). We might need to log some params etc... inside the test to
see what happens in Bamboo. Will do it today and we can see the results
with the next build in Bamboo.

Regards,

On Thu, Apr 19, 2012 at 3:27 PM, Senaka Fernando <[email protected]> wrote:

> Hi guys,
>
> If you debug the failure and test it, may be it will give a hint. Or else
> if it is not reproducible locally, let the test actually fail but printout
> the names of the failed schemas in the failure message
> (i.e. assertEquals(2, schemas.length, <MESSAGE).
>
> Thanks,
> Senaka.
>
>
> On Thu, Apr 19, 2012 at 1:47 PM, Vijitha Kumara <[email protected]> wrote:
>
>>
>> This seems bit strange, the real test case expects the length to be 2 but
>> the test failure complains it expects 3...
>>
>>
>> -----------------------------------------------------------------------------------------------------------------
>> build 18-Apr-2012 17:01:13 Failed tests:
>> build 18-Apr-2012 17:01:13  
>> testAddSchema(org.wso2.carbon.registry.governance.api.test.SchemaTestCase):
>> expected:<3> but was:<2>
>> build 18-Apr-2012 17:01:13
>> build 18-Apr-2012 17:01:13 Tests run: 233, Failures: 1, Errors: 0,
>> Skipped: 0
>>
>> -----------------------------------------------------------------------------------------------------------------
>>
>> Test case:
>>
>> -----------------------------------------------------------------------------------------------------------------
>> Schema[] schemas = schemaManager.findSchemas(new SchemaFilter() {
>>             public boolean matches(Schema schema) throws
>> GovernanceException {
>>                 if (schema.getAttribute("version").equals("0.01")) {
>>                     return true;
>>                 }
>>                 return false;
>>             }
>>         });
>>         *assertEquals(2, schemas.length);*
>>         assertEquals(newSchema.getId(), schemas[0].getId());
>>
>> -----------------------------------------------------------------------------------------------------------------
>>
>> Regards,
>>
>> On Thu, Apr 19, 2012 at 10:56 AM, Subash Chaturanga <[email protected]>wrote:
>>
>>>
>>>
>>> On Thu, Apr 19, 2012 at 10:41 AM, Subash Chaturanga <[email protected]>wrote:
>>>
>>>>
>>>>
>>>> On Thu, Apr 19, 2012 at 10:19 AM, Ishan Jayawardena <[email protected]>wrote:
>>>>
>>>>> Hi, please have a look at this error. Attached Log.
>>>>>
>>>>
>>>> Hi,  already saw this on bamboo logs and working on it, this is not
>>>> only due to a testng failure. But product-governance-services also fails.
>>>>
>>>> - governance stratos fails.
>>>>
>>> There was patch for this fix, and not yet commited. I think Dimuthu is
>>> looking in to this to commit the patch.
>>>
>>>
>>>> - 1 test failure and I am locally trying to reproduce this.(This was a
>>>> randomly failing test and we intentionally add this(+ two other tests) to
>>>> see the behavior of this, because we couldn't reproduce this locally in
>>>> anyway).
>>>>
>>>> Excluded SchemaTest until get fixed.
>>>
>>>>  Thanks
>>>>
>>>>
>>>>> Thanks,
>>>>> Ishan.
>>>>> --
>>>>> Ishan Jayawardena
>>>>> Software Engineer
>>>>> Integration Technologies Team
>>>>> WSO2, Inc. http://wso2.com/
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Subash Chaturanga
>>>> Software Engineer
>>>> WSO2 Inc. http://wso2.com
>>>>
>>>> email - [email protected]
>>>> phone - 077 2225922
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Subash Chaturanga
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com
>>>
>>> email - [email protected]
>>> phone - 077 2225922
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vijitha Kumara
>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>> email: [email protected]
>>
>> Lean . Enterprise . Middleware
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Senaka Fernando*
> Product Manager - WSO2 Governance Registry;
> Associate Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *
> Lean . Enterprise . Middleware
>
>


-- 
Vijitha Kumara
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: [email protected]

Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to