diff options
author | Aurelien Poscia <aurelien.poscia@sonarsource.com> | 2024-08-28 17:27:42 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-08-29 20:02:47 +0000 |
commit | 39aa56e9bb9b32b5da0d6823765f32d64e6719b4 (patch) | |
tree | cb02786761c932285f3551966f1e9599186717bf /server/sonar-webserver-common/src | |
parent | d8ebc8fbb62dad04ed4f665379bd80c4d7d88dc2 (diff) | |
download | sonarqube-39aa56e9bb9b32b5da0d6823765f32d64e6719b4.tar.gz sonarqube-39aa56e9bb9b32b5da0d6823765f32d64e6719b4.zip |
SONAR-22899 Refresh GitHub App Installation token before expiration
Diffstat (limited to 'server/sonar-webserver-common/src')
-rw-r--r-- | server/sonar-webserver-common/src/test/java/org/sonar/server/common/almsettings/github/GithubProjectCreatorFactoryTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-webserver-common/src/test/java/org/sonar/server/common/almsettings/github/GithubProjectCreatorFactoryTest.java b/server/sonar-webserver-common/src/test/java/org/sonar/server/common/almsettings/github/GithubProjectCreatorFactoryTest.java index e2a31f07c3c..95a409a5705 100644 --- a/server/sonar-webserver-common/src/test/java/org/sonar/server/common/almsettings/github/GithubProjectCreatorFactoryTest.java +++ b/server/sonar-webserver-common/src/test/java/org/sonar/server/common/almsettings/github/GithubProjectCreatorFactoryTest.java @@ -31,6 +31,7 @@ import org.mockito.junit.MockitoJUnitRunner; import org.sonar.alm.client.github.GithubGlobalSettingsValidator; import org.sonar.alm.client.github.GithubPermissionConverter; import org.sonar.auth.github.AppInstallationToken; +import org.sonar.auth.github.ExpiringAppInstallationToken; import org.sonar.auth.github.GitHubSettings; import org.sonar.auth.github.client.GithubApplicationClient; import org.sonar.db.DbClient; @@ -94,9 +95,9 @@ public class GithubProjectCreatorFactoryTest { @Mock private GithubPermissionConverter githubPermissionConverter; @Mock - private AppInstallationToken appInstallationToken; + private ExpiringAppInstallationToken appInstallationToken; @Mock - private AppInstallationToken authAppInstallationToken; + private ExpiringAppInstallationToken authAppInstallationToken; @Mock private PermissionService permissionService; @Mock |