Skip to content

Commit

Permalink
Add mocked value for subscriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Schwarz <[email protected]>
  • Loading branch information
rswrz committed Nov 13, 2024
1 parent 5d65dc6 commit dcb6b09
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/examples/mocks/main.tfmock.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
mock_data "azurerm_client_config" {
defaults = {
tenant_id = "00000000-0000-0000-0000-000000000000"
object_id = "00000000-0000-0000-0000-000000000000"
object_id = "00000000-0000-0000-0000-000000000000"
subscription_id = "00000000-0000-0000-0000-000000000000"
tenant_id = "00000000-0000-0000-0000-000000000000"
}
}

Expand All @@ -12,6 +13,12 @@ mock_data "azurerm_management_group" {
}
}

mock_data "azurerm_subscription" {
defaults = {
id = "/subscriptions/00000000-0000-0000-0000-000000000000"
}
}

mock_resource "azurerm_user_assigned_identity" {
defaults = {
id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RG-MOCK/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ID-MOCK"
Expand Down

0 comments on commit dcb6b09

Please sign in to comment.