Fix EAP integration tests - wrong cleanup
-----------------------------------------
Key: JBIDE-23377
URL:
https://issues.jboss.org/browse/JBIDE-23377
Project: Tools (JBoss Tools)
Issue Type: Task
Components: integration-tests
Affects Versions: 4.4.2.AM2
Reporter: Martin Malina
Assignee: Martin Malina
Fix For: 4.4.2.AM2
EAP integration tests fail because of change in RedDeer.
The test suite is set up as follows:
{code}
@Suite.SuiteClasses({
CreateEAP7Server.class,
OperateEAP7Server.class,
DeployJSPProjectEAP7Server.class,
HotDeployJSPFileEAP7Server.class,
UndeployJSPProjectEAP7Server.class,
DeleteServerEAP7Server.class
})
{code}
DeployJSPProject, HotDeployJSPFile and UndeployJSPProject depend on each other - they
require to start in the state where the previous test left it.
But a change in RedDeer caused that by default each test cleans up after being run now.
So we need to add cleanup=false in the server requirement annotation for these test
classes, such as:
{code}
@JBossServer(state=ServerReqState.RUNNING, type=ServerReqType.EAP7x,
version=ServerReqVersion.EQUAL,cleanup=false)
{code}