Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Moreau committed Sep 17, 2024
1 parent 2e92424 commit 49a6bee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Tests/common.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $script:pester_userradiusserver2 = "pesterradiusserver2.powerfgt"
$script:pester_userradiusserver3 = "pesterradiusserver3.powerfgt"
$script:pester_userradius_secret = ConvertTo-SecureString "pester_userradiussecret" -AsPlainText -Force

. ../credential.ps1
#. ../credential.ps1
#TODO: Add check if no ipaddress/login/password info...

$script:mysecpassword = ConvertTo-SecureString $password -AsPlainText -Force
Expand Down
33 changes: 17 additions & 16 deletions Tests/integration/UserLocal.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ Describe "Configure User Local" {

}

Context "Change name, email, MFA, etc as LDAP User" {
Context "Change type" {

BeforeAll {
Add-FGTUserRADIUS -Name $pester_userradius -server $pester_userradiusserver1 -secret $pester_userradius_secret
Expand Down Expand Up @@ -655,26 +655,27 @@ Describe "Configure User Local" {
}

}
}

Describe "Remove User Local" {

Context "local" {
Describe "Remove User Local" {

BeforeEach {
Add-FGTUserLocal -Name $pester_userlocal -passwd $pester_userlocalpassword
}
Context "local" {

It "Remove User Local $pester_userlocal by pipeline" {
$userlocal = Get-FGTUserLocal -name $pester_userlocal
$userlocal | Remove-FGTUserLocal -confirm:$false
$userlocal = Get-FGTUserLocal -name $pester_userlocal
$userlocal | Should -Be $NULL
}
BeforeEach {
Add-FGTUserLocal -Name $pester_userlocal -passwd $pester_userlocalpassword
}

It "Remove User Local $pester_userlocal by pipeline" {
$userlocal = Get-FGTUserLocal -name $pester_userlocal
$userlocal | Remove-FGTUserLocal -confirm:$false
$userlocal = Get-FGTUserLocal -name $pester_userlocal
$userlocal | Should -Be $NULL
}

}

AfterAll {
Disconnect-FGT -confirm:$false
}
}

AfterAll {
Disconnect-FGT -confirm:$false
}

0 comments on commit 49a6bee

Please sign in to comment.