PowerShellForGitHub/Tests
Howard Wolosky 9ef3c2b567
Improvements to GitHub Team API's (#275)
#257 did a fantastic job closing the gap on missing functionality in the module related to GitHub Teams.
This PR just adds onto that work by providing options that will reduce the need for additional queries during common operations.

* `Get-GitHubTeam`: **Breaking Change** Looking up a team by its `ID` has been deprecated per GitHub documentation.  Removed that functionality and added the ability to look up by `slug` instead.  This also means that you can now pipe in a team and get back the specific result without needing to filter through all org results.

* `Get-GitHubTeamMember`: Updated to use the `slug` instead of the team `ID`.

* `New-GitHubTeam`: Added ability to pass in the `ParentTeamId` (also via the pipeline) to avoid the need to query through all org teams.

* `Set-GitHubTeam`: Added ability to pass in the team `slug` (also via the pipeline) to avoid the need to query through all org teams.  Similar to `New-GitHubTeam`, also added the ability to pass-in the `ParentTeamId` to avoid the full org team lookup.

* `Remove-GitHubTeam`: Added ability to pass in the team `slug` (also via the pipeline) to avoid the need to query through all org teams.

* Added `Rename-GitHubTeam` as a helper/wrapper on top of `Set-GitHubTeam`

* Added additional pipeline tests for existing functions

* Added new tests for `Rename-GitHubTeam` and `Get-GitHubTeamMember`

* Small update to formatters to simplify the display of the team parent

References: [GitHub Teams API](https://developer.github.com/v3/teams/)
2020-08-14 16:41:20 -07:00
..
Config Reducing warning messages during unit tests configuration (#132) 2019-11-11 13:13:37 -05:00
Common.ps1 Attempting to increase reliability of some Pester tests - take 2 (#268) 2020-07-19 11:35:40 -07:00
GitHubAnalytics.tests.ps1 Adding complete Pipeline support to the entire module (#242) 2020-06-17 22:26:59 -07:00
GitHubAssignees.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubBranches.tests.ps1 Update New-GitHubBranch pipeline support (#277) 2020-08-13 00:11:44 -07:00
GitHubContents.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubCore.Tests.ps1 Adding complete Pipeline support to the entire module (#242) 2020-06-17 22:26:59 -07:00
GitHubEvents.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubGistComments.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubGists.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubIssueComments.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubIssues.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubLabels.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubMilestones.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubMiscellaneous.tests.ps1 Fix usage of Resolve-RepositoryElements -DisableValidation (#243) 2020-06-20 19:03:49 -07:00
GitHubOrganizations.tests.ps1 Adding complete Pipeline support to the entire module (#242) 2020-06-17 22:26:59 -07:00
GitHubProjectCards.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubProjectColumns.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubProjects.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubPullRequests.tests.ps1 Adding complete Pipeline support to the entire module (#242) 2020-06-17 22:26:59 -07:00
GitHubReactions.Tests.ps1 Add GitHub Reactions support (#193) 2020-07-16 11:45:59 -07:00
GitHubReleases.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubRepositories.tests.ps1 Updates all state-changing commands to be silent by default (with -PassThru) (#276) 2020-08-14 12:35:53 -07:00
GitHubRepositoryForks.tests.ps1 Attempting to increase reliability of some Pester tests - take 2 (#268) 2020-07-19 11:35:40 -07:00
GitHubRepositoryTraffic.tests.ps1 Adding complete Pipeline support to the entire module (#242) 2020-06-17 22:26:59 -07:00
GitHubTeams.tests.ps1 Improvements to GitHub Team API's (#275) 2020-08-14 16:41:20 -07:00
GitHubUsers.tests.ps1 Adding complete Pipeline support to the entire module (#242) 2020-06-17 22:26:59 -07:00