Skip to content

Commit 4793c11

Browse files
committed
Update low-privilege connection to use SQL authentication in integration tests
1 parent 300f3a6 commit 4793c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,8 @@ WITH NOINIT, NOSKIP, REWIND, NOUNLOAD, STATS = 10;
998998
}
999999

10001000
BeforeEach {
1001-
# Connect with low-privilege credentials
1002-
$script:lowPrivServerObject = Connect-SqlDscDatabaseEngine -InstanceName $script:mockInstanceName -Credential $script:lowPrivCredential -ErrorAction 'Stop'
1001+
# Connect with low-privilege credentials using SQL authentication
1002+
$script:lowPrivServerObject = Connect-SqlDscDatabaseEngine -InstanceName $script:mockInstanceName -LoginType 'SqlLogin' -Credential $script:lowPrivCredential -ErrorAction 'Stop'
10031003
}
10041004

10051005
AfterEach {

0 commit comments

Comments
 (0)