* Make sure global mapping is avaliable when global.xml is
* in the path.
* @throws Exception
*/
public void testGlobalMapping() throws Exception {
ServiceInfo sinfo = metaInfo.getServiceInfo("HDP",
"0.2", "HDFS");
List<PropertyInfo> pinfo = sinfo.getProperties();
/** check all the config knobs and make sure the global one is there **/
boolean checkforglobal = false;
for (PropertyInfo pinfol: pinfo) {
if ("global.xml".equals(pinfol.getFilename())) {
checkforglobal = true;
}
}
Assert.assertTrue(checkforglobal);
sinfo = metaInfo.getServiceInfo("HDP",
"0.2", "MAPREDUCE");
boolean checkforhadoopheapsize = false;
pinfo = sinfo.getProperties();
for (PropertyInfo pinfol: pinfo) {
if ("global.xml".equals(pinfol.getFilename())) {
if ("hadoop_heapsize".equals(pinfol.getName()))
checkforhadoopheapsize = true;
}