Skip to content

Commit b85a965

Browse files
authored
Update Password-params-must-be-secure.test.ps1 (#720)
* Update Password-params-must-be-secure.test.ps1 * Update no-password-params.json * Update no-password-params.json
1 parent 107056f commit b85a965

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

arm-ttk/testcases/deploymentTemplate/Password-params-must-be-secure.test.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ foreach ($parameter in $templateObject.parameters.psobject.properties) {
3838
$name -like "*accountkey*") {
3939
# if it's not secure, flag it
4040

41-
if ($type -ne 'securestring' -and $type -ne 'secureobject') {
41+
if ($type -ne 'securestring' -and $type -ne 'secureobject' -and $type -ne 'bool') {
4242
#except certain patterns we know about in ARM
4343
# secret + Permissions (keyVault secret perms is an accessPolicy property)
4444
# secret + Version (url or simply the version property of a secret)

unit-tests/Password-params-must-be-secure/Pass/no-password-params.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"parameters": {
55
"my_Parameter": {
66
"type": "string"
7+
},
8+
"secretToggle": {
9+
"type": "bool"
710
}
811
},
912
"resources": []
10-
}
13+
}

0 commit comments

Comments
 (0)