java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.AbstractGHAppInstallationTest
org.kohsuke.github.GHAppTest
Tests for the GitHub App API methods.
- Author:
- Paulo Miguel Almeida
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
AbstractGitHubWireMockTest.TemplatingHelper -
Field Summary
Fields inherited from class org.kohsuke.github.AbstractGHAppInstallationTest
jwtProvider1, jwtProvider2, jwtProvider3Fields inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
baseFilesClassPath, baseRecordPath, gitHub, mockGitHub, tempGitHubRepositories, templating, useDefaultGitHub -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates the token.voidCreates the token with repositories.voidDelete installation.voidGets the git hub app.protected GitHubBuilderGets the git hub builder.voidGets the installation by id.voidGets the installation by organization.voidGets the installation by repository.voidGets the installation by user.voidList installation requests.voidList installations.voidList installations that have been updated since a given date.Methods inherited from class org.kohsuke.github.AbstractGHAppInstallationTest
getAppInstallationWithTokenMethods inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
assertThat, assertThat, assertThat, cleanupRepository, cleanupTempRepositories, fail, fail, getNonRecordingGitHub, getTempRepository, getTempRepository, getUser, getUser, getWireMockOptions, kohsuke, requireProxy, snapshotNotAllowed, verifyAuthenticated, wireMockSetup
-
Constructor Details
-
GHAppTest
public GHAppTest()Create default GHAppTest instance
-
-
Method Details
-
createToken
Creates the token.- Throws:
IOException- Signals that an I/O exception has occurred.
-
createTokenWithRepositories
Creates the token with repositories.- Throws:
IOException- Signals that an I/O exception has occurred.
-
deleteInstallation
Delete installation.- Throws:
IOException- Signals that an I/O exception has occurred.
-
getGitHubApp
Gets the git hub app.- Throws:
IOException- Signals that an I/O exception has occurred.
-
getInstallationById
Gets the installation by id.- Throws:
IOException- Signals that an I/O exception has occurred.
-
getInstallationByOrganization
Gets the installation by organization.- Throws:
IOException- Signals that an I/O exception has occurred.
-
getInstallationByRepository
Gets the installation by repository.- Throws:
IOException- Signals that an I/O exception has occurred.
-
getInstallationByUser
Gets the installation by user.- Throws:
IOException- Signals that an I/O exception has occurred.
-
listInstallationRequests
List installation requests.- Throws:
IOException- Signals that an I/O exception has occurred.
-
listInstallations
List installations.- Throws:
IOException- Signals that an I/O exception has occurred.
-
listInstallationsSince
List installations that have been updated since a given date.- Throws:
IOException- Signals that an I/O exception has occurred.ParseException- Signals that a ParseException has occurred.
-
getGitHubBuilder
Gets the git hub builder.- Overrides:
getGitHubBuilderin classAbstractGitHubWireMockTest- Returns:
- the git hub builder
-