Tests/Integration/MSFT_NetConnectionProfile.config.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$rule = Get-NetConnectionProfile | Select-Object -First 1

configuration MSFT_NetConnectionProfile_Config {
    Import-DscResource -ModuleName NetworkingDsc

    node localhost {
        NetConnectionProfile Integration_Test {
            InterfaceAlias   = $rule.InterfaceAlias
            NetworkCategory  = $rule.NetworkCategory
            IPv4Connectivity = $rule.IPv4Connectivity
            IPv6Connectivity = $rule.IPv6Connectivity
        }
    }
}