Jean-Sebastien Delfino wrote:
I need to run the Tuscany tests with Java 2 security on. Looks like
java/sca/pom.xml already contains a 'security' profile to do that.
What do I need to put in my JRE/lib/security/tuscany.policy file?
Then do I only do mvn -Psecurity?
Does it make sense to run the unit tests and samples under that profile
in addition to the vtests and itests?
Hi Jean-Sebastien,
To run the mvn tests with security on, you either call out the security
profile by name, or provide a policy file as a property:
mvn test -P security
or
mvn "-Dtuscany.policy.file=file:///e:/tuscany.policy"
The contents of the policy file enables Tuscany code to perform certain
privileged operations. An example and other Tuscany security tips are
given in the wiki article
http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Running+Tuscany+with+Java+2+Security+Enabled
Right now the security policy file only runs itests and vtests. It is
possible to edit the pom and add the unit tests and samples, but not all
samples are security enabled, and may throw security exceptions. We
discussed this earlier and made a decision to keep the samples lean and
not littered with security code.
--
Thanks, Dan Becker