Tests/Integration/BMD_cFSRMQuotaAction.config.ps1
$quota = @{ Path = $ENV:Temp Description = 'Integration Test' Ensure = 'Present' Size = 5GB SoftLimit = $false ThresholdPercentages = [System.Collections.ArrayList]@( 100 ) Disabled = $false } $quotaAction = @{ Type = 'Email' Subject = '[FileScreen Threshold]% FileScreen threshold exceeded' Body = 'User [Source Io Owner] has exceed the [FileScreen Threshold]% FileScreen threshold for FileScreen on [FileScreen Path] on server [Server]. The FileScreen limit is [FileScreen Limit MB] MB and the current usage is [FileScreen Used MB] MB ([FileScreen Used Percent]% of limit).' MailBCC = '' MailCC = 'fileserveradmins@contoso.com' MailTo = '[Source Io Owner Email]' } Configuration BMD_cFSRMQuotaAction_Config { Import-DscResource -ModuleName cFSRM node localhost { cFSRMQuotaAction Integration_Test { Path = $quota.Path Percentage = $quota.ThresholdPercentages[0] Type = $quotaAction.Type Subject = $quotaAction.Subject Body = $quotaAction.Body MailBCC = $quotaAction.MailBCC MailCC = $quotaAction.MailCC MailTo = $quotaAction.MailTo } } } |