From 605d6e1272853dcffe383e00171211f166ca3cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Moreau?= Date: Tue, 17 Sep 2024 12:29:15 +0200 Subject: [PATCH] Remove-User missing --- Tests/integration/UserLocal.Tests.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Tests/integration/UserLocal.Tests.ps1 b/Tests/integration/UserLocal.Tests.ps1 index f91d36c3c..5fb8a9bb1 100644 --- a/Tests/integration/UserLocal.Tests.ps1 +++ b/Tests/integration/UserLocal.Tests.ps1 @@ -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 + } + } } @@ -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 + } + } }