-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cédric Moreau
committed
Feb 25, 2019
1 parent
10d5055
commit 1bd9da5
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# | ||
# Copyright 2019, Alexis La Goutte <alexis.lagoutte at gmail dot com> | ||
# Copyright 2019, Cédric Moreau <moreaucedric0 at gmail dot com> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
. ../common.ps1 | ||
|
||
Describe "Get-ArubaSWCliBatchStatus" { | ||
It "Get ArubaSWCliBatchStatus Does not throw an error" { | ||
{ | ||
Get-ArubaSWCliBatchStatus | ||
} | Should Not Throw | ||
} | ||
|
||
It "Get ArubaSWCliBatchStatus" { | ||
$cli = Get-ArubaSWCliBatchStatus | ||
$cli | Should not be $NULL | ||
} | ||
} | ||
|
||
Describe "Write ArubaSWCliBatch" { | ||
It "Write ArubaSWCliBatch" { | ||
Write-ArubaSWCliBatch -command "interface 4","disable" | ||
$cli = Get-ArubaSWCliBatchStatus | ||
$cli.status | Should be "CCS_SUCCESS" | ||
Write-ArubaSWCliBatch -command "interface 4","enable" | ||
} | ||
} | ||
|
||
Disconnect-ArubaSW -noconfirm |