Skip to content

Commit

Permalink
Remove-User missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Moreau committed Sep 17, 2024
1 parent 9188f9c commit 605d6e1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tests/integration/UserLocal.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ Describe "Add User Local" {
{ Add-FGTUserLocal -Name $pester_userlocal -status -passwd $pester_userlocalpassword } | Should -Throw "Already a Local User object using the same name"
}

AfterAll {
Get-FGTUserLocal -name $pester_userlocal | Remove-FGTUserLocal -confirm:$false
}

}

}
Expand Down Expand Up @@ -654,6 +658,13 @@ Describe "Configure User Local" {
$userlocal.type | Should -Be "password"
}

AfterAll {
Get-FGTUserLocal -name $pester_userlocal | Remove-FGTUserLocal -confirm:$false
Get-FGTUserRADIUS -name $pester_userradius | Remove-FGTUserRADIUS -confirm:$false
Get-FGTUserTACACS -name $pester_usertacacs | Remove-FGTUserTACACS -confirm:$false
Get-FGTUserLDAP -name $pester_userldap | Remove-FGTUserLDAP -confirm:$false
}

}
}

Expand Down

0 comments on commit 605d6e1

Please sign in to comment.