8/16/2013 8:32:17 AM
is mainly to speed up server tests (the whole suite was taking about 50 minutes).
This also lowers the default to 200,000 down from 500,000.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
8/16/2013 8:22:49 AM
in a table for the multi-nodes scenario.
This patch also enables EhCache caching for Shiro and
refactors the Shiro Guice setup.
The shiro.ini file is only used for users and roles now,
the main section is now handled in the Guice module.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
8/13/2013 8:03:10 PM
Meyer <pierre@mouraf.org>
|
8/13/2013 8:01:20 PM
also enforces RBAC in the server tests. All calls are now made as
an admin user (who has all permissions).
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
8/13/2013 11:33:37 AM
Meyer <pierre@mouraf.org>
|
8/13/2013 11:31:44 AM
Meyer <pierre@mouraf.org>
|
|
|
|
|
8/9/2013 9:01:21 PM
Pierre-Alexandre Meyer <pierre@mouraf.org>
|
8/9/2013 5:57:13 PM
can be found on the wiki: https://github.com/killbill/killbill/wiki/Role-Based-Access-Control-(RBAC)
This first patch separates Multi-Tenancy from RBAC: moving forward, the Shiro filter
(and shiro.ini) will only be used for pure RBAC, regardless of Multi-Tenancy (we still
use internally various cryptography bits from Shiro for multi-tenancy authentication).
The main change in the server tests is that Multi-Tenancy is now enabled (the suite runs in its
own tenant). Since all calls go through the authentication flow, tests are a bit slower: between 300ms
to 500ms per call, resulting in a suite running a few minutes longer. On the upside, this found a
few bugs around Multi-Tenancy handling.
Among changes:
* fix a bug in DefaultAccountUserApi where the tenant_record_id wasn't populated on creation
* fix a bug in invoice and payment where the tenantId would be lost
* introduce X-Killbill-ApiKey and X-Killbill-ApiSecret headers for Multi-Tenancy authentication
* turn Multi-Tenancy on by default
* enable TestTenantFilter (no dependency on shiro.ini anymore)
* server tests timeouts have been increased (to work around slowness when priming Shiro)
* .idea: add misc. words to the dictionary
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|