@Test public void testGetHdfsServiceConfigsWithS3GuardWithAuthoriativeWarehousePath() { TemplatePreparationObject preparationObject = getTemplatePreparationObject(true, true, true); StringBuilder sb = new StringBuilder(); underTest.getServiceConfigs(preparationObject, sb); assertEquals("<property><name>fs.s3a.metadatastore.impl</name>" + "<value>org.apache.hadoop.fs.s3a.s3guard.DynamoDBMetadataStore</value></property>" + "<property><name>fs.s3a.s3guard.ddb.table.tag.apple</name><value>apple1</value></property>" + "<property><name>fs.s3a.s3guard.ddb.table.tag.cdp_table_role</name><value>s3guard</value></property>" + "<property><name>fs.s3a.s3guard.ddb.table.create</name><value>true</value></property>" + "<property><name>fs.s3a.s3guard.ddb.table</name><value>dynamoTable</value></property>" + "<property><name>fs.s3a.s3guard.ddb.region</name><value>region</value></property>" + "<property><name>fs.s3a.authoritative.path</name>" + "<value>s3a: }
public void getServiceConfigs(TemplatePreparationObject templatePreparationObject, StringBuilder hdfsCoreSiteSafetyValveValue) { if (isS3FileSystemConfigured(templatePreparationObject)) { configureS3GuardCoreSiteParameters(templatePreparationObject, hdfsCoreSiteSafetyValveValue); } }
S3GuardConfigProvider { public void getServiceConfigs(TemplatePreparationObject templatePreparationObject, StringBuilder hdfsCoreSiteSafetyValveValue) { if (isS3FileSystemConfigured(templatePreparationObject)) { configureS3GuardCoreSiteParameters(templatePreparationObject, hdfsCoreSiteSafetyValveValue); } } }
S3GuardConfigProvider { public void getServiceConfigs(TemplatePreparationObject templatePreparationObject, StringBuilder hdfsCoreSiteSafetyValveValue) { if (isS3FileSystemConfigured(templatePreparationObject)) { configureS3GuardCoreSiteParameters(templatePreparationObject, hdfsCoreSiteSafetyValveValue); } }  }
S3GuardConfigProvider { public void getServiceConfigs(TemplatePreparationObject templatePreparationObject, StringBuilder hdfsCoreSiteSafetyValveValue) { if (isS3FileSystemConfigured(templatePreparationObject)) { configureS3GuardCoreSiteParameters(templatePreparationObject, hdfsCoreSiteSafetyValveValue); } }  void getServiceConfigs(TemplatePreparationObject templatePreparationObject, StringBuilder hdfsCoreSiteSafetyValveValue); }
S3GuardConfigProvider { public void getServiceConfigs(TemplatePreparationObject templatePreparationObject, StringBuilder hdfsCoreSiteSafetyValveValue) { if (isS3FileSystemConfigured(templatePreparationObject)) { configureS3GuardCoreSiteParameters(templatePreparationObject, hdfsCoreSiteSafetyValveValue); } }  void getServiceConfigs(TemplatePreparationObject templatePreparationObject, StringBuilder hdfsCoreSiteSafetyValveValue);  }