diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-04-25 16:09:18 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-04-26 12:28:43 +0200 |
commit | aa9ee793babd0b89d89a7ccacd4064932cdc4740 (patch) | |
tree | ca083305ffbd66db815ac48b945e40c0d13e2c48 /it | |
parent | 7941356ee3d58d59712594579583638ebaa2065d (diff) | |
download | sonarqube-aa9ee793babd0b89d89a7ccacd4064932cdc4740.tar.gz sonarqube-aa9ee793babd0b89d89a7ccacd4064932cdc4740.zip |
SONAR-7565 add IT for new status RESTARTING
Diffstat (limited to 'it')
-rw-r--r-- | it/it-tests/src/test/java/it/serverSystem/RestartTest.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/it/it-tests/src/test/java/it/serverSystem/RestartTest.java b/it/it-tests/src/test/java/it/serverSystem/RestartTest.java index c5d35cb1fd4..506bd86d122 100644 --- a/it/it-tests/src/test/java/it/serverSystem/RestartTest.java +++ b/it/it-tests/src/test/java/it/serverSystem/RestartTest.java @@ -30,6 +30,8 @@ import org.junit.rules.DisableOnDebug; import org.junit.rules.ExpectedException; import org.junit.rules.TestRule; import org.junit.rules.Timeout; +import org.sonarqube.ws.client.GetRequest; +import org.sonarqube.ws.client.WsResponse; import util.QaOnly; import static org.assertj.core.api.Assertions.assertThat; @@ -75,6 +77,8 @@ public class RestartTest { } newAdminWsClient(orchestrator).system().restart(); + WsResponse wsResponse = newAdminWsClient(orchestrator).wsConnector().call(new GetRequest("/api/system/status")).failIfNotSuccessful(); + assertThat(wsResponse.content()).contains("RESTARTING"); // we just wait five seconds, for a lack of a better approach to waiting for the restart process to start in SQ Thread.sleep(5000); |