Tests/Integration/UpdateServicesClientDSC.config.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$UpdateServicesClientDSC = [PSObject]@{
    Ensure                 = 'Present'
    AutomaticUpdateEnabled = $true
    AutomaticUpdateOption  = 'AutoDownloadAndNotifyForInstall'
    UpdateServer           = 'https://wsus01.dscdomain.local:8530'
    UpdateTargetGroup      = 'test'
}

configuration UpdateServicesClientDSC_Config {
    Import-DscResource -ModuleName UpdateServicesClientDSC
    node localhost {
        UpdateServicesClientDSC Integration_Test {
            Ensure                 = $UpdateServicesClientDSC.Ensure
            AutomaticUpdateEnabled = $UpdateServicesClientDSC.AutomaticUpdateEnabled
            AutomaticUpdateOption  = $UpdateServicesClientDSC.AutomaticUpdateOption
            UpdateServer           = $UpdateServicesClientDSC.UpdateServer
            UpdateTargetGroup      = $UpdateServicesClientDSC.UpdateTargetGroup
        }
    }
}