potatoqualitee / kbupdate

🛡 KB Viewer, Saver, Installer and Uninstaller
MIT License
338 stars 50 forks source link

various failures #172

Closed potatoqualitee closed 2 years ago

potatoqualitee commented 2 years ago
16 minutes ago by Chrissy LeMaire
job 23cb6ab2
Failed 8 minutes ago in 7 min 36 sec
Console Messages Tests 1 Artifacts Events
Build started
Fetching repository commit (23cb6ab)...OK
Total: 5.8 MB in 326 files
Restoring build cache
Cache 'C:\ProgramData\chocolatey\bin' - Restored
Cache 'C:\ProgramData\chocolatey\lib' - Restored
Cache 'C:\Program Files\WindowsPowerShell\Modules\PSScriptAnalyzer' - Restored
Cache 'C:\Program Files\WindowsPowerShell\Modules\Pester' - Restored
Cache 'C:\Program Files\WindowsPowerShell\Modules\PSFramework' - Restored
Cache 'C:\Program Files\WindowsPowerShell\Modules\PSSQLite' - Restored
Cache 'C:\Program Files\WindowsPowerShell\Modules\PoshWSUS' - Restored
Cache 'C:\Program Files\WindowsPowerShell\Modules\xWindowsUpdate' - Restored
.\build\appveyor.prep.ps1
appveyor.prep: Install PSScriptAnalyzer
appveyor.prep: Install Pester
appveyor.prep: Install PSFramework
appveyor.prep: Install PSSQLite
appveyor.prep: Install PoshWSUS
appveyor.prep: Install kbupdate-library
appveyor.prep: Install xWindowsUpdate
.\build\appveyor.pester.ps1
Starting Tests
Loading constants
Importing Module
Proceeding with individual tests
Executing Integration.Tests.ps1
Starting discovery in 1 files.
Running C:\projects\kbupdate\tests\Integration.Tests.ps1
Discovery found 29 tests in 1s.
Running tests.
Cannot find path 'C:\library\xWindowsUpdate' because it does not exist.
    + CategoryInfo          : ObjectNotFound: (C:\library\xWindowsUpdate:String) [Copy-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
    + PSComputerName        : localhost

Cannot find path 'C:\library\xPSDesiredStateConfiguration' because it does not exist.
    + CategoryInfo          : ObjectNotFound: (C:\library\xPSDesiredStateConfiguration:String) [Copy-Item], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand
    + PSComputerName        : localhost

Method invocation failed because [System.IO.FileInfo] does not contain a method named 'EndsWith'.
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound
    + PSComputerName        : localhost

The specified module 'xPSDesiredStateConfiguration' with version '9.2.0' was not loaded because no valid module file was found in any module directory.
    + CategoryInfo          : ResourceUnavailable: (xPSDesiredStateConfiguration:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleWithVersionNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
    + PSComputerName        : localhost

The specified module 'xWindowsUpdate' with version '3.0.0' was not loaded because no valid module file was found in any module directory.
    + CategoryInfo          : ResourceUnavailable: (xWindowsUpdate:String) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : Modules_ModuleWithVersionNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
    + PSComputerName        : localhost

Cannot validate argument on parameter 'Name'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
    + CategoryInfo          : InvalidData: (:) [], Exception
    + FullyQualifiedErrorId : <Unknown>_<ScriptBlock>
    + PSComputerName        : localhost

[-] Integration Tests.Install-KbUpdate works.installs a patch 14.93s (14.92s|5ms)
 Expected a value, but got $null or empty.
 at $results | Should -Not -BeNullOrEmpty, C:\projects\kbupdate\tests\Integration.Tests.ps1:219
 at <ScriptBlock>, C:\projects\kbupdate\tests\Integration.Tests.ps1:219
[-] Integration Tests.Get-KbInstalledUpdate works.confirms that KB4527377 was actually installed 3.26s (3.26s|5ms)
 Expected the actual value to be greater than 0, but got 0.
 at $results.Count | Should -BeGreaterThan 0, C:\projects\kbupdate\tests\Integration.Tests.ps1:230
 at <ScriptBlock>, C:\projects\kbupdate\tests\Integration.Tests.ps1:230
Tests completed in 411.4s
Tests Passed: 23, Failed: 2, Skipped: 4 NotRun: 0