Skip to content

Commit e48b06e

Browse files
committed
Refactor test login creation in Remove-SqlDscLogin integration tests for consistency
1 parent 4a28a9e commit e48b06e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Integration/Commands/Remove-SqlDscLogin.Integration.Tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ Describe 'Remove-SqlDscLogin' -Tag @('Integration_SQL2016', 'Integration_SQL2017
148148

149149
It 'Should work with the Refresh parameter' {
150150
# Create the test login
151-
$script:testLoginPassword3 = ConvertTo-SecureString -String 'P@ssw0rd3!' -AsPlainText -Force
152-
$null = $script:serverObject | New-SqlDscLogin -Name $script:testLoginName3 -SqlLogin -SecurePassword $script:testLoginPassword3 -Force
151+
$testLoginPassword3 = ConvertTo-SecureString -String 'P@ssw0rd3!' -AsPlainText -Force
152+
$null = $script:serverObject | New-SqlDscLogin -Name $script:testLoginName3 -SqlLogin -SecurePassword $testLoginPassword3 -Force
153153

154154
# Verify the login exists
155155
$loginExists = Test-SqlDscIsLogin -ServerObject $script:serverObject -Name $script:testLoginName3

0 commit comments

Comments
 (0)