Skip to content

Commit 084578d

Browse files
committed
Update snapshots for Hosting.Azure tests
1 parent c012290 commit 084578d

6 files changed

+52
-48
lines changed

tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureAppServiceTests.MultipleAzureAppServiceEnvironmentsSupported.verified.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/aspire-8.0.json",
33
"resources": {
4-
"env1-acr": {
5-
"type": "azure.bicep.v0",
6-
"path": "env1-acr.module.bicep"
7-
},
84
"env1": {
95
"type": "azure.bicep.v0",
106
"path": "env1.module.bicep",
@@ -13,10 +9,6 @@
139
"userPrincipalId": ""
1410
}
1511
},
16-
"env2-acr": {
17-
"type": "azure.bicep.v0",
18-
"path": "env2-acr.module.bicep"
19-
},
2012
"env2": {
2113
"type": "azure.bicep.v0",
2214
"path": "env2.module.bicep",
@@ -102,6 +94,14 @@
10294
"external": true
10395
}
10496
}
97+
},
98+
"env1-acr": {
99+
"type": "azure.bicep.v0",
100+
"path": "env1-acr.module.bicep"
101+
},
102+
"env2-acr": {
103+
"type": "azure.bicep.v0",
104+
"path": "env2-acr.module.bicep"
105105
}
106106
}
107107
}

tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureContainerAppsTests.MultipleAzureContainerAppEnvironmentsSupported.verified.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
"userPrincipalId": ""
1010
}
1111
},
12-
"env1-acr": {
13-
"type": "azure.bicep.v0",
14-
"path": "env1-acr.module.bicep"
15-
},
1612
"env2": {
1713
"type": "azure.bicep.v0",
1814
"path": "env2.module.bicep",
@@ -21,10 +17,6 @@
2117
"userPrincipalId": ""
2218
}
2319
},
24-
"env2-acr": {
25-
"type": "azure.bicep.v0",
26-
"path": "env2-acr.module.bicep"
27-
},
2820
"api1": {
2921
"type": "container.v1",
3022
"image": "myimage:latest",
@@ -48,6 +40,14 @@
4840
"env2_outputs_azure_container_apps_environment_id": "{env2.outputs.AZURE_CONTAINER_APPS_ENVIRONMENT_ID}"
4941
}
5042
}
43+
},
44+
"env1-acr": {
45+
"type": "azure.bicep.v0",
46+
"path": "env1-acr.module.bicep"
47+
},
48+
"env2-acr": {
49+
"type": "azure.bicep.v0",
50+
"path": "env2-acr.module.bicep"
5151
}
5252
}
5353
}

tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureEnvironmentResourceTests.AzurePublishingContext_CapturesParametersAndOutputsCorrectly_WithSnapshot#00.verified.bicep

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ resource rg 'Microsoft.Resources/resourceGroups@2023-07-01' = {
1515
location: location
1616
}
1717

18-
module acaEnv_acr 'acaEnv-acr/acaEnv-acr.bicep' = {
19-
name: 'acaEnv-acr'
20-
scope: rg
21-
params: {
22-
location: location
23-
}
24-
}
25-
2618
module acaEnv 'acaEnv/acaEnv.bicep' = {
2719
name: 'acaEnv'
2820
scope: rg
@@ -59,6 +51,14 @@ module storage 'storage/storage.bicep' = {
5951
}
6052
}
6153

54+
module acaEnv_acr 'acaEnv-acr/acaEnv-acr.bicep' = {
55+
name: 'acaEnv-acr'
56+
scope: rg
57+
params: {
58+
location: location
59+
}
60+
}
61+
6262
module fe_identity 'fe-identity/fe-identity.bicep' = {
6363
name: 'fe-identity'
6464
scope: rg
@@ -91,14 +91,14 @@ output acaEnv_acr_name string = acaEnv_acr.outputs.name
9191

9292
output acaEnv_acr_loginServer string = acaEnv_acr.outputs.loginServer
9393

94+
output acaEnv_AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID string = acaEnv.outputs.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID
95+
9496
output acaEnv_AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN string = acaEnv.outputs.AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN
9597

9698
output acaEnv_AZURE_CONTAINER_APPS_ENVIRONMENT_ID string = acaEnv.outputs.AZURE_CONTAINER_APPS_ENVIRONMENT_ID
9799

98100
output acaEnv_AZURE_CONTAINER_REGISTRY_ENDPOINT string = acaEnv.outputs.AZURE_CONTAINER_REGISTRY_ENDPOINT
99101

100-
output acaEnv_AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID string = acaEnv.outputs.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID
101-
102102
output fe_identity_id string = fe_identity.outputs.id
103103

104104
output storage_blobEndpoint string = storage.outputs.blobEndpoint

tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureEnvironmentResourceTests.PublishAsync_GeneratesMainBicep_WithSnapshots.verified.bicep

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ resource rg 'Microsoft.Resources/resourceGroups@2023-07-01' = {
1919
location: location
2020
}
2121

22-
module acaEnv_acr 'acaEnv-acr/acaEnv-acr.bicep' = {
23-
name: 'acaEnv-acr'
24-
scope: rg
25-
params: {
26-
location: location
27-
}
28-
}
29-
3022
module acaEnv 'acaEnv/acaEnv.bicep' = {
3123
name: 'acaEnv'
3224
scope: rg
@@ -89,6 +81,14 @@ module mod 'mod/mod.bicep' = {
8981
}
9082
}
9183

84+
module acaEnv_acr 'acaEnv-acr/acaEnv-acr.bicep' = {
85+
name: 'acaEnv-acr'
86+
scope: rg
87+
params: {
88+
location: location
89+
}
90+
}
91+
9292
module myapp_identity 'myapp-identity/myapp-identity.bicep' = {
9393
name: 'myapp-identity'
9494
scope: rg
@@ -129,6 +129,8 @@ output acaEnv_acr_name string = acaEnv_acr.outputs.name
129129

130130
output acaEnv_acr_loginServer string = acaEnv_acr.outputs.loginServer
131131

132+
output acaEnv_AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID string = acaEnv.outputs.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID
133+
132134
output acaEnv_AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN string = acaEnv.outputs.AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN
133135

134136
output acaEnv_AZURE_CONTAINER_APPS_ENVIRONMENT_ID string = acaEnv.outputs.AZURE_CONTAINER_APPS_ENVIRONMENT_ID
@@ -141,8 +143,6 @@ output myapp_identity_clientId string = myapp_identity.outputs.clientId
141143

142144
output acaEnv_AZURE_CONTAINER_REGISTRY_ENDPOINT string = acaEnv.outputs.AZURE_CONTAINER_REGISTRY_ENDPOINT
143145

144-
output acaEnv_AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID string = acaEnv.outputs.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID
145-
146146
output fe_identity_id string = fe_identity.outputs.id
147147

148148
output storage_blobEndpoint string = storage.outputs.blobEndpoint

tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureEnvironmentResourceTests.WhenUsedWithAzureContainerAppsEnvironment_GeneratesProperBicep#00.verified.bicep

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,30 @@ resource rg 'Microsoft.Resources/resourceGroups@2023-07-01' = {
1111
location: location
1212
}
1313

14-
module env_acr 'env-acr/env-acr.bicep' = {
15-
name: 'env-acr'
14+
module env 'env/env.bicep' = {
15+
name: 'env'
1616
scope: rg
1717
params: {
1818
location: location
19+
env_acr_outputs_name: env_acr.outputs.name
20+
userPrincipalId: principalId
1921
}
2022
}
2123

22-
module env 'env/env.bicep' = {
23-
name: 'env'
24+
module env_acr 'env-acr/env-acr.bicep' = {
25+
name: 'env-acr'
2426
scope: rg
2527
params: {
2628
location: location
27-
env_acr_outputs_name: env_acr.outputs.name
28-
userPrincipalId: principalId
2929
}
3030
}
3131

3232
output env_acr_name string = env_acr.outputs.name
3333

3434
output env_acr_loginServer string = env_acr.outputs.loginServer
3535

36+
output env_AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID string = env.outputs.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID
37+
3638
output env_AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN string = env.outputs.AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN
3739

3840
output env_AZURE_CONTAINER_APPS_ENVIRONMENT_ID string = env.outputs.AZURE_CONTAINER_APPS_ENVIRONMENT_ID

tests/Aspire.Hosting.Azure.Tests/Snapshots/AzureEnvironmentResourceTests.WhenUsedWithAzureContainerAppsEnvironment_RespectsStronglyTypedProperties.verified.bicep

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,30 @@ resource rg 'Microsoft.Resources/resourceGroups@2023-07-01' = {
1111
location: location
1212
}
1313

14-
module env_acr 'env-acr/env-acr.bicep' = {
15-
name: 'env-acr'
14+
module env 'env/env.bicep' = {
15+
name: 'env'
1616
scope: rg
1717
params: {
1818
location: location
19+
env_acr_outputs_name: env_acr.outputs.name
20+
userPrincipalId: principalId
1921
}
2022
}
2123

22-
module env 'env/env.bicep' = {
23-
name: 'env'
24+
module env_acr 'env-acr/env-acr.bicep' = {
25+
name: 'env-acr'
2426
scope: rg
2527
params: {
2628
location: location
27-
env_acr_outputs_name: env_acr.outputs.name
28-
userPrincipalId: principalId
2929
}
3030
}
3131

3232
output env_acr_name string = env_acr.outputs.name
3333

3434
output env_acr_loginServer string = env_acr.outputs.loginServer
3535

36+
output env_AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID string = env.outputs.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID
37+
3638
output env_AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN string = env.outputs.AZURE_CONTAINER_APPS_ENVIRONMENT_DEFAULT_DOMAIN
3739

3840
output env_AZURE_CONTAINER_APPS_ENVIRONMENT_ID string = env.outputs.AZURE_CONTAINER_APPS_ENVIRONMENT_ID

0 commit comments

Comments
 (0)