java.lang.Object
org.kohsuke.github.AbstractGitHubWireMockTest
org.kohsuke.github.GHOrganizationTest
The Class GHOrganizationTest.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
AbstractGitHubWireMockTest.TemplatingHelper -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant GITHUB_API_TEMPLATE_TEST.static final StringThe Constant GITHUB_API_TEST.static final StringThe Constant TEAM_NAME_CREATE.Fields inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
baseFilesClassPath, baseRecordPath, gitHub, mockGitHub, tempGitHubRepositories, templating, useDefaultGitHub -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClean up team.protected com.github.tomakehurst.wiremock.core.WireMockConfigurationEnable response templating to allow support validating pagination of external groupsvoidTest are organization projects enabled.voidTest create all args team.voidTest create repository.voidTest create repository with template repository null.voidTest create repository when repository template is not a template.voidTest create repository with auto initialization.voidTest create repository with parameter is template.voidTest create repository with template.voidTest create repository with template.voidTest create a repository from a template with all branches includedvoidTest create team.voidTest create team with null perm.voidTest create team with repo access.voidTest create team with repo perm.voidTest create team with repo role.voidTest create visible team.voidTest enable organization projects.voidTest get external groupvoidTest get external group for not enterprise managed organizationvoidTest get user membershipvoidTest invite user.voidTest list external groups without pagination for non enterprise managed organization.voidTest list external groups with name filtering.voidTest list external groups without pagination.voidTest list external groups with pagination.voidTest list members with filter.voidTest list members with role.voidTest list outside collaborators.voidTest list outside collaborators with filter.voidTest list security managers.Methods inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
assertThat, assertThat, assertThat, cleanupRepository, cleanupTempRepositories, fail, fail, getGitHubBuilder, getNonRecordingGitHub, getTempRepository, getTempRepository, getUser, getUser, kohsuke, requireProxy, snapshotNotAllowed, verifyAuthenticated, wireMockSetup
-
Field Details
-
GITHUB_API_TEMPLATE_TEST
The Constant GITHUB_API_TEMPLATE_TEST.- See Also:
-
GITHUB_API_TEST
The Constant GITHUB_API_TEST.- See Also:
-
TEAM_NAME_CREATE
The Constant TEAM_NAME_CREATE.- See Also:
-
-
Constructor Details
-
GHOrganizationTest
public GHOrganizationTest()Create default GHOrganizationTest instance
-
-
Method Details
-
cleanUpTeam
Clean up team.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testAreOrganizationProjectsEnabled
Test are organization projects enabled.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateAllArgsTeam
Test create all args team.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateRepository
Test create repository.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateRepositoryFromTemplateRepositoryNull
Test create repository with template repository null.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateRepositoryWhenRepositoryTemplateIsNotATemplate
Test create repository when repository template is not a template.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateRepositoryWithAutoInitialization
Test create repository with auto initialization.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateRepositoryWithParameterIsTemplate
Test create repository with parameter is template.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateRepositoryWithTemplate
Test create repository with template.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateRepositoryWithTemplateAndGHRepository
Test create repository with template.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateRepositoryWithTemplateAndIncludeAllBranches
public void testCreateRepositoryWithTemplateAndIncludeAllBranches() throws IOException, InterruptedExceptionTest create a repository from a template with all branches included- Throws:
IOException- Signals that an I/O exception has occurred.InterruptedException- Signals that Thread.sleep() was interrupted
-
testCreateTeam
Test create team.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateTeamWithNullPerm
Test create team with null perm.- Throws:
Exception- the exception
-
testCreateTeamWithRepoAccess
Test create team with repo access.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateTeamWithRepoPerm
Test create team with repo perm.- Throws:
Exception- the exception
-
testCreateTeamWithRepoRole
Test create team with repo role.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testCreateVisibleTeam
Test create visible team.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testEnableOrganizationProjects
Test enable organization projects.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testGetExternalGroup
Test get external group- Throws:
IOException- Signals that an I/O exception has occurred.
-
testGetExternalGroupNotEnterpriseManagedOrganization
Test get external group for not enterprise managed organization- Throws:
IOException- Signals that an I/O exception has occurred.
-
testGetMembership
Test get user membership- Throws:
IOException- Signals that an I/O exception has occurred.
-
testInviteUser
Test invite user.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testListExternalGroupsNotEnterpriseManagedOrganization
Test list external groups without pagination for non enterprise managed organization.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testListExternalGroupsWithFilter
Test list external groups with name filtering.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testListExternalGroupsWithPagination
Test list external groups with pagination.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testListExternalGroupsWithoutPagination
Test list external groups without pagination.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testListMembersWithFilter
Test list members with filter.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testListMembersWithRole
Test list members with role.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testListOutsideCollaborators
Test list outside collaborators.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testListOutsideCollaboratorsWithFilter
Test list outside collaborators with filter.- Throws:
IOException- Signals that an I/O exception has occurred.
-
testListSecurityManagers
Test list security managers.- Throws:
IOException- Signals that an I/O exception has occurred.
-
getWireMockOptions
protected com.github.tomakehurst.wiremock.core.WireMockConfiguration getWireMockOptions()Enable response templating to allow support validating pagination of external groups- Overrides:
getWireMockOptionsin classAbstractGitHubWireMockTest- Returns:
- the updated WireMock options
-