Permalink
Browse files

Security Test fix - add permissions required to run under indy

  • Loading branch information...
1 parent e21d622 commit abec2cf907b4fc0fe390e29c3d1762d0205b87ff @jwagenleitner jwagenleitner committed Jul 4, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 security/groovy.policy
@@ -150,6 +150,7 @@ grant codeBase "file:/groovy/testSupport" {
//to grant a 'global' accessDeclaredPermission here.
grant codeBase "file:/groovy/security/-" {
permission java.lang.RuntimePermission "accessDeclaredMembers";
+ permission java.lang.RuntimePermission "getClassLoader";
};
grant codeBase "file:/groovy/security/testForbiddenPackage" {
@@ -198,6 +199,7 @@ grant codeBase "file:${user.dir}/src/test/groovy/ClosureMethodTest.groovy" {
};
grant codeBase "file:${user.dir}/src/test/groovy/ClosureWithDefaultParamTest.groovy" {
+ permission java.lang.RuntimePermission "getClassLoader";
permission java.io.FilePermission "src${/}test${/}-", "read";
// Required because test calls File.eachLine which eventually invokes

0 comments on commit abec2cf

Please sign in to comment.