Skip to content

Commit 35acd23

Browse files
committed
adjusting scenario tests
1 parent f786b99 commit 35acd23

File tree

7 files changed

+629
-58
lines changed

7 files changed

+629
-58
lines changed

src/Resources/Resources.Test/ScenarioTests/DeploymentStackTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,12 @@ public void TestRemoveSubscriptionDeploymentStack()
177177
{
178178
TestRunner.RunTestScript("Test-RemoveSubscriptionDeploymentStack");
179179
}
180+
181+
[Fact()]
182+
[Trait(Category.AcceptanceType, Category.CheckIn)]
183+
public void TestGetManagementGroupDeploymentStack()
184+
{
185+
TestRunner.RunTestScript("Test-GetManagementGroupDeploymentStack");
186+
}
180187
}
181188
}

src/Resources/Resources.Test/ScenarioTests/DeploymentStackTests.ps1

Lines changed: 562 additions & 30 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"metadata": {
5+
"_generator": {
6+
"name": "bicep",
7+
"version": "0.13.1.58284",
8+
"templateHash": "11727790775156153602"
9+
}
10+
},
11+
"parameters": {
12+
"templateSpecName": {
13+
"type": "string",
14+
"defaultValue": "[format('MyTemplateSpec{0}', uniqueString(resourceGroup().id))]"
15+
},
16+
"specVersionName": {
17+
"type": "string",
18+
"defaultValue": "[format('MySpecVersion{0}', uniqueString(resourceGroup().id))]"
19+
},
20+
"location": {
21+
"type": "string",
22+
"defaultValue": "[resourceGroup().location]"
23+
}
24+
},
25+
"resources": [
26+
{
27+
"type": "Microsoft.Resources/templateSpecs",
28+
"apiVersion": "2022-02-01",
29+
"name": "[parameters('templateSpecName')]",
30+
"location": "[parameters('location')]",
31+
"properties": {
32+
"displayName": "MyTemplateSpec2",
33+
"description": "Template Spec for testing RG stacks."
34+
}
35+
},
36+
{
37+
"type": "Microsoft.Resources/templateSpecs/versions",
38+
"apiVersion": "2022-02-01",
39+
"name": "[format('{0}/{1}', parameters('templateSpecName'), parameters('specVersionName'))]",
40+
"location": "[parameters('location')]",
41+
"properties": {
42+
"description": "generated version number for testing stacks",
43+
"mainTemplate": {
44+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
45+
"contentVersion": "1.0.0.0",
46+
"parameters": {},
47+
"functions": [],
48+
"variables": {},
49+
"resources": [],
50+
"outputs": {}
51+
}
52+
},
53+
"dependsOn": [
54+
"[resourceId('Microsoft.Resources/templateSpecs', parameters('templateSpecName'))]"
55+
]
56+
}
57+
]
58+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


src/Resources/Resources.Test/sampleDeploymentBicepFile.bicep

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/Resources/Resources.Test/sampleDeploymentBicepFile2.bicep

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)