Tests/Integration/MSFT_xDFSNamespaceRoot.config.ps1

$NamespaceRootName = 'IntegrationTestNamespace'
$NamespaceRoot = @{
    Path                         = "\\$($ENV:ComputerName)\$NamespaceRootName"
    TargetPath                   = "\\$($ENV:ComputerName)\$NamespaceRootName" 
    Ensure                       = 'Present'
    Type                         = 'Standalone'
    Description                  = 'Integration test namespace'
    TimeToLiveSec                = 500
    EnableSiteCosting            = $true
    EnableInsiteReferrals        = $true
    EnableAccessBasedEnumeration = $true
    EnableRootScalability        = $true
    EnableTargetFailback         = $true
    ReferralPriorityClass        = 'Global-Low'
    ReferralPriorityRank         = 10
}

Configuration MSFT_xDFSNamespaceRoot_Config {
    Import-DscResource -ModuleName xDFS
    node localhost {
        xDFSNamespaceRoot Integration_Test {
            Path                         = $NamespaceRoot.Path 
            TargetPath                   = $NamespaceRoot.TargetPath
            Ensure                       = $NamespaceRoot.Ensure
            Type                         = $NamespaceRoot.Type
            Description                  = $NamespaceRoot.Description
            TimeToLiveSec                = $NamespaceRoot.TimeToLiveSec
            EnableSiteCosting            = $NamespaceRoot.EnableSiteCosting
            EnableInsiteReferrals        = $NamespaceRoot.EnableInsiteReferrals
            EnableAccessBasedEnumeration = $NamespaceRoot.EnableAccessBasedEnumeration
            # Not supported by Standalone Namespaces
            # EnableRootScalability = $NamespaceRoot.EnableRootScalability
            EnableTargetFailback         = $NamespaceRoot.EnableTargetFailback
            ReferralPriorityClass        = $NamespaceRoot.ReferralPriorityClass
            ReferralPriorityRank         = $NamespaceRoot.ReferralPriorityRank
        }
    }
}