Skip to content

Commit

Permalink
fix nightly (#2956)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaofeiCao authored Sep 25, 2024
1 parent 3baaad9 commit d105853
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public void testManagedIdentityManager() {
Map<String, UserAssignedIdentity> userAssignedIdentityMap = new HashMap<>();
userAssignedIdentityMap.put(USER_ASSIGNED_IDENTITIES_KEY, new UserAssignedIdentity());
resource.update()
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_AND_USER_ASSIGNED_V3)
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.fromString("SystemAssigned,UserAssigned"))
.withUserAssignedIdentities(userAssignedIdentityMap))
.apply();
Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_AND_USER_ASSIGNED_V3, resource.identity().type());
Assertions.assertEquals(ManagedServiceIdentityType.fromString("SystemAssigned,UserAssigned"), resource.identity().type());
Assertions.assertNotNull(resource.identity().principalId());
Assertions.assertNotNull(resource.identity().tenantId());
Assertions.assertNotNull(resource.identity().userAssignedIdentities());
Expand Down

0 comments on commit d105853

Please sign in to comment.