aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-07-06 11:13:44 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-07-06 14:57:13 +0200
commit321ee8c584cc938b262393a7de3be88fa04d17df (patch)
treec8c71dbb0c07bd1abab0b56cbaec7cc4fbc59531 /plugins
parent02f6e665a2b33730d3fd4e3949460022768fd854 (diff)
downloadsonarqube-321ee8c584cc938b262393a7de3be88fa04d17df.tar.gz
sonarqube-321ee8c584cc938b262393a7de3be88fa04d17df.zip
SONAR-3618 Better naming of ResourcePermissioning methods
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/ApplyProjectRolesDecorator.java4
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/DefaultResourcePermissioning.java20
-rw-r--r--plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/ApplyProjectRolesDecoratorTest.java12
-rw-r--r--plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/DefaultResourcePermissioningTest.java70
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles-result.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions-result.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_unknown_group-result.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_unknown_group-result.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_unknown_group.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_unknown_group.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_users-result.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_users-result.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_users.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_users.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole-result.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions-result.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_anyone-result.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_anyone-result.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_anyone.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_anyone.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_group_not_found-result.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_group_not_found-result.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_group_not_found.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_group_not_found.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_not_persisted-result.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_not_persisted-result.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_not_persisted.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_not_persisted.xml)0
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/hasRoles.xml (renamed from plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/hasPermissions.xml)0
19 files changed, 53 insertions, 53 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/ApplyProjectRolesDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/ApplyProjectRolesDecorator.java
index ba0e975295e..1e6a5519782 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/ApplyProjectRolesDecorator.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/ApplyProjectRolesDecorator.java
@@ -40,12 +40,12 @@ public class ApplyProjectRolesDecorator implements Decorator {
public void decorate(Resource resource, DecoratorContext context) {
if (shouldDecorateResource(resource)) {
- resourcePermissioning.grantDefaultPermissions(resource);
+ resourcePermissioning.grantDefaultRoles(resource);
}
}
private boolean shouldDecorateResource(Resource resource) {
- return resource.getId() != null && isProject(resource) && !resourcePermissioning.hasPermissions(resource);
+ return resource.getId() != null && isProject(resource) && !resourcePermissioning.hasRoles(resource);
}
private boolean isProject(Resource resource) {
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/DefaultResourcePermissioning.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/DefaultResourcePermissioning.java
index db88d0643a2..15777e3075c 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/DefaultResourcePermissioning.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/security/DefaultResourcePermissioning.java
@@ -61,7 +61,7 @@ public class DefaultResourcePermissioning implements ResourcePermissioning, Batc
this.myBatis = myBatis;
}
- public boolean hasPermissions(Resource resource) {
+ public boolean hasRoles(Resource resource) {
if (resource.getId() != null) {
SqlSession session = myBatis.openSession();
try {
@@ -76,7 +76,7 @@ public class DefaultResourcePermissioning implements ResourcePermissioning, Batc
return false;
}
- public void addUserPermissions(Resource resource, String login, String role) {
+ public void grantUserRole(Resource resource, String login, String role) {
if (resource.getId() != null) {
SqlSession session = myBatis.openSession();
try {
@@ -95,7 +95,7 @@ public class DefaultResourcePermissioning implements ResourcePermissioning, Batc
}
}
- public void addGroupPermissions(Resource resource, String groupName, String role) {
+ public void grantGroupRole(Resource resource, String groupName, String role) {
if (resource.getId() != null) {
SqlSession session = myBatis.openSession();
try {
@@ -118,14 +118,14 @@ public class DefaultResourcePermissioning implements ResourcePermissioning, Batc
}
}
- public void grantDefaultPermissions(Resource resource) {
+ public void grantDefaultRoles(Resource resource) {
if (resource.getId() != null) {
SqlSession session = myBatis.openSession();
try {
- removePermissions(resource, session);
- grantDefaultPermissions(resource, UserRole.ADMIN, session);
- grantDefaultPermissions(resource, UserRole.USER, session);
- grantDefaultPermissions(resource, UserRole.CODEVIEWER, session);
+ removeRoles(resource, session);
+ grantDefaultRoles(resource, UserRole.ADMIN, session);
+ grantDefaultRoles(resource, UserRole.USER, session);
+ grantDefaultRoles(resource, UserRole.CODEVIEWER, session);
session.commit();
} finally {
MyBatis.closeQuietly(session);
@@ -133,14 +133,14 @@ public class DefaultResourcePermissioning implements ResourcePermissioning, Batc
}
}
- private void removePermissions(Resource resource, SqlSession session) {
+ private void removeRoles(Resource resource, SqlSession session) {
Long resourceId = new Long(resource.getId());
RoleMapper mapper = session.getMapper(RoleMapper.class);
mapper.deleteGroupRolesByResourceId(resourceId);
mapper.deleteUserRolesByResourceId(resourceId);
}
- private void grantDefaultPermissions(Resource resource, String role, SqlSession session) {
+ private void grantDefaultRoles(Resource resource, String role, SqlSession session) {
UserMapper userMapper = session.getMapper(UserMapper.class);
RoleMapper roleMapper = session.getMapper(RoleMapper.class);
String[] groupNames = settings.getStringArrayBySeparator("sonar.role." + role + "." + resource.getQualifier() + ".defaultGroups", ",");
diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/ApplyProjectRolesDecoratorTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/ApplyProjectRolesDecoratorTest.java
index cd212425246..1541f7eb6b8 100644
--- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/ApplyProjectRolesDecoratorTest.java
+++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/ApplyProjectRolesDecoratorTest.java
@@ -41,11 +41,11 @@ public class ApplyProjectRolesDecoratorTest {
public void doNotApplySecurityWhenExistingPermissions() {
Project project = new Project("project");
project.setId(10);
- when(resourcePermissioning.hasPermissions(project)).thenReturn(true);
+ when(resourcePermissioning.hasRoles(project)).thenReturn(true);
decorator.decorate(project, null);
- verify(resourcePermissioning, never()).grantDefaultPermissions(project);
+ verify(resourcePermissioning, never()).grantDefaultRoles(project);
}
@Test
@@ -53,22 +53,22 @@ public class ApplyProjectRolesDecoratorTest {
Project project = new Project("project");
Project module = new Project("module").setParent(project);
module.setId(10);
- when(resourcePermissioning.hasPermissions(project)).thenReturn(false);
+ when(resourcePermissioning.hasRoles(project)).thenReturn(false);
decorator.decorate(module, null);
- verify(resourcePermissioning, never()).grantDefaultPermissions(module);
+ verify(resourcePermissioning, never()).grantDefaultRoles(module);
}
@Test
public void applySecurityWhenNoPermissions() {
Project project = new Project("project");
project.setId(10);
- when(resourcePermissioning.hasPermissions(project)).thenReturn(false);
+ when(resourcePermissioning.hasRoles(project)).thenReturn(false);
decorator.decorate(project, null);
- verify(resourcePermissioning).grantDefaultPermissions(project);
+ verify(resourcePermissioning).grantDefaultRoles(project);
}
}
diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/DefaultResourcePermissioningTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/DefaultResourcePermissioningTest.java
index 6c0d86cd088..e671f9bdc19 100644
--- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/DefaultResourcePermissioningTest.java
+++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/security/DefaultResourcePermissioningTest.java
@@ -34,99 +34,99 @@ public class DefaultResourcePermissioningTest extends AbstractDaoTestCase {
private Resource project = new Project("project").setId(123);
@Test
- public void addGroupPermissions() {
- setupData("addGroupPermissions");
+ public void grantGroupRole() {
+ setupData("grantGroupRole");
DefaultResourcePermissioning permissioning = new DefaultResourcePermissioning(new Settings(), getMyBatis());
- permissioning.addGroupPermissions(project, "sonar-administrators", "admin");
+ permissioning.grantGroupRole(project, "sonar-administrators", "admin");
- checkTables("addGroupPermissions", "group_roles");
+ checkTables("grantGroupRole", "group_roles");
}
@Test
- public void addGroupPermissions_anyone() {
- setupData("addGroupPermissions_anyone");
+ public void grantGroupRole_anyone() {
+ setupData("grantGroupRole_anyone");
DefaultResourcePermissioning permissioning = new DefaultResourcePermissioning(new Settings(), getMyBatis());
- permissioning.addGroupPermissions(project, DefaultGroups.ANYONE, "admin");
+ permissioning.grantGroupRole(project, DefaultGroups.ANYONE, "admin");
- checkTables("addGroupPermissions_anyone", "group_roles");
+ checkTables("grantGroupRole_anyone", "group_roles");
}
@Test
- public void addGroupPermissions_ignore_if_group_not_found() {
- setupData("addGroupPermissions_ignore_if_group_not_found");
+ public void grantGroupRole_ignore_if_group_not_found() {
+ setupData("grantGroupRole_ignore_if_group_not_found");
DefaultResourcePermissioning permissioning = new DefaultResourcePermissioning(new Settings(), getMyBatis());
- permissioning.addGroupPermissions(project, "not_found", "admin");
+ permissioning.grantGroupRole(project, "not_found", "admin");
- checkTables("addGroupPermissions_ignore_if_group_not_found", "group_roles");
+ checkTables("grantGroupRole_ignore_if_group_not_found", "group_roles");
}
@Test
- public void addGroupPermissions_ignore_if_not_persisted() {
- setupData("addGroupPermissions_ignore_if_not_persisted");
+ public void grantGroupRole_ignore_if_not_persisted() {
+ setupData("grantGroupRole_ignore_if_not_persisted");
DefaultResourcePermissioning permissioning = new DefaultResourcePermissioning(new Settings(), getMyBatis());
Project resourceWithoutId = new Project("");
- permissioning.addGroupPermissions(resourceWithoutId, "sonar-users", "admin");
+ permissioning.grantGroupRole(resourceWithoutId, "sonar-users", "admin");
- checkTables("addGroupPermissions_ignore_if_not_persisted", "group_roles");
+ checkTables("grantGroupRole_ignore_if_not_persisted", "group_roles");
}
@Test
- public void grantDefaultPermissions() {
- setupData("grantDefaultPermissions");
+ public void grantDefaultRoles() {
+ setupData("grantDefaultRoles");
Settings settings = new Settings(new PropertyDefinitions(DefaultResourcePermissioning.class));
DefaultResourcePermissioning permissioning = new DefaultResourcePermissioning(settings, getMyBatis());
- permissioning.grantDefaultPermissions(project);
+ permissioning.grantDefaultRoles(project);
- checkTables("grantDefaultPermissions", "user_roles", "group_roles");
+ checkTables("grantDefaultRoles", "user_roles", "group_roles");
}
@Test
- public void grantDefaultPermissions_unknown_group() {
- setupData("grantDefaultPermissions_unknown_group");
+ public void grantDefaultRoles_unknown_group() {
+ setupData("grantDefaultRoles_unknown_group");
Settings settings = new Settings();
settings.setProperty("sonar.role.admin.TRK.defaultGroups", "sonar-administrators,unknown");
DefaultResourcePermissioning permissioning = new DefaultResourcePermissioning(settings, getMyBatis());
- permissioning.grantDefaultPermissions(project);
+ permissioning.grantDefaultRoles(project);
- checkTables("grantDefaultPermissions_unknown_group", "group_roles");
+ checkTables("grantDefaultRoles_unknown_group", "group_roles");
}
@Test
- public void grantDefaultPermissions_users() {
- setupData("grantDefaultPermissions_users");
+ public void grantDefaultRoles_users() {
+ setupData("grantDefaultRoles_users");
Settings settings = new Settings();
settings.setProperty("sonar.role.admin.TRK.defaultUsers", "marius,disabled,notfound");
DefaultResourcePermissioning permissioning = new DefaultResourcePermissioning(settings, getMyBatis());
- permissioning.grantDefaultPermissions(project);
+ permissioning.grantDefaultRoles(project);
- checkTables("grantDefaultPermissions_users", "user_roles");
+ checkTables("grantDefaultRoles_users", "user_roles");
}
@Test
- public void hasPermissions() {
- setupData("hasPermissions");
+ public void hasRoles() {
+ setupData("hasRoles");
DefaultResourcePermissioning permissioning = new DefaultResourcePermissioning(new Settings(), getMyBatis());
// no groups and at least one user
- assertThat(permissioning.hasPermissions(new Project("only_users").setId(1))).isTrue();
+ assertThat(permissioning.hasRoles(new Project("only_users").setId(1))).isTrue();
// no users and at least one group
- assertThat(permissioning.hasPermissions(new Project("only_groups").setId(2))).isTrue();
+ assertThat(permissioning.hasRoles(new Project("only_groups").setId(2))).isTrue();
// groups and users
- assertThat(permissioning.hasPermissions(new Project("groups_and_users").setId(3))).isTrue();
+ assertThat(permissioning.hasRoles(new Project("groups_and_users").setId(3))).isTrue();
// no groups, no users
- assertThat(permissioning.hasPermissions(new Project("no_groups_no_users").setId(4))).isFalse();
+ assertThat(permissioning.hasRoles(new Project("no_groups_no_users").setId(4))).isFalse();
// does not exist
- assertThat(permissioning.hasPermissions(new Project("not_found"))).isFalse();
+ assertThat(permissioning.hasRoles(new Project("not_found"))).isFalse();
}
} \ No newline at end of file
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions-result.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles-result.xml
index 23b0c67e69c..23b0c67e69c 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions-result.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles-result.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles.xml
index 21a4dda2ccf..21a4dda2ccf 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_unknown_group-result.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_unknown_group-result.xml
index ef56a12934c..ef56a12934c 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_unknown_group-result.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_unknown_group-result.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_unknown_group.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_unknown_group.xml
index 21a4dda2ccf..21a4dda2ccf 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_unknown_group.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_unknown_group.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_users-result.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_users-result.xml
index caff65f9e21..caff65f9e21 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_users-result.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_users-result.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_users.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_users.xml
index 7c5f6c5d347..7c5f6c5d347 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultPermissions_users.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantDefaultRoles_users.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions-result.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole-result.xml
index db7b21199a5..db7b21199a5 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions-result.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole-result.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole.xml
index 6a4d9c92410..6a4d9c92410 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_anyone-result.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_anyone-result.xml
index 4b48bf9e59a..4b48bf9e59a 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_anyone-result.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_anyone-result.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_anyone.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_anyone.xml
index 6a4d9c92410..6a4d9c92410 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_anyone.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_anyone.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_group_not_found-result.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_group_not_found-result.xml
index 78695dd52b2..78695dd52b2 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_group_not_found-result.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_group_not_found-result.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_group_not_found.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_group_not_found.xml
index 78695dd52b2..78695dd52b2 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_group_not_found.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_group_not_found.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_not_persisted-result.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_not_persisted-result.xml
index 78695dd52b2..78695dd52b2 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_not_persisted-result.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_not_persisted-result.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_not_persisted.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_not_persisted.xml
index 78695dd52b2..78695dd52b2 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/addGroupPermissions_ignore_if_not_persisted.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/grantGroupRole_ignore_if_not_persisted.xml
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/hasPermissions.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/hasRoles.xml
index 3d5f9a5ecf2..3d5f9a5ecf2 100644
--- a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/hasPermissions.xml
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/security/DefaultResourcePermissioningTest/hasRoles.xml