Skip to content

Commit 8185d0c

Browse files
so that we use join-path Use Join-path to improve cross plat #934
1 parent f262396 commit 8185d0c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/internal/configurations/configuration.ps1

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Register-PSFConfigValidation -Name validation.EmailValidation -ScriptBlock $Emai
2121

2222
# some configs to help with autocompletes and other module level stuff
2323
#apps
24-
$defaultRepo = "$script:ModuleRoot\checks"
24+
$defaultRepo = Join-Path -Path $script:ModuleRoot -ChildPath checks
2525
Set-PSFConfig -Module dbachecks -Name app.checkrepos -Value @($defaultRepo) -Initialize -Description "Where Pester tests/checks are stored"
2626
Set-PSFConfig -Module dbachecks -Name app.sqlinstance -Value $null -Initialize -Description "List of SQL Server instances that SQL-based tests will run against"
2727
Set-PSFConfig -Module dbachecks -Name app.computername -Value $null -Initialize -Description "List of Windows Servers that Windows-based tests will run against"
@@ -248,7 +248,8 @@ Set-PSFConfig -Module dbachecks -Name policy.database.symmetrickeyencryptionleve
248248

249249
# skips - these are for whole checks that should not run by default or internal commands that can't be skipped using ExcludeTag
250250
# instance
251-
Set-PSFConfig -Module dbachecks -Name skip.instance.modeldbgrowth -Validation bool -Value $false -Initialize -Description "Skip the model database growth settings test"
251+
Set-PSFConfig -Module dbachecks -Name skip.instance.memorydump -Validation bool -Value $false -Initialize -Description "Skip the memory dump check"
252+
Set-PSFConfig -Module dbachecks -Name skip.instance.modeldbgrowth -Validation bool -Value $false -Initialize -Description "Skip the model database growth settings check"
252253
Set-PSFConfig -Module dbachecks -Name skip.instance.defaulttrace -Validation bool -Value $false -Initialize -Description "Skip the default trace check"
253254
Set-PSFConfig -Module dbachecks -Name skip.instance.dac -Validation bool -Value $false -Initialize -Description "Skip Dedicated Administrator Connection (DAC) check"
254255
Set-PSFConfig -Module dbachecks -Name skip.instance.CrossDBOwnershipChaining -Validation bool -Value $false -Initialize -Description "Skip Cross Database Ownership Chaining check"

0 commit comments

Comments
 (0)