jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angela Schreiber <anch...@adobe.com>
Subject Writing test cases
Date Thu, 16 Aug 2012 09:05:39 GMT
hi all

i was trying to get some minimal permission check enabled in
the current oak trunk and found that this causes a huge amount
of tests to fail.

reason: the tests use a guest-session expecting that that was
is granted all permissions, which isn't a realistic scenario.
the guest-session will only have very limited access rights
(e.g. read-only). please use a test-user or admin for tests
that require full access.

i had a quick look and found that fixing those issues will be
pretty cumbersome as every single test creates his own repo
and hardcodes the login. IMO it would be better to have some
basic test functionality provided both in oak-jcr and oak-core
that would make straight forward to refactor the way how
the repo is built and different sessions are obtained.


View raw message