From 9ccbe4829c37ef7e131234c17761a897feef0f66 Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Mon, 10 Jun 2024 14:59:25 +0100 Subject: [PATCH] azuread_application: basicFromTemplate test fix --- .../applications/application_resource_test.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/internal/services/applications/application_resource_test.go b/internal/services/applications/application_resource_test.go index 3e8b9b21a6..7b2cee05e3 100644 --- a/internal/services/applications/application_resource_test.go +++ b/internal/services/applications/application_resource_test.go @@ -635,8 +635,21 @@ resource "azuread_application" "test" { display_name = "acctest-APP-%[1]d" owners = [data.azuread_client_config.test.object_id] template_id = "%[2]s" + + api { + oauth2_permission_scope { + admin_consent_description = "Allow the application to access acctest-APP-%[1]d on behalf of the signed-in user." + admin_consent_display_name = "Access acctest-APP-%[1]d" + enabled = true + id = "%[3]s" + type = "User" + user_consent_description = "Allow the application to access acctest-APP-%[1]d on your behalf." + user_consent_display_name = "Access acctest-APP-%[1]d" + value = "user_impersonation" + } + } } -`, data.RandomInteger, testApplicationTemplateId) +`, data.RandomInteger, testApplicationTemplateId, data.UUID()) } func (ApplicationResource) withGroupMembershipClaims(data acceptance.TestData) string {