]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17194 Remove 'statistics' from response example of api/system/info
authorJacek <jacek.poreda@sonarsource.com>
Tue, 27 Sep 2022 08:26:29 +0000 (10:26 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 27 Sep 2022 20:03:17 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/platform/ws/info-example.json
server/sonar-webserver-webapi/src/test/java/org/sonar/server/platform/ws/InfoActionTest.java

index f7bb42019c22268e673c3d70ccb537703cc8fcde..a7f679e72e61988558680d600e4cb74525fdbb62 100644 (file)
     "Pool Max Wait (ms)": 5000,
     "Pool Remove Abandoned": false,
     "Pool Remove Abandoned Timeout (seconds)": 300
-  },
-  "Statistics": {
-    "id": "AU-TpxcB-iU5OvuD2FL7",
-    "version": "5.1",
-    "plugins": {
-      "scmgit": "1.0-RC1",
-      "findbugs": "3.1",
-      "scmsvn": "1.0-RC1",
-      "java": "2.9.1"
-    },
-    "userCount": 3,
-    "projectCount": 2,
-    "lines": 500,
-    "ncloc": 300,
-    "projectCountByLanguage": {
-      "java": 2,
-      "kotlin": 1,
-      "js": 1
-    },
-    "nclocByLanguage": {
-      "java": 500,
-      "kotlin": 2500,
-      "js": 50
-    }
   }
 }
index 3b29eea438f49270c779de8254e5099a3f3e6fa0..024ddacf6e6f559ca3edc1bc3e42f395491d20fd 100644 (file)
@@ -32,13 +32,13 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy;
 
 public class InfoActionTest {
   @Rule
-  public UserSessionRule userSessionRule = UserSessionRule.standalone()
+  public final UserSessionRule userSessionRule = UserSessionRule.standalone()
     .logIn("login")
     .setName("name");
 
-  private SystemInfoWriter jsonWriter = json -> json.prop("key", "value");
-  private InfoAction underTest = new InfoAction(userSessionRule, jsonWriter);
-  private WsActionTester ws = new WsActionTester(underTest);
+  private final SystemInfoWriter jsonWriter = json -> json.prop("key", "value");
+  private final InfoAction underTest = new InfoAction(userSessionRule, jsonWriter);
+  private final WsActionTester ws = new WsActionTester(underTest);
 
   @Test
   public void test_definition() {