Skip to content

Commit f12a2c7

Browse files
committed
fix e2e tests
1 parent b7cde44 commit f12a2c7

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/tests/scripts/generate-matrix.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ $combinations = [ordered]@{
88
infrastructureAsCode = @("bicep")
99
agentType = @("public", "private", "none")
1010
operatingSystem = @("ubuntu")
11-
starterModule = @("platform_landing_zone")
11+
starterModule = @("test")
1212
regions = @("multi")
1313
terraformVersion = @("latest")
1414
deployAzureResources = @("true")
1515
}
1616
azuredevops_bicep_classic = [ordered]@{
1717
versionControlSystem = @("azuredevops")
18-
infrastructureAsCode = @("bicep")
18+
infrastructureAsCode = @("bicep-classic")
1919
agentType = @("public", "private", "none")
2020
operatingSystem = @("ubuntu")
2121
starterModule = @("test")
@@ -28,7 +28,7 @@ $combinations = [ordered]@{
2828
infrastructureAsCode = @("bicep")
2929
agentType = @("public", "private", "none")
3030
operatingSystem = @("ubuntu")
31-
starterModule = @("platform_landing_zone")
31+
starterModule = @("test")
3232
regions = @("multi")
3333
terraformVersion = @("latest")
3434
deployAzureResources = @("true")
@@ -117,7 +117,7 @@ $combinations = [ordered]@{
117117
versionControlSystem = @("local")
118118
infrastructureAsCode = @("bicep-classic")
119119
agentType = @("none")
120-
operatingSystem = @("ubuntu", "windows", "macos")
120+
operatingSystem = @("ubuntu")
121121
starterModule = @("complete")
122122
regions = @("multi")
123123
terraformVersion = @("latest")

modules/file_manipulation/locals.bicep.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ locals {
2828
primary_location = try(local.bicep_parameters.LOCATION_PRIMARY, "eastus")
2929
secondary_location = try(local.bicep_parameters.LOCATION_SECONDARY, "westus")
3030
root_parent_management_group_id = var.root_parent_management_group_id
31+
unique_postfix = local.resource_names.unique_postfix
3132
}
3233
}
3334

modules/resource_names/locals.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ locals {
1212
formatted_postfix_number_plus_2 = format("%03d", var.postfix_number + 2)
1313
formatted_postfix_number_plus_3 = format("%03d", var.postfix_number + 3)
1414
random_string = random_string.alz.result
15-
resource_names = {
15+
resource_names = merge({
1616
for key, value in var.resource_names : key => replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(value,
1717
"{{service_name}}", var.service_name),
1818
"{{service_name_short}}", substr(var.service_name, 0, 3)),
@@ -25,5 +25,7 @@ locals {
2525
"{{postfix_number_plus_2}}", local.formatted_postfix_number_plus_2),
2626
"{{postfix_number_plus_3}}", local.formatted_postfix_number_plus_3),
2727
"{{random_string}}", local.random_string)
28-
}
28+
}, {
29+
"unique_postfix" = local.random_string
30+
})
2931
}

0 commit comments

Comments
 (0)