LocalOozie.stop();
super.tearDown();
}
public void testSubmitReservedVars() throws Exception {
Configuration conf = new XConfiguration();
String appPath = getTestCaseDir();
String appXml = "<workflow-app xmlns='uri:oozie:workflow:0.1' name='map-reduce-wf'> " + "<start to='end' /> "
+ "<end name='end' /> " + "</workflow-app>";
writeToFile(appXml, appPath + "/workflow.xml");
conf.set(OozieClient.APP_PATH, "file://" + appPath + "/workflow.xml");
conf.set(OozieClient.USER_NAME, getTestUser());
conf.set("GB", "5");
SubmitXCommand sc = new SubmitXCommand(conf, "UNIT_TESTING");
try {
sc.call();
fail("WF job submission should fail with reserved variable definitions.");