Tests/Integration/MSFT_UserResource.config.ps1
# Integration Test Config Template Version 1.0.0 param ( [Parameter(Mandatory = $true)] [System.String] $ConfigurationName ) Configuration $ConfigurationName { param ( [System.String] $UserName = 'Test UserName', [System.String] $Description = 'Test Description', [System.String] $FullName = 'Test Full Name', [ValidateSet('Present', 'Absent')] [System.String] $Ensure = 'Present', [Parameter(Mandatory = $true)] [System.Management.Automation.PSCredential] [System.Management.Automation.Credential()] $Password ) Import-DscResource -ModuleName 'PSDscResources' Node Localhost { User UserResource1 { UserName = $UserName Ensure = $Ensure FullName = $FullName Description = $Description Password = $Password } } } |