From fb722661a79f1b59514e43c08d229ad12a12e246 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Fri, 3 Apr 2020 16:51:09 -0400 Subject: [PATCH] Update Edit-ZertoVra.Tests.ps1 --- Tests/Public/Edit-ZertoVra.Tests.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/Public/Edit-ZertoVra.Tests.ps1 b/Tests/Public/Edit-ZertoVra.Tests.ps1 index ec609fd..9c872fc 100644 --- a/Tests/Public/Edit-ZertoVra.Tests.ps1 +++ b/Tests/Public/Edit-ZertoVra.Tests.ps1 @@ -28,6 +28,7 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' { @{ParameterName = 'vraIpAddress'; Type = 'String'; Mandatory = $false } @{ParameterName = 'defaultGateway'; Type = 'String'; Mandatory = $false } @{ParameterName = 'subnetMask'; Type = 'String'; Mandatory = $false } + @{ParameterName = 'HostRootPassword'; Type = 'securestring'; Mandatory = $false} ) It " parameter is of type" -TestCases $ParameterTestCases { @@ -56,7 +57,7 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' { param($ParameterName) $attrs = (Get-Command $global:function).Parameters[$ParameterName].Attributes $attrs.Where{ $_ -is [ValidateScript] }.Count | Should -Be 1 - $attrs.Where{ $_ -is [ValidateScript] }.ScriptBlock | Should -Match '^\$_ \-match \[IPAddress\]\$_' + $attrs.Where{ $_ -is [ValidateScript] }.ScriptBlock | Should -Match '\$_ \-match \[IPAddress\]\$_' } }