Skip to content

Commit

Permalink
TACACS(Tests): Use BeforeALL for Pester V5 Discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
alagoutte committed Dec 27, 2021
1 parent a077ef3 commit 0097073
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tests/integration/Tacacs.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#
. ../common.ps1

BeforeAll {
Connect-ArubaCX @invokeParams
}

Describe "Get TACACS Server" {
BeforeAll {
Add-ArubaCXTacacsServer -address $pester_tacacs_address -port $pester_tacacs_port -group tacacs -default_group_priority 1 -auth_type pap -timeout 15
Expand Down Expand Up @@ -218,4 +222,6 @@ Describe "Remove TACACS Server" {

}

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

0 comments on commit 0097073

Please sign in to comment.