}};
actionRequest = new ExecuteActionRequest("c1", "DECOMMISSION", null, resourceFilters, null, params2);
expectActionCreationErrorWithMessage(actionRequest, requestProperties,
"mark_draining_only is not a valid parameter for NAMENODE");
controller.getAmbariMetaInfo().addActionDefinition(new ActionDefinition(
"a1", ActionType.SYSTEM, "test,dirName", "", "", "Does file exist",
TargetHostType.SPECIFIC, Short.valueOf("100")));
controller.getAmbariMetaInfo().addActionDefinition(new ActionDefinition(
"a2", ActionType.SYSTEM, "", "HDFS", "DATANODE", "Does file exist",
TargetHostType.ANY, Short.valueOf("100")));
controller.getAmbariMetaInfo().addActionDefinition(new ActionDefinition(
"a3", ActionType.SYSTEM, "", "MAPREDUCE", "MAPREDUCE_CLIENT", "Does file exist",
TargetHostType.ANY, Short.valueOf("100")));
controller.getAmbariMetaInfo().addActionDefinition(new ActionDefinition(
"a4", ActionType.SYSTEM, "", "HIVE", "", "Does file exist",
TargetHostType.ANY, Short.valueOf("100")));
actionRequest = new ExecuteActionRequest("c1", null, "a1", null, null, null);
expectActionCreationErrorWithMessage(actionRequest, requestProperties,