dsccommunity / HyperVDsc

This module contains DSC resources for deployment and configuration of Microsoft Hyper-V.
MIT License
111 stars 65 forks source link

HyperVDsc: Run integration tests in CI #184

Open johlju opened 4 years ago

johlju commented 4 years ago

Currently it is not possible to run the integration tests in the Microsoft-hosted agent (the build worker). Another option should be looked at.

2020-03-17T18:19:51.6570964Z Success Restart Needed Exit Code      Feature Result                               
2020-03-17T18:19:51.6572733Z ------- -------------- ---------      --------------                               
2020-03-17T18:19:51.6573562Z False   Maybe          Failed         {}                                           
2020-03-17T18:19:51.8573421Z Install-WindowsFeature : A prerequisite check for the Hyper-V feature failed.
2020-03-17T18:19:51.8584306Z 1. Hyper-V cannot be installed: The processor does not have required virtualization capabilities.
2020-03-17T18:19:51.8585259Z At D:\a\_temp\b2224475-0220-4dd1-befa-ae6947c2bb93.ps1:2 char:1
2020-03-17T18:19:51.8586258Z + Install-WindowsFeature -Name 'Hyper-V', 'Hyper-V-PowerShell'
2020-03-17T18:19:51.8586803Z + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-03-17T18:19:51.8587476Z     + CategoryInfo          : InvalidOperation: (Hyper-V:ServerComponentWrapper) [Install-WindowsFeature], Exception
2020-03-17T18:19:51.8588664Z     + FullyQualifiedErrorId : Alteration_PrerequisiteCheck_Failed,Microsoft.Windows.ServerManager.Commands.AddWindowsF 
johlju commented 2 years ago

See also issue https://github.com/dsccommunity/HyperVDsc/issues/61.