1515ARM_ID_WITH_TYPE = SIMPLE_ARM_ID
1616ARM_ID_WITH_TYPE_AND_SCOPE = SIMPLE_ARM_ID
1717ARM_ID_WITH_ALL_SCOPES = f"/subscriptions/{ SUBSCRIPTION_ID } /resourceGroups/{ RESOURCE_GROUP_NAME } /providers/Microsoft.Compute/virtualMachines/myVm"
18+ ARM_ID_WITH_GROUP_SCOPE = "/providers/Microsoft.Management/serviceGroups/test-sg/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000"
1819
1920
2021@pytest .fixture
@@ -104,6 +105,7 @@ def test_arm_resource_identifiers_get(client):
104105 assert result .properties .arm_id_with_type == ARM_ID_WITH_TYPE
105106 assert result .properties .arm_id_with_type_and_scope == ARM_ID_WITH_TYPE_AND_SCOPE
106107 assert result .properties .arm_id_with_all_scopes == ARM_ID_WITH_ALL_SCOPES
108+ assert result .properties .arm_id_with_group_scope == ARM_ID_WITH_GROUP_SCOPE
107109
108110
109111def test_arm_resource_identifiers_create_or_replace (client ):
@@ -117,6 +119,7 @@ def test_arm_resource_identifiers_create_or_replace(client):
117119 arm_id_with_type = ARM_ID_WITH_TYPE ,
118120 arm_id_with_type_and_scope = ARM_ID_WITH_TYPE_AND_SCOPE ,
119121 arm_id_with_all_scopes = ARM_ID_WITH_ALL_SCOPES ,
122+ arm_id_with_group_scope = ARM_ID_WITH_GROUP_SCOPE ,
120123 ),
121124 ),
122125 )
@@ -126,3 +129,4 @@ def test_arm_resource_identifiers_create_or_replace(client):
126129 assert result .properties .arm_id_with_type == ARM_ID_WITH_TYPE
127130 assert result .properties .arm_id_with_type_and_scope == ARM_ID_WITH_TYPE_AND_SCOPE
128131 assert result .properties .arm_id_with_all_scopes == ARM_ID_WITH_ALL_SCOPES
132+ assert result .properties .arm_id_with_group_scope == ARM_ID_WITH_GROUP_SCOPE
0 commit comments