-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resource & property loop decompilation (#1640)
* Hacky property & resource decompilation support * Tidy-up * Handle loop name dependencies * Add some tests * Address PR feedback
- Loading branch information
1 parent
3773ab7
commit 6dba9a3
Showing
16 changed files
with
1,167 additions
and
143 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
33 changes: 33 additions & 0 deletions
33
src/Bicep.Decompiler.IntegrationTests/NonWorking/batchsize.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,33 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"storageCount": { | ||
"type": "int", | ||
"defaultValue": 2 | ||
}, | ||
"storagePrefix": { | ||
"type": "string" | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Storage/storageAccounts", | ||
"apiVersion": "2019-04-01", | ||
"name": "[tolower(concat(copyIndex(), parameters('storagePrefix'), uniqueString(resourceGroup().id)))]", | ||
"location": "[resourceGroup().location]", | ||
"sku": { | ||
"name": "Standard_LRS" | ||
}, | ||
"kind": "Storage", | ||
"properties": {}, | ||
"copy": { | ||
"name": "storagecopy", | ||
"count": "[parameters('storageCount')]", | ||
"batchSize": 1, | ||
"mode": "Serial" | ||
} | ||
} | ||
], | ||
"outputs": {} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
src/Bicep.Decompiler.IntegrationTests/NonWorking/invalid-schema.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/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"vmSku": { | ||
"value": "Standard_A1" | ||
}, | ||
"vmssName": { | ||
"value": "GEN-UNIQUE-32" | ||
}, | ||
"instanceCount": { | ||
"value": 3 | ||
}, | ||
"adminUsername": { | ||
"value": "GEN-UNIQUE" | ||
}, | ||
"adminPasswordOrKey": { | ||
"value": "GEN-SSH-PUB-KEY" | ||
} | ||
} | ||
} |
Oops, something went wrong.