From 638f3fcf159494a6d69bb7e50f40e212a94b0aec Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sun, 7 Apr 2019 15:59:13 +0200 Subject: [PATCH] CLI(tests): Add show history test show history (and show tech) are not supported (and also config command...) --- Tests/integration/Cli.Tests.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tests/integration/Cli.Tests.ps1 b/Tests/integration/Cli.Tests.ps1 index 241ec5d..95b7c2e 100644 --- a/Tests/integration/Cli.Tests.ps1 +++ b/Tests/integration/Cli.Tests.ps1 @@ -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 \ No newline at end of file