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
Modifier and TypeFieldDescriptionstatic final String
The Constant GITHUB_API_TEMPLATE_TEST.static final String
The Constant GITHUB_API_TEST.static final String
The Constant TEAM_NAME_CREATE.Fields inherited from class org.kohsuke.github.AbstractGitHubWireMockTest
baseFilesClassPath, baseRecordPath, gitHub, mockGitHub, tempGitHubRepositories, templating, useDefaultGitHub
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clean up team.protected com.github.tomakehurst.wiremock.core.WireMockConfiguration
Enable response templating to allow support validating pagination of external groupsvoid
Test are organization projects enabled.void
Test create all args team.void
Test create repository.void
Test create repository with template repository null.void
Test create repository when repository template is not a template.void
Test create repository with auto initialization.void
Test create repository with parameter is template.void
Test create repository with template.void
Test create repository with template.void
Test create team.void
Test create team with null perm.void
Test create team with repo access.void
Test create team with repo perm.void
Test create team with repo role.void
Test create visible team.void
Test enable organization projects.void
Test get external groupvoid
Test get external group for not enterprise managed organizationvoid
Test get user membershipvoid
Test invite user.void
Test list external groups without pagination for non enterprise managed organization.void
Test list external groups with name filtering.void
Test list external groups without pagination.void
Test list external groups with pagination.void
Test list members with filter.void
Test list members with role.void
Test list outside collaborators.void
Test list outside collaborators with filter.void
Test 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_TEST
The Constant GITHUB_API_TEST.- See Also:
-
GITHUB_API_TEMPLATE_TEST
The Constant GITHUB_API_TEMPLATE_TEST.- See Also:
-
TEAM_NAME_CREATE
The Constant TEAM_NAME_CREATE.- See Also:
-
-
Constructor Details
-
GHOrganizationTest
public GHOrganizationTest()Create default GHOrganizationTest instance
-
-
Method Details
-
getWireMockOptions
protected com.github.tomakehurst.wiremock.core.WireMockConfiguration getWireMockOptions()Enable response templating to allow support validating pagination of external groups- Overrides:
getWireMockOptions
in classAbstractGitHubWireMockTest
- Returns:
- the updated WireMock options
-
cleanUpTeam
Clean up 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.
-
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.
-
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.
-
testInviteUser
Test invite user.- 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.
-
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.
-
testListSecurityManagers
Test list security managers.- 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.
-
testCreateTeamWithRepoAccess
Test create team with repo access.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
testCreateTeamWithNullPerm
Test create team with null perm.- Throws:
Exception
- the exception
-
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.
-
testCreateTeam
Test create team.- 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.
-
testCreateAllArgsTeam
Test create all args 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.
-
testEnableOrganizationProjects
Test enable organization projects.- 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.
-
testListExternalGroupsWithPagination
Test list external groups with pagination.- 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.
-
testListExternalGroupsNotEnterpriseManagedOrganization
Test list external groups without pagination for non enterprise managed organization.- 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.
-