]> source.dussan.org Git - sonarqube.git/commitdiff
Add integration test for WS GET api/properties?resource=x
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 20 Jun 2016 21:02:35 +0000 (23:02 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 21 Jun 2016 12:55:47 +0000 (14:55 +0200)
it/it-tests/src/test/java/it/projectAdministration/ProjectAdministrationTest.java

index dcf73a481541e4047e33dd93b7ab7a77a73613a1..5394a9f53465b02f97c2ad8ab03759045f4c25c9 100644 (file)
@@ -174,8 +174,13 @@ public class ProjectAdministrationTest {
       ).build();
     new SeleneseTest(selenese).runOn(orchestrator);
 
+    // GET /api/properties/sonar.exclusions?resource=sample
     assertThat(orchestrator.getServer().getAdminWsClient().find(PropertyQuery.createForResource("sonar.exclusions", "sample")).getValue())
       .isEqualTo("my-exclusions");
+
+    // GET /api/properties?resource=sample
+    // Note that this WS is used by SonarLint
+    assertThat(orchestrator.getServer().getAdminWsClient().findAll(PropertyQuery.createForResource(null, "sample"))).isNotEmpty();
   }
 
   /**