@Test public void testGetRoleConfigsWithSingleRolesPerHostGroupWithCustomRefNames() { HostgroupView master = new HostgroupView("master", 1, InstanceGroupType.GATEWAY, 1); HostgroupView worker = new HostgroupView("worker", 2, InstanceGroupType.CORE, 2); setup("input/clouderamanager-custom-ref.bp", Builder.builder().withHostgroupViews(Set.of(master, worker))); underTest.process(templateProcessor, templatePreparator); Map<String, List<ApiClusterTemplateConfig>> roleConfigs = mapRoleConfigs(); assertEquals(List.of(config("dfs_data_dir_list", "/hadoopfs/fs1/datanode,/hadoopfs/fs2/datanode")), roleConfigs.get("dn")); assertEquals(List.of(config("dfs_name_dir_list", "/hadoopfs/fs1/namenode")), roleConfigs.get("nn")); }
public void process(CmTemplateProcessor templateProcessor, TemplatePreparationObject source) { if (!getHostTemplates(templateProcessor).isEmpty()) { updateConfigsInTemplate(templateProcessor, generateConfigs(templateProcessor, source)); } }
CmHostGroupRoleConfigProviderProcessor { public void process(CmTemplateProcessor templateProcessor, TemplatePreparationObject source) { if (!getHostTemplates(templateProcessor).isEmpty()) { updateConfigsInTemplate(templateProcessor, generateConfigs(templateProcessor, source)); } } }
CmHostGroupRoleConfigProviderProcessor { public void process(CmTemplateProcessor templateProcessor, TemplatePreparationObject source) { if (!getHostTemplates(templateProcessor).isEmpty()) { updateConfigsInTemplate(templateProcessor, generateConfigs(templateProcessor, source)); } }  }
CmHostGroupRoleConfigProviderProcessor { public void process(CmTemplateProcessor templateProcessor, TemplatePreparationObject source) { if (!getHostTemplates(templateProcessor).isEmpty()) { updateConfigsInTemplate(templateProcessor, generateConfigs(templateProcessor, source)); } }  void process(CmTemplateProcessor templateProcessor, TemplatePreparationObject source); }
CmHostGroupRoleConfigProviderProcessor { public void process(CmTemplateProcessor templateProcessor, TemplatePreparationObject source) { if (!getHostTemplates(templateProcessor).isEmpty()) { updateConfigsInTemplate(templateProcessor, generateConfigs(templateProcessor, source)); } }  void process(CmTemplateProcessor templateProcessor, TemplatePreparationObject source);  }