From 42c6f5e4a301138134aedae9b44969aeb88a7659 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Fri, 6 Nov 2020 10:48:01 +0200 Subject: [PATCH] SONAR-14058 add url to list endpoint Fixing missing ITs (thank you Cirrus) Adding mandatory params to Gitlab related ITs + making sure tests run --- .../ws/client/almsettings/AlmSettingsService.java | 1 + .../ws/client/almsettings/UpdateGitlabRequest.java | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java index 032882f0418..cd506f16be4 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/AlmSettingsService.java @@ -271,6 +271,7 @@ public class AlmSettingsService extends BaseService { .setParam("key", request.getKey()) .setParam("newKey", request.getNewKey()) .setParam("personalAccessToken", request.getPersonalAccessToken()) + .setParam("url", request.getUrl()) .setMediaType(MediaTypes.JSON)).content(); } diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/UpdateGitlabRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/UpdateGitlabRequest.java index e86cb341d81..1da085d9f14 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/UpdateGitlabRequest.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/almsettings/UpdateGitlabRequest.java @@ -32,6 +32,7 @@ public class UpdateGitlabRequest { private String key; private String newKey; private String personalAccessToken; + private String url; public String getKey() { return key; @@ -68,4 +69,16 @@ public class UpdateGitlabRequest { return this; } + public String getUrl() { + return url; + } + + /** + * This is a mandatory parameter. + */ + public UpdateGitlabRequest setUrl(String url) { + this.url = url; + return this; + } + } -- 2.39.5