@Test void testGetUserMappings() { Map<String, String> userMappings = underTest.getUserMappings(RESOURCE_GROUP, credential); assertThat(userMappings).isNotNull(); AccountMappingSubject.ALL_SPECIAL_USERS.forEach(user -> assertThat(userMappings).contains(Map.entry(user, MANAGED_IDENTITY))); assertThat(userMappings).hasSize(AccountMappingSubject.ALL_SPECIAL_USERS.size()); }
public Map<String, String> getUserMappings(String resourceGroup, Credential credential) { String subscriptionId = credential.getAzure().getSubscriptionId(); return replacePlaceholders(MOCK_IDBROKER_USER_MAPPINGS, resourceGroup, subscriptionId); }
AzureMockAccountMappingService { public Map<String, String> getUserMappings(String resourceGroup, Credential credential) { String subscriptionId = credential.getAzure().getSubscriptionId(); return replacePlaceholders(MOCK_IDBROKER_USER_MAPPINGS, resourceGroup, subscriptionId); } }
AzureMockAccountMappingService { public Map<String, String> getUserMappings(String resourceGroup, Credential credential) { String subscriptionId = credential.getAzure().getSubscriptionId(); return replacePlaceholders(MOCK_IDBROKER_USER_MAPPINGS, resourceGroup, subscriptionId); }  }
AzureMockAccountMappingService { public Map<String, String> getUserMappings(String resourceGroup, Credential credential) { String subscriptionId = credential.getAzure().getSubscriptionId(); return replacePlaceholders(MOCK_IDBROKER_USER_MAPPINGS, resourceGroup, subscriptionId); }  Map<String, String> getGroupMappings(String resourceGroup, Credential credential, String adminGroupName); Map<String, String> getUserMappings(String resourceGroup, Credential credential); }
AzureMockAccountMappingService { public Map<String, String> getUserMappings(String resourceGroup, Credential credential) { String subscriptionId = credential.getAzure().getSubscriptionId(); return replacePlaceholders(MOCK_IDBROKER_USER_MAPPINGS, resourceGroup, subscriptionId); }  Map<String, String> getGroupMappings(String resourceGroup, Credential credential, String adminGroupName); Map<String, String> getUserMappings(String resourceGroup, Credential credential); static final String MSI_RESOURCE_GROUP_NAME; }