From dcb3cbcde7bf7333d628de810b27fcdb84f3e4e1 Mon Sep 17 00:00:00 2001 From: magodo Date: Wed, 26 Jul 2023 17:00:25 +0800 Subject: [PATCH] Data Source `azurerm_role_definition` - Fix acctest `TestAccRoleDefinitionDataSource_builtIn_contributor` --- .../authorization/role_definition_data_source_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/services/authorization/role_definition_data_source_test.go b/internal/services/authorization/role_definition_data_source_test.go index 576bb8ae4c9a..0b27906f196b 100644 --- a/internal/services/authorization/role_definition_data_source_test.go +++ b/internal/services/authorization/role_definition_data_source_test.go @@ -73,13 +73,15 @@ func TestAccRoleDefinitionDataSource_builtIn_contributor(t *testing.T) { check.That(data.ResourceName).Key("permissions.#").HasValue("1"), check.That(data.ResourceName).Key("permissions.0.actions.#").HasValue("1"), check.That(data.ResourceName).Key("permissions.0.actions.0").HasValue("*"), - check.That(data.ResourceName).Key("permissions.0.not_actions.#").HasValue("6"), + check.That(data.ResourceName).Key("permissions.0.not_actions.#").HasValue("8"), check.That(data.ResourceName).Key("permissions.0.not_actions.0").HasValue("Microsoft.Authorization/*/Delete"), check.That(data.ResourceName).Key("permissions.0.not_actions.1").HasValue("Microsoft.Authorization/*/Write"), check.That(data.ResourceName).Key("permissions.0.not_actions.2").HasValue("Microsoft.Authorization/elevateAccess/Action"), check.That(data.ResourceName).Key("permissions.0.not_actions.3").HasValue("Microsoft.Blueprint/blueprintAssignments/write"), check.That(data.ResourceName).Key("permissions.0.not_actions.4").HasValue("Microsoft.Blueprint/blueprintAssignments/delete"), check.That(data.ResourceName).Key("permissions.0.not_actions.5").HasValue("Microsoft.Compute/galleries/share/action"), + check.That(data.ResourceName).Key("permissions.0.not_actions.6").HasValue("Microsoft.Purview/consents/write"), + check.That(data.ResourceName).Key("permissions.0.not_actions.7").HasValue("Microsoft.Purview/consents/delete"), ), }, })