Skip to content

Commit

Permalink
so that we use join-path Use Join-path to improve cross plat #934
Browse files Browse the repository at this point in the history
  • Loading branch information
SQLDBAWithABeard committed Apr 6, 2023
1 parent f262396 commit 8185d0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/internal/configurations/configuration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Register-PSFConfigValidation -Name validation.EmailValidation -ScriptBlock $Emai

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

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

0 comments on commit 8185d0c

Please sign in to comment.