tests/Test-DbaTempDbConfiguration.Tests.ps1

1
2
3
4
5
6
7
8
9
10
11
. "$PSScriptRoot\constants.ps1"

Describe "$commandname Integration Tests" -Tags "IntegrationTests" {
    Context "Testing if tempdb misconfiguration is reported" {
        $results = Test-DbaTempDbConfiguration -SqlInstance $script:instance1
        
        It "reports back issue for files on C drive" {
            $results.Rule -match 'File Location' | Should Be $true
        }
    }
}