aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-webapi
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2020-04-24 14:47:41 +0200
committersonartech <sonartech@sonarsource.com>2020-05-04 20:03:53 +0000
commitbe46fdae92760199df04ba7d6f251e6a91026f84 (patch)
treec23d7db3cab528bc2f236039740f689bb1892ace /server/sonar-webserver-webapi
parent919d1538b31a4c7366321e78450a0ad96e05c977 (diff)
downloadsonarqube-be46fdae92760199df04ba7d6f251e6a91026f84.tar.gz
sonarqube-be46fdae92760199df04ba7d6f251e6a91026f84.zip
SONAR-13297 Add new tutorials.jenkins.skipBitbucketPreReqs user setting key
Diffstat (limited to 'server/sonar-webserver-webapi')
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/SetSettingAction.java6
-rw-r--r--server/sonar-webserver-webapi/src/test/java/org/sonar/server/user/ws/SetSettingActionTest.java1
2 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/SetSettingAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/SetSettingAction.java
index 4b208c7ca2d..3ebcc785cd2 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/SetSettingAction.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/user/ws/SetSettingAction.java
@@ -57,7 +57,11 @@ public class SetSettingAction implements UsersWsAction {
.setRequired(true)
.setMaximumLength(100)
.setDescription("Setting key")
- .setPossibleValues("notifications.optOut", UserUpdater.NOTIFICATIONS_READ_DATE);
+ .setPossibleValues(
+ "tutorials.jenkins.skipBitbucketPreReqs",
+ "notifications.optOut",
+ UserUpdater.NOTIFICATIONS_READ_DATE
+ );
action.createParam(PARAM_VALUE)
.setRequired(true)
diff --git a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/user/ws/SetSettingActionTest.java b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/user/ws/SetSettingActionTest.java
index 2dd0af8b413..1efe8b80fed 100644
--- a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/user/ws/SetSettingActionTest.java
+++ b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/user/ws/SetSettingActionTest.java
@@ -124,6 +124,7 @@ public class SetSettingActionTest {
tuple("value", true, 4000));
assertThat(definition.param("key").possibleValues()).containsExactlyInAnyOrder(
+ "tutorials.jenkins.skipBitbucketPreReqs",
"notifications.optOut",
"notifications.readDate");
}