From e3ed5dafbfab8ab57ee77bba1f7bc1dd7782dc3d Mon Sep 17 00:00:00 2001 From: Donovan Brown Date: Fri, 20 Jul 2018 08:15:50 -0500 Subject: [PATCH] Repositories (#63) * renamed git files to repositories. About to add more git support and the filename would be confusing. * Added Get-GitRef Added new tests to bring code coverage to 99.69% Major refactor of the Provider and started using them in the functions. Fixed formating for provider classes. Removed boilerplate comments from format and type files. No longer need InovkePester.ps1 * Fixed the casing of the module name in tests. This caused tests to fail on Linux * Corrected issue with Write-Object * Adding code to find issue with Repo Class * New test for loading types. * Force load of module. * renamed VSTeamRepository to VSTeamRepo * Rename did not fix anything so putting it back. I updated the release to get the integration tests to pass. * Final changes to Readme file for version 3.0.2 * fix small typos in 010_projects.Tests.ps1 (#62) --- integration/test/010_projects.Tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/test/010_projects.Tests.ps1 b/integration/test/010_projects.Tests.ps1 index 50760a5fb..02bd8fd06 100644 --- a/integration/test/010_projects.Tests.ps1 +++ b/integration/test/010_projects.Tests.ps1 @@ -203,12 +203,12 @@ Describe 'VSTeam Integration Tests' -Tag 'integration' { } Context 'Service Endpoints full exercise' { - It 'Add-VSTeamSonarQubeEndpoint Should add servcie endpoint' { + It 'Add-VSTeamSonarQubeEndpoint Should add service endpoint' { { Add-VSTeamSonarQubeEndpoint -ProjectName $newProjectName -EndpointName 'TestSonarQube' ` -SonarQubeURl 'http://sonarqube.somewhereIn.cloudapp.azure.com:9000' -PersonalAccessToken 'Faketoken' } | Should Not Throw } - It 'Add-VSTeamAzureRMServiceEndpoint Should add servcie endpoint' { + It 'Add-VSTeamAzureRMServiceEndpoint Should add service endpoint' { { Add-VSTeamAzureRMServiceEndpoint -ProjectName $newProjectName -displayName 'AzureEndoint' ` -subscriptionId '00000000-0000-0000-0000-000000000000' -subscriptionTenantId '00000000-0000-0000-0000-000000000000' ` -servicePrincipalId '00000000-0000-0000-0000-000000000000' -servicePrincipalKey 'fakekey' } | Should Not Throw @@ -245,7 +245,7 @@ Describe 'VSTeam Integration Tests' -Tag 'integration' { if (-not ($acct -like "http://*")) { Context 'Users exercise' { - It 'Get-VSTeamUser Should return all usrs' { + It 'Get-VSTeamUser Should return all users' { Get-VSTeamUser | Should Not Be $null }