diff --git a/utilities/pipelines/staticValidation/module.tests.ps1 b/utilities/pipelines/staticValidation/module.tests.ps1 index 5b5664939a..084e73c702 100644 --- a/utilities/pipelines/staticValidation/module.tests.ps1 +++ b/utilities/pipelines/staticValidation/module.tests.ps1 @@ -623,6 +623,10 @@ Describe 'Module tests' -Tag 'Module' { ) $lock = $templateContent.parameters.lock + if (-not $lock) { + Set-ItResult -Skipped -Because 'the module template has no lock parameter implemented' + } + $isNullable = $lock.nullable $hasEmptyDefault = $lock.defaultValue -eq '' $hasNullableUDT = ($lock.Keys -contains '$ref') ? $templateContent.definitions[(Split-Path $lock.'$ref' -Leaf)].nullable : $false