[jbosstools-issues] [JBoss JIRA] (JBIDE-23377) Fix EAP integration tests - wrong cleanup

Martin Malina (JIRA) issues at jboss.org
Mon Oct 17 10:56:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-23377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13307960#comment-13307960 ] 

Martin Malina commented on JBIDE-23377:
---------------------------------------

These one-liners were used to fix this:
{code}
find src/org/jboss/ide/eclipse/as/ -name 'DeployJSP*' -exec perl -pi -e 's/(\@JBossServer\(.*)\)/\1,cleanup=false)/g' {} \;
find src/org/jboss/ide/eclipse/as/ -name 'HotDeployJSP*' -exec perl -pi -e 's/(\@JBossServer\(.*)\)/\1,cleanup=false)/g' {} \;
{code}

> 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.AM3
>
>
> 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}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list