Skip to content

Commit

Permalink
[dsccommunity#1669] Fixing SqlLogin integration tests - wrong expecte…
Browse files Browse the repository at this point in the history
…d value for DSC_SqlLogin_AddLoginDscUser5_Config
  • Loading branch information
bozho committed Mar 28, 2022
1 parent 026158f commit 477b768
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/Integration/DSC_SqlLogin.Integration.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ try
$resourceCurrentState.LoginType | Should -Be $ConfigurationData.AllNodes.DscUser5Type
$resourceCurrentState.Disabled | Should -Be $false
$resourceCurrentState.LoginMustChangePassword | Should -Be $false
$resourceCurrentState.LoginPasswordPolicyEnforced | Should -Be $true
$resourceCurrentState.LoginPasswordPolicyEnforced | Should -Be $false
$resourceCurrentState.LoginPasswordExpirationEnabled | Should -Be $false
}

Expand Down
12 changes: 6 additions & 6 deletions tests/Integration/DSC_SqlLogin.config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ Configuration DSC_SqlLogin_UpdateLoginDscUser4_Config

<#
.SYNOPSIS
Updates a SQL login, sets LoginPasswordExpirationEnabled to $true
Updates a SQL login, sets LoginPasswordPolicyEnforced to $true
#>
Configuration DSC_SqlLogin_UpdateLoginDscUser4_Config_LoginPasswordExpirationEnabled
Configuration DSC_SqlLogin_UpdateLoginDscUser4_Config_LoginPasswordPolicyEnforced
{
Import-DscResource -ModuleName 'SqlServerDsc'

Expand All @@ -330,7 +330,7 @@ Configuration DSC_SqlLogin_UpdateLoginDscUser4_Config_LoginPasswordExpirationEna
Ensure = 'Present'
Name = $Node.DscUser4Name
LoginType = $Node.DscUser4Type
LoginPasswordExpirationEnabled = $true
LoginPasswordPolicyEnforced = $true

ServerName = $Node.ServerName
InstanceName = $Node.InstanceName
Expand All @@ -344,9 +344,9 @@ Configuration DSC_SqlLogin_UpdateLoginDscUser4_Config_LoginPasswordExpirationEna

<#
.SYNOPSIS
Updates a SQL login, sets LoginPasswordPolicyEnforced to $true
Updates a SQL login, sets LoginPasswordExpirationEnabled to $true
#>
Configuration DSC_SqlLogin_UpdateLoginDscUser4_Config_LoginPasswordPolicyEnforced
Configuration DSC_SqlLogin_UpdateLoginDscUser4_Config_LoginPasswordExpirationEnabled
{
Import-DscResource -ModuleName 'SqlServerDsc'

Expand All @@ -357,7 +357,7 @@ Configuration DSC_SqlLogin_UpdateLoginDscUser4_Config_LoginPasswordPolicyEnforce
Ensure = 'Present'
Name = $Node.DscUser4Name
LoginType = $Node.DscUser4Type
LoginPasswordPolicyEnforced = $true
LoginPasswordExpirationEnabled = $true

ServerName = $Node.ServerName
InstanceName = $Node.InstanceName
Expand Down

0 comments on commit 477b768

Please sign in to comment.