diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2017-09-22 13:55:06 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-02 17:18:15 +0200 |
commit | 4c0d81eb984640587557787892ee3f1cbdcc193b (patch) | |
tree | 5d649445c7415fd6f1839ce77841facb4082d97b /sonar-ws/src/test | |
parent | 92f07538cf9928e2107d201f8518061a69ac1341 (diff) | |
download | sonarqube-4c0d81eb984640587557787892ee3f1cbdcc193b.tar.gz sonarqube-4c0d81eb984640587557787892ee3f1cbdcc193b.zip |
SONAR-1330 Remove user permission to edit single quality profile
Diffstat (limited to 'sonar-ws/src/test')
-rw-r--r-- | sonar-ws/src/test/java/org/sonarqube/ws/client/qualityprofile/QualityProfilesServiceTest.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sonar-ws/src/test/java/org/sonarqube/ws/client/qualityprofile/QualityProfilesServiceTest.java b/sonar-ws/src/test/java/org/sonarqube/ws/client/qualityprofile/QualityProfilesServiceTest.java index 591d1690abc..63c4fcc8e8d 100644 --- a/sonar-ws/src/test/java/org/sonarqube/ws/client/qualityprofile/QualityProfilesServiceTest.java +++ b/sonar-ws/src/test/java/org/sonarqube/ws/client/qualityprofile/QualityProfilesServiceTest.java @@ -216,4 +216,23 @@ public class QualityProfilesServiceTest { .hasParam(PARAM_LOGIN, "john") .andNoOtherParam(); } + + @Test + public void remove_user() { + underTest.removeUser(RemoveUserRequest.builder() + .setOrganization("O1") + .setQualityProfile("P1") + .setLanguage("Xoo") + .setUserLogin("john") + .build()); + PostRequest request = serviceTester.getPostRequest(); + + serviceTester.assertThat(request) + .hasPath("remove_user") + .hasParam(PARAM_ORGANIZATION, "O1") + .hasParam(PARAM_QUALITY_PROFILE, "P1") + .hasParam(PARAM_LANGUAGE, "Xoo") + .hasParam(PARAM_LOGIN, "john") + .andNoOtherParam(); + } } |