Hi Shani,

Remember that due to cache storage, you  need to restart the server in the
test case after the user claims are updated.

Thanks,

On Tue, Mar 17, 2015 at 9:43 AM, Saneth Dharmakeerthi <[email protected]>
wrote:

> Hi Shani,
>
> RemoteUserStoreManagerServiceClient [1]  has  setUserClaimValue() method.
> You can find the usage in [2]
>
> [1]
> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-common/admin-clients/src/main/java/org/wso2/am/admin/clients/user/RemoteUserStoreManagerServiceClient.java
>
> [2]
> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/sample/JWTTestCase.java
>
> Thanks and Best Regards,
>
> Saneth Dharmakeerthi
> Senior Software Engineer
> WSO2, Inc.
> Mobile: +94772325511
>
> On Tue, Mar 17, 2015 at 8:38 AM, Shani Ranasinghe <[email protected]> wrote:
>
>> Hi,
>>
>>
>> I need to write a test case for Application & subscription sharing
>> feature.
>>
>> For this, I require a user who has claims. I could not find how to add
>> claims for user. Please let me know if there are any references that I
>> could refer to in order to write this.
>>
>> --
>> Thanks and Regards
>> *,Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to