@@ -48,6 +48,7 @@ public class InfoAction implements CeWsAction { | |||
.setDescription("Gets information about Compute Engine. Requires the system administration permission or " + | |||
"system passcode (see " + SystemPasscodeImpl.PASSCODE_CONF_PROPERTY + " in sonar.properties).") | |||
.setSince("7.2") | |||
.setInternal(true) | |||
.setHandler(this) | |||
.setResponseExample(getClass().getResource("info-example.json")); | |||
} |
@@ -46,6 +46,7 @@ public class PauseAction implements CeWsAction { | |||
.setDescription("Requests pause of Compute Engine workers. Requires the system administration permission or " + | |||
"system passcode (see " + SystemPasscodeImpl.PASSCODE_CONF_PROPERTY + " in sonar.properties).") | |||
.setSince("7.2") | |||
.setInternal(true) | |||
.setHandler(this) | |||
.setPost(true); | |||
} |
@@ -46,6 +46,7 @@ public class ResumeAction implements CeWsAction { | |||
.setDescription("Resumes pause of Compute Engine workers. Requires the system administration permission or " + | |||
"system passcode (see " + SystemPasscodeImpl.PASSCODE_CONF_PROPERTY + " in sonar.properties).") | |||
.setSince("7.2") | |||
.setInternal(true) | |||
.setHandler(this) | |||
.setPost(true); | |||
} |
@@ -51,7 +51,7 @@ public class InfoActionTest { | |||
public void test_definition() { | |||
WebService.Action def = ws.getDef(); | |||
assertThat(def.key()).isEqualTo("info"); | |||
assertThat(def.isInternal()).isFalse(); | |||
assertThat(def.isInternal()).isTrue(); | |||
assertThat(def.isPost()).isFalse(); | |||
assertThat(def.params()).isEmpty(); | |||
} |
@@ -51,7 +51,7 @@ public class PauseActionTest { | |||
public void test_definition() { | |||
WebService.Action def = ws.getDef(); | |||
assertThat(def.key()).isEqualTo("pause"); | |||
assertThat(def.isInternal()).isFalse(); | |||
assertThat(def.isInternal()).isTrue(); | |||
assertThat(def.isPost()).isTrue(); | |||
assertThat(def.params()).isEmpty(); | |||
assertThat(def.responseExampleAsString()).isNull(); |
@@ -51,7 +51,7 @@ public class ResumeActionTest { | |||
public void test_definition() { | |||
WebService.Action def = ws.getDef(); | |||
assertThat(def.key()).isEqualTo("resume"); | |||
assertThat(def.isInternal()).isFalse(); | |||
assertThat(def.isInternal()).isTrue(); | |||
assertThat(def.isPost()).isTrue(); | |||
assertThat(def.params()).isEmpty(); | |||
assertThat(def.responseExampleAsString()).isNull(); |