@Test void testGetUserMappings() { Map<String, String> userMappings = underTest.getUserMappings(REGION, credential); assertThat(userMappings).isNotNull(); AccountMappingSubject.ALL_SPECIAL_USERS.forEach(user -> assertThat(userMappings).contains(Map.entry(user, IAM_ROLE))); assertThat(userMappings).hasSize(AccountMappingSubject.ALL_SPECIAL_USERS.size()); }
public Map<String, String> getUserMappings(String region, Credential credential) { String accountId = getAccountId(region, credential); return replaceAccountId(MOCK_IDBROKER_USER_MAPPINGS, accountId); }
AwsMockAccountMappingService { public Map<String, String> getUserMappings(String region, Credential credential) { String accountId = getAccountId(region, credential); return replaceAccountId(MOCK_IDBROKER_USER_MAPPINGS, accountId); } }
AwsMockAccountMappingService { public Map<String, String> getUserMappings(String region, Credential credential) { String accountId = getAccountId(region, credential); return replaceAccountId(MOCK_IDBROKER_USER_MAPPINGS, accountId); } AwsMockAccountMappingService(CloudPlatformConnectors cloudPlatformConnectors, CredentialToCloudCredentialConverter credentialConverter); }
AwsMockAccountMappingService { public Map<String, String> getUserMappings(String region, Credential credential) { String accountId = getAccountId(region, credential); return replaceAccountId(MOCK_IDBROKER_USER_MAPPINGS, accountId); } AwsMockAccountMappingService(CloudPlatformConnectors cloudPlatformConnectors, CredentialToCloudCredentialConverter credentialConverter); Map<String, String> getGroupMappings(String region, Credential credential, String adminGroupName); Map<String, String> getUserMappings(String region, Credential credential); }
AwsMockAccountMappingService { public Map<String, String> getUserMappings(String region, Credential credential) { String accountId = getAccountId(region, credential); return replaceAccountId(MOCK_IDBROKER_USER_MAPPINGS, accountId); } AwsMockAccountMappingService(CloudPlatformConnectors cloudPlatformConnectors, CredentialToCloudCredentialConverter credentialConverter); Map<String, String> getGroupMappings(String region, Credential credential, String adminGroupName); Map<String, String> getUserMappings(String region, Credential credential);  }