Commit d3e5b64
Inner templates improvements (#589)
* Find-JsonContent: Fixing Underlying issue of #583
2nd or more JSONPath in the same hierarchy would be returned corrupted
* Adding unit test for Find-JSONContent and multiple list items
* Test-AzTemplate: Fixing #581, #583, #580, #583
* Returning one result per inner template node (this cleans up reporting) (#580, #581)
* Accepting return objects with a .JSONPath for easier line association
* Adding exception handling around [Matches] (#583)
* Adding additional context to Test-AzTemplate return value
* Parameters-Must-Be-Referenced: Adding .JSONPath to TargetObject to enhance returns
* Test-AzTemplate: Ensures empty results are counted as passed.
* Test-AzTemplate: Fixing Typo the stopped errors from being populated
* Test-AzTemplate: Adding -Verbose message when Resolve-JSONObject fails
* Test-AzTemplate: stringifying .TargetObject.JSONPath (for when more than one TargetObject is returned). Adding leading space to NestedTemplate Grouping (Output Differentiation)
* Restoring .lineNumber property to TargetObject
* Adding test case for grouping with multiple inner templates
* Updating InnerTemplates Tests (Adding Tests to Reproduce #583)
* Expand-AzTemplate: Adding InnerTemplatesText, InnerTemplatesNames, InnerTemplatesLocations to return.
* Resolve-JSONContent: Fixing .Column
* Test-AzTemplate: Sorting on InnerTemplateStart, Adjusting Line Numbers for InnerTemplates, Carrying More InnerTemplate Context into Return
* Adding Isolated InnerTemplates Test File
* Adding detailed test for innertemplates
* Adding detailed test for innertemplates
* Removing older InnerTemplateTest
* Test-AzTemplate: Safeguarding InnerTemplate Expansion
* Delete MultipleInnerTemplates.json
* Adding Test for Resolve-JSONContent.Column
* Fixing Test for Resolve-JSONContent.Column
Co-authored-by: James Brundage <@github.com>
Co-authored-by: Brian Moore <bmoore@microsoft.com>1 parent c899a92 commit d3e5b64
File tree
8 files changed
+380
-108
lines changed- arm-ttk
- testcases/deploymentTemplate
- unit-tests/_arm-ttk-module
8 files changed
+380
-108
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
251 | 256 | | |
252 | 257 | | |
253 | 258 | | |
254 | | - | |
255 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
256 | 263 | | |
257 | | - | |
| 264 | + | |
258 | 265 | | |
259 | 266 | | |
260 | 267 | | |
261 | | - | |
| 268 | + | |
262 | 269 | | |
263 | 270 | | |
264 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| |||
178 | 183 | | |
179 | 184 | | |
180 | 185 | | |
| 186 | + | |
| 187 | + | |
181 | 188 | | |
182 | 189 | | |
183 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
0 commit comments