Skip to content

Commit c9efe82

Browse files
committed
Sync-DbaLoginPermission.Tests - Use double quotes for the PowerShell string literals
(do Sync-DbaLoginPermission)
1 parent 5fccaeb commit c9efe82

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Sync-DbaLoginPermission.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ CREATE LOGIN [$DBUserName]
7070
It "Should execute against active nodes" {
7171
# Creates the user on
7272
Invoke-DbaQuery -SqlInstance $TestConfig.InstanceMulti2 -Query $CreateTestLogin
73-
$results = Sync-DbaLoginPermission -Source $TestConfig.InstanceMulti1 -Destination $TestConfig.InstanceMulti2 -Login $DBUserName -ExcludeLogin 'NotaLogin' -WarningVariable warn
74-
$results.Status | Should -Be 'Successful'
73+
$results = Sync-DbaLoginPermission -Source $TestConfig.InstanceMulti1 -Destination $TestConfig.InstanceMulti2 -Login $DBUserName -ExcludeLogin "NotaLogin" -WarningVariable warn
74+
$results.Status | Should -Be "Successful"
7575
$warn | Should -BeNullOrEmpty
7676
}
7777

7878
# The copy failes on Appveyor with: Failed to create or use STIG schema on APPVYR-WIN\sql2017
7979
It "Should have copied the user permissions of $DBUserName" -Skip:$env:appveyor {
80-
$permissionsAfter = Get-DbaUserPermission -SqlInstance $TestConfig.InstanceMulti2 -Database master | Where-Object { $_.member -eq $DBUserName -and $_.permission -eq 'VIEW ANY DEFINITION' }
80+
$permissionsAfter = Get-DbaUserPermission -SqlInstance $TestConfig.InstanceMulti2 -Database master | Where-Object { $_.member -eq $DBUserName -and $_.permission -eq "VIEW ANY DEFINITION" }
8181
$permissionsAfter.member | Should -Be $DBUserName
8282
}
8383
}

0 commit comments

Comments
 (0)