Explorar el Código

SONAR-8753 add hidden property sonar.organizations.createPersonalOrg

tags/6.3-RC1
Sébastien Lesaint hace 7 años
padre
commit
671678287d

+ 1
- 1
server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java Ver fichero

@@ -109,7 +109,7 @@ public class ComputeEngineContainerImplTest {
+ 25 // level 1
+ 47 // content of DaoModule
+ 3 // content of EsSearchModule
+ 56 // content of CorePropertyDefinitions
+ 57 // content of CorePropertyDefinitions
+ 1 // content of CePropertyDefinitions
);
assertThat(picoContainer.getParent().getParent().getParent().getParent()).isNull();

+ 8
- 0
sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java Ver fichero

@@ -44,6 +44,7 @@ public class CorePropertyDefinitions {

private static final String CATEGORY_ORGANIZATIONS = "organizations";
public static final String ORGANIZATIONS_ANYONE_CAN_CREATE = "sonar.organizations.anyoneCanCreate";
public static final String ORGANIZATIONS_CREATE_PERSONAL_ORG = "sonar.organizations.createPersonalOrg";

private CorePropertyDefinitions() {
// only static stuff
@@ -252,6 +253,13 @@ public class CorePropertyDefinitions {
.defaultValue(Boolean.toString(false))
.category(CATEGORY_ORGANIZATIONS)
.type(PropertyType.BOOLEAN)
.build(),
PropertyDefinition.builder(ORGANIZATIONS_CREATE_PERSONAL_ORG)
.name("Create an organization for each new user")
.defaultValue(Boolean.toString(false))
.category(CATEGORY_ORGANIZATIONS)
.type(PropertyType.BOOLEAN)
.hidden()
.build()));
return defs;
}

+ 1
- 1
sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java Ver fichero

@@ -33,7 +33,7 @@ public class CorePropertyDefinitionsTest {
@Test
public void all() {
List<PropertyDefinition> defs = CorePropertyDefinitions.all();
assertThat(defs).hasSize(58);
assertThat(defs).hasSize(59);
}

@Test

Cargando…
Cancelar
Guardar