Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VMHyperV: Added the ability to enable or disable the TPM on a VM #215

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Initialise the VMKeyProtector if it is not initialised

8a2f282
Select commit
Failed to load commit list.
Open

VMHyperV: Added the ability to enable or disable the TPM on a VM #215

Initialise the VMKeyProtector if it is not initialised
8a2f282
Select commit
Failed to load commit list.
Azure Pipelines / dsccommunity.HyperVDsc failed Dec 14, 2023 in 4m 1s

Build #4.0.0-PR0215.5 had test failures

Details

Tests

  • Failed: 12 (0.72%)
  • Passed: 1,632 (97.49%)
  • Other: 30 (1.79%)
  • Total: 1,674

Annotations

Check failure on line 383 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dsccommunity.HyperVDsc

Build log #L383

PowerShell exited with code '1'.

Check failure on line 1827 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dsccommunity.HyperVDsc

Build log #L1827

PowerShell exited with code '1'.

Check failure on line 1334 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dsccommunity.HyperVDsc

Build log #L1334

PowerShell exited with code '1'.

Check failure on line 1 in Error occurred in test script 'D:\a\1\s\tests\Integration\DSC_VMHost.Integration.Tests.ps1'

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dsccommunity.HyperVDsc

Error occurred in test script 'D:\a\1\s\tests\Integration\DSC_VMHost.Integration.Tests.ps1'

At D:\a\1\s\tests\Integration\DSC_VMHost_set.config.ps1:18 char:5
+     Import-DscResource -ModuleName 'xHyperV'
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Could not find the module 'xHyperV'.
Raw output
at <ScriptBlock>, D:\a\1\s\tests\Integration\DSC_VMHost.Integration.Tests.ps1: line 41

Check failure on line 1 in DSC_VMProcessor_Set_Integration.Configure VM.Should compile without throwing

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dsccommunity.HyperVDsc

DSC_VMProcessor_Set_Integration.Configure VM.Should compile without throwing

Expected no exception to be thrown, but an exception "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The term 'xVMProcessor' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." was thrown from D:\a\1\s\tests\Integration\DSC_VMProcessor_set.config.ps1:1 char:1
    + configuration DSC_VMProcessor_Set_Config {
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
Raw output
at <ScriptBlock>, D:\a\1\s\tests\Integration\DSC_VMProcessor.Integration.Tests.ps1: line 72
72:                 } | Should not throw

Check failure on line 1 in DSC_VMProcessor_Set_Integration.Configure VM.should be able to call Get-DscConfiguration without throwing

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dsccommunity.HyperVDsc

DSC_VMProcessor_Set_Integration.Configure VM.should be able to call Get-DscConfiguration without throwing

Expected no exception to be thrown, but an exception "Current configuration does not exist. Execute Start-DscConfiguration command with -Path parameter to specify a configuration file and create a current configuration first." was thrown from D:\a\1\s\tests\Integration\DSC_VMProcessor.Integration.Tests.ps1:76 char:19
    + ...             { Get-DscConfiguration -Verbose -ErrorAction Stop } | Sho ...
    +                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
Raw output
at <ScriptBlock>, D:\a\1\s\tests\Integration\DSC_VMProcessor.Integration.Tests.ps1: line 76
76:                 { Get-DscConfiguration -Verbose -ErrorAction Stop } | Should Not throw

Check failure on line 1 in DSC_VMProcessor_Set_Integration.Configure VM.Should have set the resource and all the parameters should match

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dsccommunity.HyperVDsc

DSC_VMProcessor_Set_Integration.Configure VM.Should have set the resource and all the parameters should match

Current configuration does not exist. Execute Start-DscConfiguration command with -Path parameter to specify a configuration file and create a current configuration first.
Raw output
at <ScriptBlock>, D:\a\1\s\tests\Integration\DSC_VMProcessor.Integration.Tests.ps1: line 81
81:                 $current = Get-DscConfiguration | Where-Object {