Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johlju committed May 9, 2024
1 parent 3dd2803 commit 6114dfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/Public/Save-SqlDscSqlServerMedia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function Save-SqlDscSqlServerMedia

[Parameter(Mandatory = $true)]
[System.IO.FileInfo]
[ValidateScript({Test-Path $_ -PathType 'Container'})]
[ValidateScript({ Test-Path $_ -PathType 'Container' })]
$DestinationPath,

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ Describe 'Prerequisites' -Tag @('Integration_SQL2016', 'Integration_SQL2017', 'I
}

It 'Creates svc-SqlSecondary user' {
$user = New-LocalUser -Name 'svc-SqlSecondary' -Password $password -FullName 'svc-SqlSecondary' -Description 'Runs the SQL Server service on the second node.'
$user = New-LocalUser -Name 'svc-SqlSecondary' -Password $password -FullName 'svc-SqlSecondary' -Description 'Runs the SQL Server service.'

$user.Name | Should -Be 'svc-SqlSecondary'
(Get-LocalUser -Name 'svc-SqlSecondary').Name | Should -Be 'svc-SqlSecondary'
}

It 'Creates svc-SqlAgentSec user' {
$user = New-LocalUser -Name 'svc-SqlAgentSec' -Password $password -FullName 'svc-SqlAgentSec' -Description 'Runs the SQL Server Agent service on the second node.'
$user = New-LocalUser -Name 'svc-SqlAgentSec' -Password $password -FullName 'svc-SqlAgentSec' -Description 'Runs the SQL Server Agent service.'

$user.Name | Should -Be 'svc-SqlAgentSec'
(Get-LocalUser -Name 'svc-SqlAgentSec').Name | Should -Be 'svc-SqlAgentSec'
Expand All @@ -86,7 +86,7 @@ Describe 'Prerequisites' -Tag @('Integration_SQL2016', 'Integration_SQL2017', 'I
# Verify if user is part of local administrator group
$adminGroup = Get-LocalGroup -Name 'Administrators'
$adminGroupMembers = Get-LocalGroupMember -Group $adminGroup
$adminGroupMembers.Name | Should -Contain ('{0]\SqlInstall' -f (Get-ComputerName))
$adminGroupMembers.Name | Should -Contain ('{0}\SqlInstall' -f (Get-ComputerName))
}
}

Expand Down

0 comments on commit 6114dfb

Please sign in to comment.