]> source.dussan.org Git - sonarqube.git/commit
SONAR-9940 add WS api/editions/apply_license (mocked implementation)
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 12 Oct 2017 14:50:31 +0000 (16:50 +0200)
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>
Mon, 23 Oct 2017 15:01:13 +0000 (08:01 -0700)
commita49db7d096955fd4586a000ef8c8ff8b2ae5a405
tree82b0dc74dcbaaccc00711df046a96df9f23302e7
parent01a14f1ac3e23faa8c213069a9bab099523ea8de
SONAR-9940 add WS api/editions/apply_license (mocked implementation)

edition key is the whole license
if license contains string "manual", the state will be changed to MANUAL_IN_PROGRESS
if license contains string "done", the license will be applies without requiring a restart
otherwise state will go to AUTOMATIC_IN_PROGRESS
server/sonar-server/src/main/java/org/sonar/server/edition/EditionsWsModule.java
server/sonar-server/src/main/java/org/sonar/server/edition/ws/ApplyLicenseAction.java [new file with mode: 0644]
server/sonar-server/src/main/resources/org/sonar/server/edition/ws/example-edition-apply_license.json [new file with mode: 0644]
server/sonar-server/src/test/java/org/sonar/server/edition/EditionsWsModuleTest.java
server/sonar-server/src/test/java/org/sonar/server/edition/ws/ApplyLicenseActionTest.java [new file with mode: 0644]
sonar-ws/src/main/protobuf/ws-editions.proto