Skip to content

Commit

Permalink
System(test): Add test for Get-ArubaSWSystemStatusSwitch
Browse files Browse the repository at this point in the history
  • Loading branch information
alagoutte committed Nov 25, 2018
1 parent 649fb5d commit 2f8b1db
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Tests/integration/System.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,20 @@ Describe "Get System Status" {
}
}

Describe "Get System Status Switch" {
It "Get System Status SwitchDoes not throw an error" {
{
Get-ArubaSWSystemStatusSwitch
} | Should Not Throw
}

It "Get System Status Switch" {
$SYSTEM_STATUS_SWITCH = Get-ArubaSWSystemStatusSwitch
$SYSTEM_STATUS_SWITCH.switch_type | Should not be $NULL
$SYSTEM_STATUS_SWITCH.product_name | should not be $NULL
$SYSTEM_STATUS_SWITCH.product_number | should not be $NULL
$SYSTEM_STATUS_SWITCH.hardware_info | should not be $NULL
$SYSTEM_STATUS_SWITCH.blades | should not be $NULL
}
}
Disconnect-ArubaSW -noconfirm

0 comments on commit 2f8b1db

Please sign in to comment.