Skip to content

Commit eaffabc

Browse files
fix: tofu test failures by adding required outbound_type to network_profile mocks
OpenTofu v1.11.5 validates mock data against the azurerm provider schema, which requires outbound_type in network_profile. Without it, tests using workload_identity authentication fail with "Invalid mock/override field network_profile".
1 parent 107e970 commit eaffabc

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

tests/authentication_client_secret.tftest.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ mock_provider "azurerm" {
1111
load_balancer_sku = "standard"
1212
network_plugin = "azure"
1313
network_policy = "azure"
14+
outbound_type = "loadBalancer"
1415
}]
1516
}
1617
}

tests/authentication_workload_identity.tftest.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ mock_provider "azurerm" {
1212
load_balancer_sku = "standard"
1313
network_plugin = "azure"
1414
network_policy = "azure"
15+
outbound_type = "loadBalancer"
1516
}]
1617
}
1718
}

tests/state_migration.tftest.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ mock_provider "azurerm" {
1212
load_balancer_sku = "standard"
1313
network_plugin = "azure"
1414
network_policy = "azure"
15+
outbound_type = "loadBalancer"
1516
}]
1617
}
1718
}

tests/variable_validation.tftest.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ mock_provider "azurerm" {
1212
load_balancer_sku = "standard"
1313
network_plugin = "azure"
1414
network_policy = "azure"
15+
outbound_type = "loadBalancer"
1516
}]
1617
}
1718
}

0 commit comments

Comments
 (0)