File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments