]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19084 Create and update GitHub users
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>
Thu, 27 Apr 2023 14:55:02 +0000 (16:55 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 11 May 2023 20:03:14 +0000 (20:03 +0000)
server/sonar-db-dao/src/testFixtures/java/org/sonar/db/user/UserDbTester.java

index c6f99bd5e7f18dddb496a79f98046a0cbcd50cd8..e3bba169d92b8ab63e3fb9c886e04ef94fab403b 100644 (file)
@@ -133,8 +133,8 @@ public class UserDbTester {
     return Optional.of(users.get(0));
   }
 
-  public Optional<UserDto> selectUserByExternalLoginAndIdentityProvider(String login, String identityProvider) {
-    return Optional.ofNullable(dbClient.userDao().selectByExternalLoginAndIdentityProvider(db.getSession(), login, identityProvider));
+  public Optional<UserDto> selectUserByExternalIdAndIdentityProvider(String externalId, String identityProvider) {
+    return Optional.ofNullable(dbClient.userDao().selectByExternalIdAndIdentityProvider(db.getSession(), externalId, identityProvider));
   }
 
   // GROUPS