@Test void testIsConfigurationNeededWhenKerberosIsNotEnabled() { TemplatePreparationObject templatePreparationObject = TemplatePreparationObject.Builder.builder().build(); boolean result = underTest.isConfigurationNeeded(null, templatePreparationObject); Assertions.assertFalse(result); }
@Override public boolean isConfigurationNeeded(CmTemplateProcessor cmTemplateProcessor, TemplatePreparationObject source) { return isKerberosEnabled(source) && cmTemplateProcessor.isRoleTypePresentInService(getServiceType(), getRoleTypes()); }
KafkaDelegationTokenConfigProvider implements CmTemplateComponentConfigProvider { @Override public boolean isConfigurationNeeded(CmTemplateProcessor cmTemplateProcessor, TemplatePreparationObject source) { return isKerberosEnabled(source) && cmTemplateProcessor.isRoleTypePresentInService(getServiceType(), getRoleTypes()); } }
KafkaDelegationTokenConfigProvider implements CmTemplateComponentConfigProvider { @Override public boolean isConfigurationNeeded(CmTemplateProcessor cmTemplateProcessor, TemplatePreparationObject source) { return isKerberosEnabled(source) && cmTemplateProcessor.isRoleTypePresentInService(getServiceType(), getRoleTypes()); }  }
KafkaDelegationTokenConfigProvider implements CmTemplateComponentConfigProvider { @Override public boolean isConfigurationNeeded(CmTemplateProcessor cmTemplateProcessor, TemplatePreparationObject source) { return isKerberosEnabled(source) && cmTemplateProcessor.isRoleTypePresentInService(getServiceType(), getRoleTypes()); }  @Override List<ApiClusterTemplateConfig> getServiceConfigs(CmTemplateProcessor templateProcessor, TemplatePreparationObject source); @Override String getServiceType(); @Override List<String> getRoleTypes(); @Override boolean isConfigurationNeeded(CmTemplateProcessor cmTemplateProcessor, TemplatePreparationObject source); }
KafkaDelegationTokenConfigProvider implements CmTemplateComponentConfigProvider { @Override public boolean isConfigurationNeeded(CmTemplateProcessor cmTemplateProcessor, TemplatePreparationObject source) { return isKerberosEnabled(source) && cmTemplateProcessor.isRoleTypePresentInService(getServiceType(), getRoleTypes()); }  @Override List<ApiClusterTemplateConfig> getServiceConfigs(CmTemplateProcessor templateProcessor, TemplatePreparationObject source); @Override String getServiceType(); @Override List<String> getRoleTypes(); @Override boolean isConfigurationNeeded(CmTemplateProcessor cmTemplateProcessor, TemplatePreparationObject source);  }