Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -6,7 +6,7 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' {
|
||||
|
||||
Context "$global:function::Parameter Unit Tests" {
|
||||
It "$global:function should have exactly 24 parameters defined" {
|
||||
(Get-Command $global:function).Parameters.Count | Should -Be 24
|
||||
(Get-Command $global:function).Parameters.Count | Should -Be 25
|
||||
}
|
||||
|
||||
$ParameterTestCases = @(
|
||||
|
||||
@@ -25,6 +25,11 @@ function Install-ZertoVra {
|
||||
)]
|
||||
[ValidateRange(1, 16)]
|
||||
[int]$memoryInGB = 3,
|
||||
[Parameter(
|
||||
HelpMessage = "Initial number of CPUs to assign to the VRA. Default is 1, Minimum is 1, Maximum is 4"
|
||||
)]
|
||||
[ValidateRange(1, 4)]
|
||||
[int]$NumOfCpus = 1,
|
||||
[Parameter(
|
||||
HelpMessage = "Bandwidth group to assign to the VRA. If unspecified will assign to the 'default_group'"
|
||||
)]
|
||||
@@ -136,6 +141,7 @@ function Install-ZertoVra {
|
||||
}
|
||||
$vraBasic['HostIdentifier'] = $hostIdentifier.toString()
|
||||
$vraBasic['MemoryInGB'] = $memoryInGB
|
||||
$vraBasic['NumOfCpus'] = $NumOfCpus
|
||||
$vraBasic['NetworkIdentifier'] = $networkIdentifier.toString()
|
||||
$vraBasic['UsePublicKeyInsteadOfCredentials'] = $true
|
||||
$vraBasicNetwork = [ordered]@{ }
|
||||
|
||||
Reference in New Issue
Block a user