From 62e4a0282c605ffc871886d520ca477fd25e52dc Mon Sep 17 00:00:00 2001 From: xuwu1 Date: Wed, 8 Nov 2023 09:22:30 +0800 Subject: [PATCH] update mhsm role acc test --- ...dware_security_module_role_assignment_resource_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/services/keyvault/key_vault_managed_hardware_security_module_role_assignment_resource_test.go b/internal/services/keyvault/key_vault_managed_hardware_security_module_role_assignment_resource_test.go index ccb7964b1adb..d6c03c142f68 100644 --- a/internal/services/keyvault/key_vault_managed_hardware_security_module_role_assignment_resource_test.go +++ b/internal/services/keyvault/key_vault_managed_hardware_security_module_role_assignment_resource_test.go @@ -40,7 +40,7 @@ locals { } data "azurerm_key_vault_managed_hardware_security_module_role_definition" "test" { - name = local.roleTestName + name = azurerm_key_vault_managed_hardware_security_module_role_definition.test.name vault_base_url = azurerm_key_vault_managed_hardware_security_module.test.hsm_uri } @@ -74,9 +74,9 @@ data "azurerm_key_vault_managed_hardware_security_module_role_definition" "offic resource "azurerm_key_vault_managed_hardware_security_module_role_assignment" "officer" { vault_base_url = azurerm_key_vault_managed_hardware_security_module.test.hsm_uri name = local.assignmentOfficerName - scope = "${data.azurerm_key_vault_managed_hardware_security_module_role_definition.officer.scope}" - role_definition_id = "${data.azurerm_key_vault_managed_hardware_security_module_role_definition.officer.resource_manager_id}" - principal_id = "${data.azurerm_client_config.current.object_id}" + scope = data.azurerm_key_vault_managed_hardware_security_module_role_definition.officer.scope + role_definition_id = data.azurerm_key_vault_managed_hardware_security_module_role_definition.officer.resource_manager_id + principal_id = data.azurerm_client_config.current.object_id } `, roleDef) }