Update Get-ZertoAlert.Tests.ps1
Added alertId check
This commit is contained in:
@@ -16,4 +16,14 @@ Describe $file.BaseName -Tag 'Unit' {
|
|||||||
$null = [System.Management.Automation.PSParser]::Tokenize($contents, [ref]$errors)
|
$null = [System.Management.Automation.PSParser]::Tokenize($contents, [ref]$errors)
|
||||||
$errors | Should -HaveCount 0
|
$errors | Should -HaveCount 0
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Context "$($file.BaseName)::Parameter Unit Tests" {
|
||||||
|
|
||||||
|
it "Has a mandatory string parameter for the Alert identifier" {
|
||||||
|
Get-Command $file.BaseName | Should -HaveParameter alertId -Mandatory -Type String[]
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user