Skip to content

Commit

Permalink
Small lock update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Oct 18, 2023
1 parent df30945 commit 7c2d280
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utilities/pipelines/staticValidation/module.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c2d280

Please sign in to comment.