Module org.kohsuke.github.api
Package org.kohsuke.github
Class AppInstallationAuthorizationProviderTest
java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.AbstractGHAppInstallationTest
org.kohsuke.github.AppInstallationAuthorizationProviderTest
The Class AppInstallationAuthorizationProviderTest.
-
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
ConstructorDescriptionInstantiates a new org app installation authorization provider test. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invalid JWT token raises exception.void
Valid JWT token allows oauth token request.void
Lookup of an app by id works as expectedMethods inherited from class org.kohsuke.github.AbstractGHAppInstallationTest
getAppInstallationWithToken
Methods inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
assertThat, assertThat, assertThat, cleanupRepository, cleanupTempRepositories, fail, fail, getGitHubBuilder, getNonRecordingGitHub, getTempRepository, getTempRepository, getUser, getUser, getWireMockOptions, kohsuke, requireProxy, snapshotNotAllowed, verifyAuthenticated, wireMockSetup
-
Constructor Details
-
AppInstallationAuthorizationProviderTest
public AppInstallationAuthorizationProviderTest()Instantiates a new org app installation authorization provider test.
-
-
Method Details
-
invalidJWTTokenRaisesException
Invalid JWT token raises exception.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
validJWTTokenAllowsOauthTokenRequest
Valid JWT token allows oauth token request.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
validJWTTokenWhenLookingUpAppById
Lookup of an app by id works as expected- Throws:
IOException
- Signals that an I/O exception has occurred.
-