]> source.dussan.org Git - sonarqube.git/commitdiff
[SONAR-19484] Update quality gates endpoints examples with the removal of the ID...
authorMatteo Mara <matteo.mara@sonarsource.com>
Mon, 5 Jun 2023 15:26:33 +0000 (17:26 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 6 Jun 2023 20:03:10 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/it/java/org/sonar/server/qualitygate/ws/GetByProjectActionIT.java
server/sonar-webserver-webapi/src/it/java/org/sonar/server/qualitygate/ws/ListActionIT.java
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/qualitygate/ws/get_by_project-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/qualitygate/ws/list-example.json
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/qualitygate/ws/show-example.json

index 97821202624e219f56d83ee8a9d1b5debbd581c2..df891b060df00b8c088df32799e42366b1a75b22 100644 (file)
@@ -80,7 +80,6 @@ public class GetByProjectActionIT {
       .getInput();
 
     assertJson(result)
-      .ignoreFields("id")
       .isSimilarTo(getClass().getResource("get_by_project-example.json"));
   }
 
index ebee86f26c0f58a2a6cebd965fc89738d2266b05..a09f872cf8a87729919757efc8392970185ab7eb 100644 (file)
@@ -214,7 +214,7 @@ public class ListActionIT {
 
     String response = ws.newRequest().execute().getInput();
 
-    assertJson(response).ignoreFields("id", "default")
+    assertJson(response).ignoreFields("default")
       .isSimilarTo(getClass().getResource("list-example.json"));
   }
 
index b1a72535a1c054e36b1cc7fb7d0c5e7699330943..683855bfbf89a51e9021c8aa48d24fc460de1c77 100644 (file)
@@ -1,7 +1,6 @@
 {
   "qualitygates": [
     {
-      "id": "AU-Tpxb--iU5OvuD2FLy",
       "name": "Sonar way",
       "isDefault": true,
       "isBuiltIn": true,
@@ -16,7 +15,6 @@
       }
     },
     {
-      "id": "AU-Tpxb--iU5OvuD2FLz",
       "name": "Sonar way - Without Coverage",
       "isDefault": false,
       "isBuiltIn": false,