@Test public void testGetSchemaRegistryServiceConfigs710() { String inputJson = loadBlueprint("7.1.0"); CmTemplateProcessor cmTemplateProcessor = new CmTemplateProcessor(inputJson); TemplatePreparationObject preparationObject = getTemplatePreparationObject(cmTemplateProcessor); List<ApiClusterTemplateConfig> serviceConfigs = underTest.getServiceConfigs(cmTemplateProcessor, preparationObject); assertThat(serviceConfigs).isEmpty(); }
@Override public List<ApiClusterTemplateConfig> getServiceConfigs(CmTemplateProcessor templateProcessor, TemplatePreparationObject source) { String cdhVersion = source.getBlueprintView().getProcessor().getStackVersion() == null ? "" : source.getBlueprintView().getProcessor().getStackVersion(); if (isVersionNewerOrEqualThanLimited(cdhVersion, CLOUDERAMANAGER_VERSION_7_2_0)) { RdsView schemaRegistryRdsView = getRdsView(source); return List.of( config(DATABASE_TYPE, dataBaseTypeForCM(schemaRegistryRdsView.getDatabaseVendor())), config(DATABASE_NAME, schemaRegistryRdsView.getDatabaseName()), config(DATABASE_HOST, schemaRegistryRdsView.getHost()), config(DATABASE_PORT, schemaRegistryRdsView.getPort()), config(DATABASE_USER, schemaRegistryRdsView.getConnectionUserName()), config(DATABASE_PASSWORD, schemaRegistryRdsView.getConnectionPassword()) ); } return emptyList(); }
SchemaRegistryServiceConfigProvider extends AbstractRdsRoleConfigProvider { @Override public List<ApiClusterTemplateConfig> getServiceConfigs(CmTemplateProcessor templateProcessor, TemplatePreparationObject source) { String cdhVersion = source.getBlueprintView().getProcessor().getStackVersion() == null ? "" : source.getBlueprintView().getProcessor().getStackVersion(); if (isVersionNewerOrEqualThanLimited(cdhVersion, CLOUDERAMANAGER_VERSION_7_2_0)) { RdsView schemaRegistryRdsView = getRdsView(source); return List.of( config(DATABASE_TYPE, dataBaseTypeForCM(schemaRegistryRdsView.getDatabaseVendor())), config(DATABASE_NAME, schemaRegistryRdsView.getDatabaseName()), config(DATABASE_HOST, schemaRegistryRdsView.getHost()), config(DATABASE_PORT, schemaRegistryRdsView.getPort()), config(DATABASE_USER, schemaRegistryRdsView.getConnectionUserName()), config(DATABASE_PASSWORD, schemaRegistryRdsView.getConnectionPassword()) ); } return emptyList(); } }
SchemaRegistryServiceConfigProvider extends AbstractRdsRoleConfigProvider { @Override public List<ApiClusterTemplateConfig> getServiceConfigs(CmTemplateProcessor templateProcessor, TemplatePreparationObject source) { String cdhVersion = source.getBlueprintView().getProcessor().getStackVersion() == null ? "" : source.getBlueprintView().getProcessor().getStackVersion(); if (isVersionNewerOrEqualThanLimited(cdhVersion, CLOUDERAMANAGER_VERSION_7_2_0)) { RdsView schemaRegistryRdsView = getRdsView(source); return List.of( config(DATABASE_TYPE, dataBaseTypeForCM(schemaRegistryRdsView.getDatabaseVendor())), config(DATABASE_NAME, schemaRegistryRdsView.getDatabaseName()), config(DATABASE_HOST, schemaRegistryRdsView.getHost()), config(DATABASE_PORT, schemaRegistryRdsView.getPort()), config(DATABASE_USER, schemaRegistryRdsView.getConnectionUserName()), config(DATABASE_PASSWORD, schemaRegistryRdsView.getConnectionPassword()) ); } return emptyList(); }  }
SchemaRegistryServiceConfigProvider extends AbstractRdsRoleConfigProvider { @Override public List<ApiClusterTemplateConfig> getServiceConfigs(CmTemplateProcessor templateProcessor, TemplatePreparationObject source) { String cdhVersion = source.getBlueprintView().getProcessor().getStackVersion() == null ? "" : source.getBlueprintView().getProcessor().getStackVersion(); if (isVersionNewerOrEqualThanLimited(cdhVersion, CLOUDERAMANAGER_VERSION_7_2_0)) { RdsView schemaRegistryRdsView = getRdsView(source); return List.of( config(DATABASE_TYPE, dataBaseTypeForCM(schemaRegistryRdsView.getDatabaseVendor())), config(DATABASE_NAME, schemaRegistryRdsView.getDatabaseName()), config(DATABASE_HOST, schemaRegistryRdsView.getHost()), config(DATABASE_PORT, schemaRegistryRdsView.getPort()), config(DATABASE_USER, schemaRegistryRdsView.getConnectionUserName()), config(DATABASE_PASSWORD, schemaRegistryRdsView.getConnectionPassword()) ); } return emptyList(); }  @Override List<ApiClusterTemplateConfig> getServiceConfigs(CmTemplateProcessor templateProcessor, TemplatePreparationObject source); @Override String getServiceType(); @Override List<String> getRoleTypes(); }
SchemaRegistryServiceConfigProvider extends AbstractRdsRoleConfigProvider { @Override public List<ApiClusterTemplateConfig> getServiceConfigs(CmTemplateProcessor templateProcessor, TemplatePreparationObject source) { String cdhVersion = source.getBlueprintView().getProcessor().getStackVersion() == null ? "" : source.getBlueprintView().getProcessor().getStackVersion(); if (isVersionNewerOrEqualThanLimited(cdhVersion, CLOUDERAMANAGER_VERSION_7_2_0)) { RdsView schemaRegistryRdsView = getRdsView(source); return List.of( config(DATABASE_TYPE, dataBaseTypeForCM(schemaRegistryRdsView.getDatabaseVendor())), config(DATABASE_NAME, schemaRegistryRdsView.getDatabaseName()), config(DATABASE_HOST, schemaRegistryRdsView.getHost()), config(DATABASE_PORT, schemaRegistryRdsView.getPort()), config(DATABASE_USER, schemaRegistryRdsView.getConnectionUserName()), config(DATABASE_PASSWORD, schemaRegistryRdsView.getConnectionPassword()) ); } return emptyList(); }  @Override List<ApiClusterTemplateConfig> getServiceConfigs(CmTemplateProcessor templateProcessor, TemplatePreparationObject source); @Override String getServiceType(); @Override List<String> getRoleTypes();  }