@Test void testSyncAwsIdentities() { when(stack.getCloudPlatform()).thenReturn(CloudPlatform.AWS.toString()); cloudIdentitySyncService.syncCloudIdentities(stack, mock(UmsUsersState.class), mock(BiConsumer.class)); verify(sdxEndpoint, never()).setRangerCloudIdentityMapping(any(), any()); }
public void syncCloudIdentities(Stack stack, UmsUsersState umsUsersState, BiConsumer<String, String> warnings) { LOGGER.info("Syncing cloud identities for stack = {}", stack); if (CloudPlatform.AZURE.equalsIgnoreCase(stack.getCloudPlatform())) { LOGGER.info("Syncing Azure Object IDs for stack = {}", stack); syncAzureObjectIds(stack, umsUsersState, warnings); } }
CloudIdentitySyncService { public void syncCloudIdentities(Stack stack, UmsUsersState umsUsersState, BiConsumer<String, String> warnings) { LOGGER.info("Syncing cloud identities for stack = {}", stack); if (CloudPlatform.AZURE.equalsIgnoreCase(stack.getCloudPlatform())) { LOGGER.info("Syncing Azure Object IDs for stack = {}", stack); syncAzureObjectIds(stack, umsUsersState, warnings); } } }
CloudIdentitySyncService { public void syncCloudIdentities(Stack stack, UmsUsersState umsUsersState, BiConsumer<String, String> warnings) { LOGGER.info("Syncing cloud identities for stack = {}", stack); if (CloudPlatform.AZURE.equalsIgnoreCase(stack.getCloudPlatform())) { LOGGER.info("Syncing Azure Object IDs for stack = {}", stack); syncAzureObjectIds(stack, umsUsersState, warnings); } }  }
CloudIdentitySyncService { public void syncCloudIdentities(Stack stack, UmsUsersState umsUsersState, BiConsumer<String, String> warnings) { LOGGER.info("Syncing cloud identities for stack = {}", stack); if (CloudPlatform.AZURE.equalsIgnoreCase(stack.getCloudPlatform())) { LOGGER.info("Syncing Azure Object IDs for stack = {}", stack); syncAzureObjectIds(stack, umsUsersState, warnings); } }  void syncCloudIdentities(Stack stack, UmsUsersState umsUsersState, BiConsumer<String, String> warnings); }
CloudIdentitySyncService { public void syncCloudIdentities(Stack stack, UmsUsersState umsUsersState, BiConsumer<String, String> warnings) { LOGGER.info("Syncing cloud identities for stack = {}", stack); if (CloudPlatform.AZURE.equalsIgnoreCase(stack.getCloudPlatform())) { LOGGER.info("Syncing Azure Object IDs for stack = {}", stack); syncAzureObjectIds(stack, umsUsersState, warnings); } }  void syncCloudIdentities(Stack stack, UmsUsersState umsUsersState, BiConsumer<String, String> warnings);  }