aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/testFixtures
diff options
context:
space:
mode:
authorViktor Vorona <viktor.vorona@sonarsource.com>2024-08-22 17:05:34 +0200
committersonartech <sonartech@sonarsource.com>2024-08-26 20:03:08 +0000
commit5affe7f65f2d4d0e92864ae685299c70cec1a1d2 (patch)
treebebba43687c5cb178ac0fa164ee313e9ad929319 /sonar-ws/src/testFixtures
parent6947be9b109ce78551a168c150977c3d3cdbf0be (diff)
downloadsonarqube-5affe7f65f2d4d0e92864ae685299c70cec1a1d2.tar.gz
sonarqube-5affe7f65f2d4d0e92864ae685299c70cec1a1d2.zip
SONAR-22728 Fix BBT tests + bugs related to that
Diffstat (limited to 'sonar-ws/src/testFixtures')
-rw-r--r--sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/UserTester.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/UserTester.java b/sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/UserTester.java
index a376b110811..350cb661a1a 100644
--- a/sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/UserTester.java
+++ b/sonar-ws/src/testFixtures/java/org/sonarqube/ws/tester/UserTester.java
@@ -122,6 +122,10 @@ public class UserTester {
new org.sonarqube.ws.client.permissions.AddUserRequest()
.setLogin(u.getLogin())
.setPermission("portfoliocreator"));
+ session.wsClient().permissions().addUser(
+ new org.sonarqube.ws.client.permissions.AddUserRequest()
+ .setLogin(u.getLogin())
+ .setPermission("admin"));
return u;
}