Skip to content

Commit 300f3a6

Browse files
committed
Fix parameter name for low-privilege login creation in integration tests
1 parent 31a95cb commit 300f3a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Integration/Commands/Restore-SqlDscDatabase.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ WITH NOINIT, NOSKIP, REWIND, NOUNLOAD, STATS = 10;
991991
$script:lowPrivCredential = [System.Management.Automation.PSCredential]::new($script:lowPrivLoginName, $script:lowPrivPassword)
992992

993993
# Create the login
994-
$script:lowPrivLoginObject = New-SqlDscLogin -ServerObject $script:serverObject -Name $script:lowPrivLoginName -LoginType 'SqlLogin' -SecureString $script:lowPrivPassword -PassThru -Force -ErrorAction 'Stop'
994+
$script:lowPrivLoginObject = New-SqlDscLogin -ServerObject $script:serverObject -Name $script:lowPrivLoginName -SqlLogin -SecurePassword $script:lowPrivPassword -PassThru -Force -ErrorAction 'Stop'
995995

996996
# Grant VIEW ANY DATABASE permission
997997
$null = Grant-SqlDscServerPermission -Login $script:lowPrivLoginObject -Permission ViewAnyDatabase -Force -ErrorAction 'Stop'

0 commit comments

Comments
 (0)