Skip to content

Commit 2b76c0c

Browse files
fix: CI - Corrected test wording (Azure#6464)
## Description Corrected the test's 'Conditional parameters' & UDT's description should contain 'Required if' followed by the condition making the parameter required.' _because_ block as it currently asks to **not** specify the reason (which is not only incorrect, but also conflicts with the test's title). ## Type of Change <!-- Use the checkboxes [x] on the options that are relevant. --> - Azure Verified Module updates: - [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation - [x] Update to CI Environment or utilities (Non-module affecting changes) --------- Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com>
1 parent 70cc015 commit 2b76c0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utilities/pipelines/staticValidation/compliance/module.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ Describe 'Module tests' -Tag 'Module' {
992992
}
993993
}
994994
}
995-
$incorrectParameters | Should -BeNullOrEmpty -Because ('conditional parameters in the template file should lack a description that starts with "Required.". Found incorrect items: [{0}].' -f ($incorrectParameters -join ', '))
995+
$incorrectParameters | Should -BeNullOrEmpty -Because ('the description of conditional parameters in the template file must contain a sentence that starts with "Required if", explaining when the parameter is mandatory. Found incorrect items: [{0}].' -f ($incorrectParameters -join ', '))
996996
}
997997

998998
It '[<moduleFolderName>] All non-required parameters & UDTs in template file should not have description that start with "Required.".' -TestCases $moduleFolderTestCases {

0 commit comments

Comments
 (0)