@Test void testGenerateCertAndSaveForStackAndUpdateDnsEntryWhenStackIsNull() throws IOException { Stack stack = null; boolean result = ThreadBasedUserCrnProvider.doAs(USER_CRN, () -> underTest.generateCertAndSaveForStackAndUpdateDnsEntry(stack)); Assertions.assertEquals(Boolean.FALSE, result); }
public boolean generateCertAndSaveForStackAndUpdateDnsEntry(Stack stack) { boolean success = false; if (manageCertificateAndDnsInPem() && stack != null && stack.getCluster() != null) { if (StringUtils.isEmpty(stack.getSecurityConfig().getUserFacingCert())) { success = generateCertAndSaveForStack(stack); } updateDnsEntryForCluster(stack); } else { LOGGER.info("External FQDN and valid certificate creation is disabled."); } return success; }
GatewayPublicEndpointManagementService extends BasePublicEndpointManagementService { public boolean generateCertAndSaveForStackAndUpdateDnsEntry(Stack stack) { boolean success = false; if (manageCertificateAndDnsInPem() && stack != null && stack.getCluster() != null) { if (StringUtils.isEmpty(stack.getSecurityConfig().getUserFacingCert())) { success = generateCertAndSaveForStack(stack); } updateDnsEntryForCluster(stack); } else { LOGGER.info("External FQDN and valid certificate creation is disabled."); } return success; } }
GatewayPublicEndpointManagementService extends BasePublicEndpointManagementService { public boolean generateCertAndSaveForStackAndUpdateDnsEntry(Stack stack) { boolean success = false; if (manageCertificateAndDnsInPem() && stack != null && stack.getCluster() != null) { if (StringUtils.isEmpty(stack.getSecurityConfig().getUserFacingCert())) { success = generateCertAndSaveForStack(stack); } updateDnsEntryForCluster(stack); } else { LOGGER.info("External FQDN and valid certificate creation is disabled."); } return success; }  }
GatewayPublicEndpointManagementService extends BasePublicEndpointManagementService { public boolean generateCertAndSaveForStackAndUpdateDnsEntry(Stack stack) { boolean success = false; if (manageCertificateAndDnsInPem() && stack != null && stack.getCluster() != null) { if (StringUtils.isEmpty(stack.getSecurityConfig().getUserFacingCert())) { success = generateCertAndSaveForStack(stack); } updateDnsEntryForCluster(stack); } else { LOGGER.info("External FQDN and valid certificate creation is disabled."); } return success; }  boolean isCertRenewalTriggerable(Stack stack); boolean generateCertAndSaveForStackAndUpdateDnsEntry(Stack stack); String updateDnsEntry(Stack stack, String gatewayIp); String deleteDnsEntry(Stack stack, String environmentName); boolean renewCertificate(Stack stack); }
GatewayPublicEndpointManagementService extends BasePublicEndpointManagementService { public boolean generateCertAndSaveForStackAndUpdateDnsEntry(Stack stack) { boolean success = false; if (manageCertificateAndDnsInPem() && stack != null && stack.getCluster() != null) { if (StringUtils.isEmpty(stack.getSecurityConfig().getUserFacingCert())) { success = generateCertAndSaveForStack(stack); } updateDnsEntryForCluster(stack); } else { LOGGER.info("External FQDN and valid certificate creation is disabled."); } return success; }  boolean isCertRenewalTriggerable(Stack stack); boolean generateCertAndSaveForStackAndUpdateDnsEntry(Stack stack); String updateDnsEntry(Stack stack, String gatewayIp); String deleteDnsEntry(Stack stack, String environmentName); boolean renewCertificate(Stack stack);  }