Hi,

I came across following issue while writing integration test case for dlc
queue path.
following are the steps of the test case.
1. Start queue subscriber to "dlctenant1.com/tenantQueue", user
'dlctenantuser' at 'dlctenant1.com' domain (this subscriber has set to
client acknowledgement mode as well).
2. Publish 1 queue message to "dlctenant1.com/tenantQueue".
3. Since subscriber never acknowledge, after retry 10 time this queue
message will be moved tenant's dlc queue.
4. This test case tests if a queue message exist in tenant's dlc queue and
it's not exist in super tenant admin's dlc queue. (there are two
assertions)
Test passed successfully in H2 embedded(normal) mode database, but same
test failed on H2 in-memory mode database with assertion failure.

As i understood following was the cause for this issue.
AFAIK mb test suite create tenant/super tenant users when integration test
suite starts. dlc queues for each tenant user/admin also creates when
creating tenant users/admins. Tenant users/admins are created in carbon
registry database (which is constant throughout the test suite) but dlc
queues are only created in H2 embedded(normal) database. Currently in H2
in-memory database mode dlc queues were never created for any of the tenant
user/admin. Because of this, dlc queue path can't be tested in H2 in-memory
mode.

How can we overcome this issue ? WDYT?

Regards,
-- 
Pumudu Ruhunage
Associate Software Engineer | WSO2 Inc
M: +94 779 664493  | http://wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to