Skip to content

Commit

Permalink
replace right subscription id
Browse files Browse the repository at this point in the history
  • Loading branch information
weikanglim committed Nov 8, 2024
1 parent 80e3a77 commit 3ef5a13
Show file tree
Hide file tree
Showing 17 changed files with 943 additions and 943 deletions.
4 changes: 2 additions & 2 deletions cli/azd/pkg/azure/resource_ids_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func Test_GetResourceGroupName(t *testing.T) {
t.Run("WithMatch", func(t *testing.T) {
test := "/subscriptions/70a036f6-8e4d-4615-bad6-149c02e7720d/" +
test := "/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/" +
"resourceGroups/RESOURCE_GROUP_NAME/providers/" +
"Microsoft.ContainerRegistry/registries/REGISTRY_NAME"
resourceGroup := GetResourceGroupName(test)
Expand All @@ -17,7 +17,7 @@ func Test_GetResourceGroupName(t *testing.T) {
})

t.Run("WithMatchLower", func(t *testing.T) {
test := "/subscriptions/70a036f6-8e4d-4615-bad6-149c02e7720d/" +
test := "/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/" +
"resourcegroups/RESOURCE_GROUP_NAME/providers/Microsoft.ContainerRegistry/" +
"registries/REGISTRY_NAME"
resourceGroup := GetResourceGroupName(test)
Expand Down
8 changes: 4 additions & 4 deletions cli/azd/pkg/infra/provisioning/bicep/bicep_provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,9 @@ func TestResourceGroupsFromDeployment(t *testing.T) {
t.Run("references used when no output resources", func(t *testing.T) {
mockDeployment := &azapi.ResourceDeployment{
//nolint:lll
Id: "/subscriptions/70a036f6-8e4d-4615-bad6-149c02e7720d/providers/Microsoft.Resources/deployments/matell-2508-1689982746",
Id: "/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/providers/Microsoft.Resources/deployments/matell-2508-1689982746",
//nolint:lll
DeploymentId: "/subscriptions/70a036f6-8e4d-4615-bad6-149c02e7720d/providers/Microsoft.Resources/deployments/matell-2508-1689982746",
DeploymentId: "/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/providers/Microsoft.Resources/deployments/matell-2508-1689982746",
Name: "matell-2508",
Type: "Microsoft.Resources/deployments",
Tags: map[string]*string{
Expand All @@ -771,15 +771,15 @@ func TestResourceGroupsFromDeployment(t *testing.T) {
{
//nolint:lll
ID: to.Ptr(
"/subscriptions/70a036f6-8e4d-4615-bad6-149c02e7720d/resourceGroups/matell-2508-rg/providers/Microsoft.Resources/deployments/resources",
"/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/resourceGroups/matell-2508-rg/providers/Microsoft.Resources/deployments/resources",
),
ResourceName: to.Ptr("resources"),
ResourceType: to.Ptr("Microsoft.Resources/deployments"),
DependsOn: []*armresources.BasicDependency{
{
//nolint:lll
ID: to.Ptr(
"/subscriptions/70a036f6-8e4d-4615-bad6-149c02e7720d/resourceGroups/matell-2508-rg",
"/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/resourceGroups/matell-2508-rg",
),
ResourceName: to.Ptr("matell-2508-rg"),
ResourceType: to.Ptr("Microsoft.Resources/resourceGroups"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"format_version":"1.0","terraform_version":"1.3.1","values":{"outputs":{"AZURE_LOCATION":{"sensitive":false,"value":"westus2","type":"string"},"RG_NAME":{"sensitive":false,"value":"rg-test-env","type":"string"}},"root_module":{"resources":[{"address":"azurecaf_name.rg_name","mode":"managed","type":"azurecaf_name","name":"rg_name","provider_name":"registry.terraform.io/aztfmod/azurecaf","schema_version":3,"values":{"clean_input":true,"id":"ufeuqcdmnpcnbwum","name":"test-env","passthrough":false,"prefixes":null,"random_length":0,"random_seed":null,"resource_type":"azurerm_resource_group","resource_types":null,"result":"rg-test-env","results":{},"separator":"-","suffixes":null,"use_slug":true},"sensitive_values":{"results":{}}},{"address":"azurerm_resource_group.rg","mode":"managed","type":"azurerm_resource_group","name":"rg","provider_name":"registry.terraform.io/hashicorp/azurerm","schema_version":0,"values":{"id":"/subscriptions/70a036f6-8e4d-4615-bad6-149c02e7720d/resourceGroups/rg-test-env","location":"westus2","name":"rg-test-env","tags":{"azd-env-name":"test-env"},"timeouts":null},"sensitive_values":{"tags":{}},"depends_on":["azurecaf_name.rg_name"]}]}}}
{"format_version":"1.0","terraform_version":"1.3.1","values":{"outputs":{"AZURE_LOCATION":{"sensitive":false,"value":"westus2","type":"string"},"RG_NAME":{"sensitive":false,"value":"rg-test-env","type":"string"}},"root_module":{"resources":[{"address":"azurecaf_name.rg_name","mode":"managed","type":"azurecaf_name","name":"rg_name","provider_name":"registry.terraform.io/aztfmod/azurecaf","schema_version":3,"values":{"clean_input":true,"id":"ufeuqcdmnpcnbwum","name":"test-env","passthrough":false,"prefixes":null,"random_length":0,"random_seed":null,"resource_type":"azurerm_resource_group","resource_types":null,"result":"rg-test-env","results":{},"separator":"-","suffixes":null,"use_slug":true},"sensitive_values":{"results":{}}},{"address":"azurerm_resource_group.rg","mode":"managed","type":"azurerm_resource_group","name":"rg","provider_name":"registry.terraform.io/hashicorp/azurerm","schema_version":0,"values":{"id":"/subscriptions/4d042dc6-fe17-4698-a23f-ec6a8d1e98f4/resourceGroups/rg-test-env","location":"westus2","name":"rg-test-env","tags":{"azd-env-name":"test-env"},"timeouts":null},"sensitive_values":{"tags":{}},"depends_on":["azurecaf_name.rg_name"]}]}}}
238 changes: 119 additions & 119 deletions cli/azd/test/functional/testdata/recordings/Test_CLI_Aspire_Deploy.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

300 changes: 150 additions & 150 deletions cli/azd/test/functional/testdata/recordings/Test_CLI_ProvisionState.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 3ef5a13

Please sign in to comment.