Skip to content

Commit

Permalink
add -data tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Moreau committed Sep 9, 2024
1 parent ccd0872 commit 88b4464
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Tests/integration/UserLdap.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,15 @@ Describe "Configure User Ldap" {
$userldap.port | Should -Be "389"
}

It "Change secure connection with -data" {
$data = @{ "secure" = "ldaps" }
Get-FGTUserLDAP -name $pester_userldap | Set-FGTuserldap -data $data
$userldap = Get-FGTUserLDAP -name $pester_userldap
$userldap.name | Should -Be $pester_userldap
$userldap.secure | Should -Be "ldaps"
$userldap.port | Should -Be "636"
}

AfterAll {
Get-FGTUserLDAP -name $pester_userldap | Remove-FGTUserLDAP -confirm:$false
}
Expand Down

0 comments on commit 88b4464

Please sign in to comment.