From dd251a38f6d3d88814180a4d6f2fddf74e881d5a Mon Sep 17 00:00:00 2001 From: Danilo Ramirez Date: Thu, 4 Nov 2021 12:51:38 +1100 Subject: [PATCH] Include apostrophe in UPN of "test" user in "complete()" UserResource test scenario it is used by TestAccUserDataSource_byUserPrincipalName --- internal/services/users/user_resource_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/services/users/user_resource_test.go b/internal/services/users/user_resource_test.go index 04a85e8f95..e28395a884 100644 --- a/internal/services/users/user_resource_test.go +++ b/internal/services/users/user_resource_test.go @@ -149,7 +149,7 @@ data "azuread_domains" "test" { } resource "azuread_user" "test" { - user_principal_name = "acctestUser.%[1]d@${data.azuread_domains.test.domains.0.domain_name}" + user_principal_name = "acctestUser'%[1]d@${data.azuread_domains.test.domains.0.domain_name}" display_name = "acctestUser-%[1]d" password = "%[2]s" } @@ -171,7 +171,7 @@ resource "azuread_user" "manager" { } resource "azuread_user" "test" { - user_principal_name = "acctestUser.%[1]d@${data.azuread_domains.test.domains.0.domain_name}" + user_principal_name = "acctestUser'%[1]d@${data.azuread_domains.test.domains.0.domain_name}" mail = "acctestUser.%[1]d@hashicorp.biz" mail_nickname = "acctestUser-%[1]d-MailNickname" other_mails = ["acctestUser.%[1]d@hashicorp.net", "acctestUser.%[1]d@hashicorp.org"] @@ -223,7 +223,7 @@ data "azuread_domains" "test" { } resource "azuread_user" "testA" { - user_principal_name = "acctestUser.%[1]d.A@${data.azuread_domains.test.domains.0.domain_name}" + user_principal_name = "acctestUser'%[1]d.A@${data.azuread_domains.test.domains.0.domain_name}" display_name = "acctestUser-%[1]d-A" password = "%[2]s" }