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, jwtProvider3
Fields inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
baseFilesClassPath, baseRecordPath, gitHub, mockGitHub, tempGitHubRepositories, templating, useDefaultGitHub
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates the token.void
Creates the token with repositories.void
Delete installation.void
Gets the git hub app.protected GitHubBuilder
Gets the git hub builder.void
Gets the installation by id.void
Gets the installation by organization.void
Gets the installation by repository.void
Gets the installation by user.void
List installations.void
List installations that have been updated since a given date.Methods inherited from class org.kohsuke.github.AbstractGHAppInstallationTest
getAppInstallationWithToken
Methods 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
-
getGitHubBuilder
Gets the git hub builder.- Overrides:
getGitHubBuilder
in classAbstractGitHubWireMockTest
- Returns:
- the git hub builder
-
getGitHubApp
Gets the git hub app.- 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
- Issue parsing date string.
-
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.
-
deleteInstallation
Delete installation.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
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.
-