Browse Source

SONAR-9954 add hidden property sonar.editions.jsonUrl

with production default value
tags/6.7-RC1
Sébastien Lesaint 6 years ago
parent
commit
88a4c0d315

+ 1
- 1
server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java View File

@@ -114,7 +114,7 @@ public class ComputeEngineContainerImplTest {
+ 26 // level 1
+ 52 // content of DaoModule
+ 3 // content of EsSearchModule
+ 66 // content of CorePropertyDefinitions
+ 67 // content of CorePropertyDefinitions
+ 1 // StopFlagContainer
);
assertThat(

+ 10
- 0
sonar-core/src/main/java/org/sonar/core/config/CorePropertyDefinitions.java View File

@@ -47,6 +47,7 @@ public class CorePropertyDefinitions {
public static final String ORGANIZATIONS_CREATE_PERSONAL_ORG = "sonar.organizations.createPersonalOrg";
public static final String ONBOARDING_TUTORIAL_SHOW_TO_NEW_USERS = "sonar.onboardingTutorial.showToNewUsers";
public static final String DISABLE_NOTIFICATION_ON_BUILT_IN_QPROFILES = "sonar.builtInQualityProfiles.disableNotificationOnUpdate";
public static final String EDITIONS_CONFIG_URL = "sonar.editions.jsonUrl";

private CorePropertyDefinitions() {
// only static stuff
@@ -254,6 +255,15 @@ public class CorePropertyDefinitions {
.category(CATEGORY_ORGANIZATIONS)
.type(BOOLEAN)
.hidden()
.build(),

// EDITIONS
PropertyDefinition.builder(EDITIONS_CONFIG_URL)
.name("Defines URL of JSON file with the definitions of SonarSource editions.")
.defaultValue("https://resources.sonarsource.com/editions.json")
.category(CATEGORY_ORGANIZATIONS)
.type(BOOLEAN)
.hidden()
.build()));
return defs;
}

+ 1
- 1
sonar-core/src/test/java/org/sonar/core/config/CorePropertyDefinitionsTest.java View File

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

@Test

Loading…
Cancel
Save