Skip to content

Commit

Permalink
CLI(tests): Add show history test
Browse files Browse the repository at this point in the history
show history (and show tech) are not supported (and also config command...)
  • Loading branch information
alagoutte committed Apr 7, 2019
1 parent 34e938e commit 638f3fc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Tests/integration/Cli.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ Describe "Get (Any)CLi" {
$cli.result_base64_encoded | Should not be $NULL
$cli.result | Should not be $NULL
}

It "Get (Any)Cli 'show history' is not supported" {
$cli = Get-ArubaSWCli -cmd "show history"
$cli.status | Should be "CCS_FAILURE"
$cli.cmd | Should be "show history"
$cli.error_msg | Should -BeLike "The history commands are not supported via REST interface.*"
$cli.result_base64_encoded | Should be "VGhlIGhpc3RvcnkgY29tbWFuZHMgYXJlIG5vdCBzdXBwb3J0ZWQgdmlhIFJFU1QgaW50ZXJmYWNlLgoA"
$cli.result | Should -BeLike "The history commands are not supported via REST interface.*"
}
}

Disconnect-ArubaSW -noconfirm

0 comments on commit 638f3fc

Please sign in to comment.