Hi SameeraK,

We can easily reproduce same the error if we configure workList in
registry.xml file and run a standalone G-Reg 5.0.0-SNAPSHOT instance  with
at least one additional user (in additional to the carbon.super admin user
) with role assigned as 'admin'. ( i .e configure workList in registry.xml
and start the server. Go to  'users and roles' , add a new user *select
user role as admin* for the newly created user. Now try with same the test
scenario manually. Notice that the management console notifications are not
generated as expected. Again in order to verify, if you remove the admin
role from the newly created user and try the same test scenario you will
notice that the management console notifications are getting generated as
expected)

Hence AFAIU the issue seems to be with user management component of Greg
pack and not connected with the registry.xml file modified from the TAF or
your test class.

Regards

On Wed, Nov 5, 2014 at 3:01 PM, Sameera Kannangara <[email protected]>
wrote:

> Hi DimuthuD,
>
> Please add attached jar as a patch to the G-Reg 5.0.0 pack you are using
> for testing.
> Pull request for the fix is merged just now.
>
>
> Thank you,
> SameeraK.
>
>
>
> On Wed, Nov 5, 2014 at 10:12 AM, Dimuthu De Lanerolle <[email protected]>
> wrote:
>
>> Hi Krishantha,
>>
>> I Will look into this.
>>
>> Regards
>>
>> On Tue, Nov 4, 2014 at 11:22 PM, Krishantha Samaraweera <
>> [email protected]> wrote:
>>
>>> Hi DimuthuD,
>>>
>>> Can you check what is going wrong. Please check backend management
>>> console subscription tests first. You can access to management console
>>> while running the tests and verify whether notifications are present.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>> On Tue, Nov 4, 2014 at 10:00 PM, Sameera Kannangara <[email protected]>
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I have created automation test class [1], for the jira reported at [2].
>>>>
>>>> This scenario is fixed and can be easily tested manually and verify the
>>>> fix.
>>>> However when running this test scenario using automation test class at
>>>> [1] management console notifications are not generated.
>>>>
>>>> Further more when try to test the same scenario on the server used for
>>>> the automation test, manual test previously verfied the fix fails as
>>>> notification are not shown in management console UI.
>>>>
>>>> But if we take the <G-Reg_HOME>/repository/conf/registry.xml file of
>>>> the server used for the automation test, replace the same file of a fresh
>>>> G-Reg 5.0.0-SNAPSHOT instance, management console notifications are
>>>> generated fine. Therefore fix can be verified.
>>>>
>>>> Fix for the reported jira can be located at [3].
>>>>
>>>> Thank you,
>>>> SameeraK.
>>>>
>>>> [1]
>>>> https://github.com/sameerak/product-greg/blob/REGISTRY-2332_tests/modules/integration/tests-ui-integration/tests-ui/src/test/java/org/wso2/carbon/greg/ui/test/notification/TestRegistry2332.java
>>>> [2] https://wso2.org/jira/browse/REGISTRY-2332
>>>> [3] https://github.com/wso2-dev/carbon-governance/pull/22
>>>>
>>>> --
>>>> *Sameera Kannangara*
>>>> Software Engineer
>>>> Platform TG; WSO2 Inc. http://wso2.com
>>>> Contact:
>>>> phone: +94719541577
>>>> Lean . Enterprise . Middleware
>>>>
>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> Dimuthu De Lanerolle
>> Software Engineer
>> WSO2 Inc.
>> lean . enterprise . middlewear.
>> http://wso2.com/
>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : [email protected]
>>
>>
>
>
> --
> *Sameera Kannangara*
> Software Engineer
> Platform TG; WSO2 Inc. http://wso2.com
> Contact:
> phone: +94719541577
> Lean . Enterprise . Middleware
>



-- 
Dimuthu De Lanerolle
Software Engineer
WSO2 Inc.
lean . enterprise . middlewear.
http://wso2.com/
Tel. : +94 11 2145345  Fax : +94 11 2145300  email : [email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to