diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2020-04-24 14:47:41 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-05-04 20:03:53 +0000 |
commit | be46fdae92760199df04ba7d6f251e6a91026f84 (patch) | |
tree | c23d7db3cab528bc2f236039740f689bb1892ace /server/sonar-webserver-webapi | |
parent | 919d1538b31a4c7366321e78450a0ad96e05c977 (diff) | |
download | sonarqube-be46fdae92760199df04ba7d6f251e6a91026f84.tar.gz sonarqube-be46fdae92760199df04ba7d6f251e6a91026f84.zip |
SONAR-13297 Add new tutorials.jenkins.skipBitbucketPreReqs user setting key
Diffstat (limited to 'server/sonar-webserver-webapi')
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"); } |