Add missing permissions for TestNG 7.7
authorVladimir Petko <vladimir.petko@canonical.com>
Thu, 27 Mar 2025 11:19:44 +0000 (12:19 +0100)
committerMatthias Klose <doko@ubuntu.com>
Thu, 27 Mar 2025 11:19:44 +0000 (12:19 +0100)
Last-Update: 2023-03-24

TestNG has added more configuration properties, allow them in the minimal policy

Gbp-Pq: Name update-permission-test.patch

test/jdk/java/lang/ProcessHandle/PermissionTest.java
test/jdk/java/sql/testng/util/TestPolicy.java

index 92085e70bcb8b6215313778b2ded686399614eb4..6f3e0a3658c5f294a616cc49c0e82a64c58e987c 100644 (file)
@@ -219,6 +219,7 @@ class TestPolicy extends Policy {
         permissions.add(new PropertyPermission("testng.mode.dryrun", "read"));
         permissions.add(new PropertyPermission("testng.report.xml.name", "read"));
         permissions.add(new PropertyPermission("testng.timezone", "read"));
+        permissions.add(new PropertyPermission("testng.default.verbose", "read"));
         permissions.add(new ReflectPermission("suppressAccessChecks"));
         permissions.add(new FilePermission("<<ALL FILES>>", "execute"));
     }
index 013dfad563ca00a9b271fbf1473808c9ccad95dd..3e72480d7f77b38beee2be38df477cbb12a421e6 100644 (file)
@@ -114,6 +114,8 @@ public class TestPolicy extends Policy {
         permissions.add(new PropertyPermission("testng.mode.dryrun", "read"));
         permissions.add(new PropertyPermission("testng.report.xml.name", "read"));
         permissions.add(new PropertyPermission("testng.timezone", "read"));
+        permissions.add(new PropertyPermission("testng.default.verbose", "read"));
+        permissions.add(new PropertyPermission("testng.ignore.callback.skip", "read"));
         permissions.add(new ReflectPermission("suppressAccessChecks"));
         permissions.add(new FilePermission("<<ALL FILES>>",
                 "read, write, delete"));