-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 21122.7 validation assembly * Add test * Add 1185 test Co-authored-by: Stephen Weatherford <[email protected]>
- Loading branch information
1 parent
9b94b16
commit ab22441
Showing
6 changed files
with
133 additions
and
45 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
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
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
5 changes: 5 additions & 0 deletions
5
test/templates/linkedTemplates/tc14-contentVersion/subfolder/child14.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,5 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.2.3.4", | ||
"resources": [] | ||
} |
53 changes: 53 additions & 0 deletions
53
test/templates/linkedTemplates/tc14-contentVersion/tc14.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,53 @@ | ||
{ | ||
// Verify correct scope of expressions, variables, parameters | ||
|
||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"resources": [ | ||
{ | ||
"name": "linkedDeployment1", | ||
"type": "Microsoft.Resources/deployments", | ||
"apiVersion": "2020-10-01", | ||
"properties": { | ||
"mode": "Incremental", | ||
"templateLink": { | ||
"relativePath": "subfolder/child14.json", | ||
// correct content version - OK | ||
"contentVersion": "1.2.3.4" | ||
}, | ||
"parameters": { | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "linkedDeployment1", | ||
"type": "Microsoft.Resources/deployments", | ||
"apiVersion": "2020-10-01", | ||
"properties": { | ||
"mode": "Incremental", | ||
"templateLink": { | ||
"relativePath": "subfolder/child14.json" | ||
// no content version - OK | ||
}, | ||
"parameters": { | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "linkedDeployment1", | ||
"type": "Microsoft.Resources/deployments", | ||
"apiVersion": "2020-10-01", | ||
"properties": { | ||
"mode": "Incremental", | ||
"templateLink": { | ||
"relativePath": "subfolder/child14.json", | ||
// incorrect content version - ERROR | ||
"contentVersion": "1.2.3.5" | ||
}, | ||
"parameters": { | ||
} | ||
} | ||
} | ||
], | ||
"outputs": {} | ||
} |
6 changes: 6 additions & 0 deletions
6
test/templates/linkedTemplates/tc14-contentVersion/tc14.parameters.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,6 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
} | ||
} |