PowerShell / PSDscResources

MIT License
129 stars 53 forks source link

Some Integration Tests Can Fail When Temporarily Unable to Connect to GitHub #158

Closed mhendric closed 5 years ago

mhendric commented 5 years ago

Details of the scenario you tried and the problem that is occurring

147 recently hit an issue where tests fail when temporarily unable to connect to GitHub to clone DscResource.Tests. Suggest porting https://github.com/PowerShell/xPSDesiredStateConfiguration/pull/591, which fixed https://github.com/PowerShell/xPSDesiredStateConfiguration/issues/505.

Verbose logs showing the problem

[00:14:49] Executing script C:\projects\psdscresources\Tests\Integration\MSFT_RegistryResource.Integration.Tests.ps1
[00:15:10]   [-] Error occurred in test script 'C:\projects\psdscresources\Tests\Integration\MSFT_RegistryResource.Integration.Tests.ps1' 0ms
[00:15:10]     RemoteException: fatal: unable to access 'https://github.com/PowerShell/DscResource.Tests/': Failed to connect to github.com port 443: Timed out
[00:15:10]     at Enter-DscResourceTestEnvironment, C:\projects\psdscresources\Tests\TestHelpers\CommonTestHelper.psm1: line 748
[00:15:10]     at <ScriptBlock>, C:\projects\psdscresources\Tests\Integration\MSFT_RegistryResource.Integration.Tests.ps1: line 16
[00:15:10]     at <ScriptBlock>, C:\Program Files\WindowsPowerShell\Modules\Pester\4.8.1\Pester.psm1: line 1097
[00:15:10]     at Invoke-Pester<End>, C:\Program Files\WindowsPowerShell\Modules\Pester\4.8.1\Pester.psm1: line 1123
[00:15:10]     at Invoke-AppveyorTestScriptTask, C:\projects\psdscresources\DscResource.Tests\AppVeyor.psm1: line 792
[00:15:10] 

Suggested solution to the issue

Suggest porting fix: https://github.com/PowerShell/xPSDesiredStateConfiguration/pull/591