There are intermittent integration test failures occurring in OpticalDiskDriveLetter:
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' =
SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' =
root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer WIN-B3R5QEEO4UF with user sid
S-1-5-21-4047340035-1406749611-3780686611-500.
VERBOSE: [WIN-B3R5QEEO4UF]: LCM: [ Start Set ]
VERBOSE: [WIN-B3R5QEEO4UF]: LCM: [ Start Resource ] [[OpticalDiskDriveLetter]Integration_Test]
VERBOSE: [WIN-B3R5QEEO4UF]: LCM: [ Start Test ] [[OpticalDiskDriveLetter]Integration_Test]
VERBOSE: [WIN-B3R5QEEO4UF]: [[OpticalDiskDriveLetter]Integration_Test]
Get-OpticalDiskDriveLetter: Using Get-CimInstance to get the drive letter of optical disk 2 in the system.
VERBOSE: [WIN-B3R5QEEO4UF]: [[OpticalDiskDriveLetter]Integration_Test] Perform operation
'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_CDROMDrive'.
VERBOSE: [WIN-B3R5QEEO4UF]: [[OpticalDiskDriveLetter]Integration_Test] Operation 'Enumerate
CimInstances' complete.
VERBOSE: [WIN-B3R5QEEO4UF]: [[OpticalDiskDriveLetter]Integration_Test]
Get-OpticalDiskDriveLetter: The optical disk 2 could not be found in the system.
VERBOSE: [WIN-B3R5QEEO4UF]: LCM: [ End Test ] [[OpticalDiskDriveLetter]Integration_Test] in 0.1880 seconds.
[-] Should compile and apply the MOF without throwing 389ms
Expected no exception to be thrown, but an exception "PowerShell DSC resource DSC_OpticalDiskDriveLetter failed to execute Test-TargetResource functionality with error message: The optical disk 2 could not be found in the system, so this resource has nothing to do. This resource does not change the drive letter of mounted ISOs.
Parameter name: DiskId " was thrown from D:\a\1\s\tests\Integration\DSC_OpticalDiskDriveLetter.Integration.Tests.ps1:199 char:21
+ Start-DscConfiguration `
+ ~~~~~~~~~~~~~~~~~~~~~~~~.
206: } | Should -Not -Throw
at <ScriptBlock>, D:\a\1\s\tests\Integration\DSC_OpticalDiskDriveLetter.Integration.Tests.ps1: line 182
VERBOSE: An LCM method call arrived from computer WIN-B3R5QEEO4UF with user sid
S-1-5-21-4047340035-1406749611-3780686611-500.
There are intermittent integration test failures occurring in OpticalDiskDriveLetter:
https://dev.azure.com/dsccommunity/StorageDsc/_build/results?buildId=2281&view=logs&j=e5903dc0-299b-5c16-f4a4-7b2df32e77c1&t=43d65258-a80c-540d-cc9c-6272089b2054&l=2142
The issue occurs more frequently on Windows Server 2019.