Tests/Integration/integration_config_template.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<#
.Synopsis
   DSC Configuration Template for DSC Resource Integration tests.
.DESCRIPTION
   To Use:
     1. Copy to \Tests\Integration\ folder and rename <ResourceName>.config.ps1 (e.g. MSFT_xFirewall.config.ps1)
     2. Customize TODO sections.
 
.NOTES
#>



# TODO: Modify ResourceName (e.g. MSFT_xFirewall_config)
# Integration Test Config Template Version: 1.0.0
configuration <ResourceName>_config {
    # TODO: Modify ModuleName (e.g. xNetworking)
    Import-DscResource -ModuleName '<ModuleName>'
    node localhost {
        # TODO: Modify ResourceFriendlyName (e.g. xFirewall Integration_Test)
        <ResourceFriendlyName> Integration_Test {
            # TODO: Fill Configuration Code Here
        }
    }
}

# TODO: (Optional): Add More Configuration Templates