Skip to content

fix: fix TestAcc_ResourceMoveState_DirectoryRoleMember - #142

Draft
QixiaLu wants to merge 2 commits into
microsoft:mainfrom
QixiaLu:fix_move_state_test
Draft

fix: fix TestAcc_ResourceMoveState_DirectoryRoleMember#142
QixiaLu wants to merge 2 commits into
microsoft:mainfrom
QixiaLu:fix_move_state_test

Conversation

@QixiaLu

@QixiaLu QixiaLu commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

There is a bug in the external hashicorp/azuread provider, which the move-state acceptance
tests pinned to 3.0.2. In that version, azuread_directory_role only activates the role
when the Graph ListDirectoryRoles call returns 404. Graph actually returns 200 with an
empty collection for a role that has not been activated in the tenant, so the provider fell
through to the result was nil error instead of activating the role.

HashiCorp fixed this in azuread 3.3.0:

azuread_directory_role - fix for changes in Graph API response for ListRolesResponse in create
(hashicorp/terraform-provider-azuread#1575)

Bump to 3.3.0 to fix relevant acctests

@QixiaLu QixiaLu changed the title fix: fix TestAcc_ResourceMoveState_DirectoryRoleMember and the remaining TestAcc_ResourceMoveState_* fix: fix TestAcc_ResourceMoveState_DirectoryRoleMember Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant