Skip to content

Commit

Permalink
RestVersion(Tests): Add test for RestVersion (Get-ArubaSWRestVersion)
Browse files Browse the repository at this point in the history
Part of #36
  • Loading branch information
alagoutte committed Nov 25, 2018
1 parent d9a6ae6 commit 620c7e8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Tests/integration/RestVersion.Tests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Copyright 2018, Alexis La Goutte <alexis.lagoutte at gmail dot com>
# Copyright 2018, Cédric Moreau <moreaucedric0 at gmail dot com>
#
# SPDX-License-Identifier: Apache-2.0
#

../common.ps1

Describe "Get-ArubaSWRestVersion" {
It "Get-ArubaSWRestVersion Does not throw an error" {
{
Get-ArubaSWRestVersion
} | Should Not Throw
}

It "Get-ArubaSWRestVersion should not be null" {
$version = Get-ArubaSWRestVersion
$version.version | Should not be $NULL
}
}

Disconnect-ArubaSW -noconfirm

0 comments on commit 620c7e8

Please sign in to comment.