aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-alm-client
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2024-10-14 16:21:50 +0200
committersonartech <sonartech@sonarsource.com>2024-10-15 20:03:06 +0000
commitc6168aa2917eeef83c3383c7eddf35e84394b499 (patch)
tree9f5c28bde27f1e9efd1ceb231889daaf557ba14f /server/sonar-alm-client
parentb59bb3e380b864a5760ae7ae7bbf773d01273ebf (diff)
downloadsonarqube-c6168aa2917eeef83c3383c7eddf35e84394b499.tar.gz
sonarqube-c6168aa2917eeef83c3383c7eddf35e84394b499.zip
NO-JIRA Fix the Quality Gate
Diffstat (limited to 'server/sonar-alm-client')
-rw-r--r--server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/security/GithubAppSecurityImplTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/security/GithubAppSecurityImplTest.java b/server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/security/GithubAppSecurityImplTest.java
index 08ad4f1a87d..872dc19513d 100644
--- a/server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/security/GithubAppSecurityImplTest.java
+++ b/server/sonar-alm-client/src/test/java/org/sonar/alm/client/github/security/GithubAppSecurityImplTest.java
@@ -25,7 +25,6 @@ import java.security.spec.InvalidKeySpecException;
import java.time.Clock;
import java.time.Instant;
import java.time.ZoneId;
-import java.util.Random;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.sonar.auth.github.GithubAppConfiguration;
@@ -144,7 +143,7 @@ public class GithubAppSecurityImplTest {
}
private GithubAppConfiguration createAppConfigurationForPrivateKey(String privateKey) {
- long applicationId = new Random().nextInt(654);
+ long applicationId = 1L;
return new GithubAppConfiguration(applicationId, privateKey, secure().nextAlphabetic(8));
}