Skip to content

Instantly share code, notes, and snippets.

@PlagueHO
Created January 25, 2016 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PlagueHO/2c854c65a6ff6500d78c to your computer and use it in GitHub Desktop.
Save PlagueHO/2c854c65a6ff6500d78c to your computer and use it in GitHub Desktop.
Example DSC Resource Integration Tests Config Step 2
$VirtualDisk = @{
Path = Join-Path -Path $ENV:Temp -ChildPath 'TestiSCSIVirtualDisk.vhdx'
Ensure = 'Present'
DiskType = 'Dynamic'
Size = 100MB
Description = 'Integration Test iSCSI Virtual Disk'
}
Configuration BMD_ciSCSIVirtualDisk_Config {
Import-DscResource -Name BMD_ciSCSIVirtualDisk_Config
node localhost {
BMD_ciSCSIVirtualDis Ikntegration_Test {
Path = $VirtualDisk.Path
Ensure = $VirtualDisk.Ensure
DiskType = $VirtualDisk.DiskType
SizeBytes = $VirtualDisk.Size
Description = $VirtualDisk.Description
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment