Update Connect-ZertoServer.Tests.ps1

This commit is contained in:
Wes Carroll
2019-02-22 13:16:12 -05:00
parent ab85b19854
commit 94a54f013a
+2 -2
View File
@@ -13,13 +13,13 @@ $zertoServer = "192.168.1.100"
$zertoPort = "7669" $zertoPort = "7669"
Describe "Connect-ZertoServer" { Describe "Connect-ZertoServer" {
it "should exist" { it "file should exist" {
"$filePath\$fileName" | should exist "$filePath\$fileName" | should exist
} }
it "has a function called Connect-ZertoServer" { it "has a function called Connect-ZertoServer" {
get-command Connect-ZertoServer | should be $true get-command Connect-ZertoServer | should be $true
} }
$headers = Connect-ZertoServer -zertoServer $zertoServer -zertoPort $zertoPort -credential $credential $headers = Connect-ZertoServer -zertoServer $zertoServer -zertoPort $zertoPort -credential $credential -returnHeaders
it "returns a Hashtable with 2 keys" { it "returns a Hashtable with 2 keys" {
$headers.keys.count | should be 2 $headers.keys.count | should be 2
} }