Program: 34550
Project: 34550
Buggy source:
/** 
 * Verify the following: <OL> <LI> An ear file that contains two war files. One war file contains two servlets, the other one contains one servlet. Each war files has one jar file. In this test case the following configuration will be used. 1. WAR 1 will use the LDAP Identity Store. 2. WAR 2 will use the LDAP2 Identity Store. 3. AppSecurity feature 2.0 Will be used. </OL> <P> The application will fail to start because the feature does not support Identity Store. <OL> <LI> </OL>
 */
@Mode(TestMode.LITE) @Test @ExpectedFFDC(value={"String_Node_Str","String_Node_Str"}) public void testEJBAppSecurity10() throws Exception {
  Log.info(logClass,getCurrentTestName(),"String_Node_Str" + getCurrentTestName());
  Log.info(logClass,getCurrentTestName(),"String_Node_Str");
  WCApplicationHelper.createWar(myServer,TEMP_DIR,EJB_WAR_NAME,true,EJB_BEAN_JAR_NAME,true,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  WCApplicationHelper.createWar(myServer,TEMP_DIR,EJB_WAR_NAME2,true,EJB_BEAN_JAR_NAME,true,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  WCApplicationHelper.packageWarsToEar(myServer,TEMP_DIR,EJB_EAR_NAME_noPermission,true,EJB_WAR_NAME,EJB_WAR_NAME2);
  WCApplicationHelper.addEarToServerApps(myServer,TEMP_DIR,EJB_EAR_NAME_noPermission);
  WCApplicationHelper.addWarToServerApps(myServer,"String_Node_Str",true,JAR_NAME,false,"String_Node_Str","String_Node_Str");
  Log.info(logClass,getCurrentTestName(),"String_Node_Str");
  Log.info(logClass,getCurrentTestName(),"String_Node_Str");
  startServer(APP_SEC_1_XML_NAME,EJB_APP_NAME_noPermission);
  assertNotNull("String_Node_Str",myServer.waitForStringInLog("String_Node_Str"));
  assertNotNull("String_Node_Str",myServer.waitForStringInLog("String_Node_Str"));
  myServer.removeInstalledAppForValidation(EJB_APP_NAME_noPermission);
  myServer.stopServer("String_Node_Str","String_Node_Str","String_Node_Str");
  Log.info(logClass,getCurrentTestName(),"String_Node_Str" + getCurrentTestName());
}

Fixed version (ground truth):
/** 
 * Verify the following: <OL> <LI> An ear file that contains two war files. One war file contains two servlets, the other one contains one servlet. Each war files has one jar file. In this test case the following configuration will be used. 1. WAR 1 will use the LDAP Identity Store. 2. WAR 2 will use the LDAP2 Identity Store. 3. AppSecurity feature 2.0 Will be used. </OL> <P> The application will fail to start because the feature does not support Identity Store. <OL> <LI> </OL>
 */
@Mode(TestMode.LITE) @Test @ExpectedFFDC(value={"String_Node_Str","String_Node_Str"}) public void testEJBAppSecurity10() throws Exception {
  Log.info(logClass,getCurrentTestName(),"String_Node_Str" + getCurrentTestName());
  Log.info(logClass,getCurrentTestName(),"String_Node_Str");
  WCApplicationHelper.createWar(myServer,TEMP_DIR,EJB_WAR_NAME,true,EJB_BEAN_JAR_NAME,true,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  WCApplicationHelper.createWar(myServer,TEMP_DIR,EJB_WAR_NAME2,true,EJB_BEAN_JAR_NAME,true,"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  WCApplicationHelper.packageWarsToEar(myServer,TEMP_DIR,EJB_EAR_NAME_noPermission,true,EJB_WAR_NAME,EJB_WAR_NAME2);
  WCApplicationHelper.addEarToServerApps(myServer,TEMP_DIR,EJB_EAR_NAME_noPermission);
  WCApplicationHelper.addWarToServerApps(myServer,"String_Node_Str",true,JAR_NAME,false,"String_Node_Str","String_Node_Str");
  Log.info(logClass,"String_Node_Str","String_Node_Str");
  Log.info(logClass,getCurrentTestName(),"String_Node_Str");
  startServer(APP_SEC_1_XML_NAME,EJB_APP_NAME_noPermission);
  assertNotNull("String_Node_Str",myServer.waitForStringInLog("String_Node_Str"));
  assertNotNull("String_Node_Str",myServer.waitForStringInLog("String_Node_Str"));
  myServer.removeInstalledAppForValidation(EJB_APP_NAME_noPermission);
  myServer.stopServer("String_Node_Str","String_Node_Str","String_Node_Str");
  Log.info(logClass,getCurrentTestName(),"String_Node_Str" + getCurrentTestName());
}