Tests/Integration/MSFT_DNSConnectionSuffix.config.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$TestDnsConnectionSuffix = [PSObject]@{
    InterfaceAlias                 = 'NetworkingDscLBA'
    ConnectionSpecificSuffix       = 'contoso.com'
    RegisterThisConnectionsAddress = $true
    UseSuffixWhenRegistering       = $false
    Ensure                         = 'Present'
}

configuration MSFT_DnsConnectionSuffix_Config {
    Import-DscResource -ModuleName NetworkingDsc

    node localhost {
        DnsConnectionSuffix Integration_Test {
            InterfaceAlias                 = $TestDnsConnectionSuffix.InterfaceAlias
            ConnectionSpecificSuffix       = $TestDnsConnectionSuffix.ConnectionSpecificSuffix
            RegisterThisConnectionsAddress = $TestDnsConnectionSuffix.RegisterThisConnectionsAddress
            UseSuffixWhenRegistering       = $TestDnsConnectionSuffix.UseSuffixWhenRegistering
            Ensure                         = $TestDnsConnectionSuffix.Ensure
        }
    }
}