-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
325 blank property exception improvement (#550)
* Fixing #325: Allowing acceptable blanks list to have blank nested properties * Fixing #325: Adding test for Blanks in AppSettings * Updating Blank Exemptions (allowing blanks per resource type) * Template Should Not Contain Blanks: Updating Parameter Help * Adding failure case to validate #325
- Loading branch information
1 parent
38e6f44
commit 1fc9c76
Showing
3 changed files
with
134 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
unit-tests/Template-Should-Not-Contain-Blanks/Fail/Blanks-In-Config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().location]" | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Web/sites/config", | ||
"name": "[concat(variables('AppServiceName'), '/appsettings')]", | ||
"apiVersion": "2020-09-01", | ||
"location": "[parameters('location')]", | ||
"foo": "" | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
unit-tests/Template-Should-Not-Contain-Blanks/Pass/Blanks-In-Config-AppSettings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().location]" | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Web/sites/config", | ||
"name": "[concat(variables('AppServiceName'), '/appsettings')]", | ||
"apiVersion": "2020-09-01", | ||
"location": "[parameters('location')]", | ||
"properties": { | ||
"SIGNAL_TO_SOMEBODY_THAT_DEFAULT_VALUE_IS_EMPTY": "" | ||
} | ||
} | ||
] | ||
} |