PowershellRepository_Transcript.txt
**********************
Windows PowerShell transcript start Start time: 20181012145034 Username: User Manager\ContainerAdministrator RunAs User: User Manager\ContainerAdministrator Machine: CFE5D988B919 (Microsoft Windows NT 10.0.14393.0) Host Application: powershell.exe -ExecutionPolicy ByPass -EncodedCommand LgAgAEMAOgBcAFAAbwB3AGUAcgBzAGgAZQBsAGwAUgBlAHAAbwBzAGkAdABvAHIAeQBfAFMAdABhAHIAdABUAGUAcwB0AC4AcABzADEA Process ID: 6432 PSVersion: 5.1.14393.2312 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.14393.2312 BuildVersion: 10.0.14393.2312 CLRVersion: 4.0.30319.42000 WSManStackVersion: 3.0 PSRemotingProtocolVersion: 2.3 SerializationVersion: 1.1.0.1 ********************** Transcript started, output file is C:\projects\psmodulesdsc\PowershellRepository_Transcript.txt [Build Info] [UTC 10/12/2018 14:50:34] Installing Pester. [Build Info] [UTC 10/12/2018 14:51:15] Invoking pester on all tests in the path: C:\projects\psmodulesdsc\Tests\Unit\PowershellRepository.tests.ps1 [Build Info] [UTC 10/12/2018 14:51:15] Using these files to calculate code coverage: C:\projects\psmodulesdsc\DSCClassResources\PowershellRepository\PowershellRepository.psm1 Executing all tests in 'C:\projects\psmodulesdsc\Tests\Unit\PowershellRepository.tests.ps1' Executing script C:\projects\psmodulesdsc\Tests\Unit\PowershellRepository.tests.ps1 Describing PowershellRepository Context When the GetPSBoundParameters method is called [+] Should not throw 2.51s [+] Should be a hashtable 143ms [+] Should return the expected properties 105ms Context When the Get method is called [+] Should not throw 888ms [+] Should return a type of PowershellRepository 581ms [+] Should call Get-PSRepository one time 477ms [+] Should return null if PSRepository does not exist 116ms [+] Should return name and version if PSRepository does exist 74ms Context When the Test method is called [+] Should not throw 741ms [+] Should return a type of "boolean" 606ms Context Ensure = Present [+] Should return $false when PSRepository does not exist 80ms ********************** Command start time: 20181012145129 ********************** PS>TerminatingError(): "SourceLocation is required when the PSRepository does not currently exist." [+] Should throw when PSRepository does not exist and SourceLocation unspecified 164ms [+] Should not throw when PSGallery does not exist and SourceLocation unspecified 116ms [+] Should return $false when InstallationPolicy is incorrect 118ms [+] Should return $false when SourceLocation is incorrect 30ms [+] Should return $true when PSRepository does exist 93ms Context Ensure = Absent [+] Should return $false when PSRepository does exist 59ms [+] Should return $true when PSRepository does not exist 213ms Context When the Set method is called [+] Should not throw 1.73s [+] Should call Register-PSRepository if Ensure is Present and repository is absent 4.2s [+] Should call Set-PSRepository if InstallationPolicy is incorrect 737ms [+] Should call Unregister then Set-PSRepository if SourceLocation is incorrect 22.48s [+] Should call Unregister-PSRepository if Ensure is Absent 68ms Tests completed in 36.34s Tests Passed: 23, Failed: 0, Skipped: 0, Pending: 0, Inconclusive: 0 Code coverage report: Covered 93.10 % of 87 analyzed Commands in 1 File. Missed commands: File Function Line Command ---- -------- ---- ------- PowershellRepository.psm1 Set 83 $PSBoundParameters.Remove("SourceLoc... PowershellRepository.psm1 Set 84 $PSBoundParameters.Remove("Name") PowershellRepository.psm1 Set 85 Register-PSRepository -Default @PSBo... PowershellRepository.psm1 Set 100 $PSBoundParameters.Remove("SourceLoc... PowershellRepository.psm1 Set 101 $PSBoundParameters.Remove("Name") PowershellRepository.psm1 Set 102 Register-PSRepository -Default @PSBo... VERBOSE: Tests ran for 01:28 minutes. ********************** Windows PowerShell transcript end End time: 20181012145202 ********************** |