Bug 311782 - Need to enable the SDO tests for server to run with WLS, WAS and JBoss
Summary: Need to enable the SDO tests for server to run with WLS, WAS and JBoss
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Edwin Tang CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on: 308880
Blocks: 312302
  Show dependency tree
 
Reported: 2010-05-05 15:24 EDT by Edwin Tang CLA
Modified: 2022-06-09 10:13 EDT (History)
2 users (show)

See Also:


Attachments
patch file (11.37 KB, patch)
2010-05-10 14:13 EDT, Edwin Tang CLA
no flags Details | Diff
patch file (10.96 KB, patch)
2010-05-10 15:34 EDT, Edwin Tang CLA
no flags Details | Diff
2nd patch file (2.18 KB, patch)
2010-05-13 13:37 EDT, Edwin Tang CLA
no flags Details | Diff
3rd patch file (1.57 KB, patch)
2010-05-17 11:34 EDT, Edwin Tang CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Tang CLA 2010-05-05 15:24:28 EDT
Given that bug 308880 has been fixed, we need to create an Ant project to enable the SDO tests for server to run with WLS, WAS and JBoss. 

We can leverage the existing infrastructure(the Ant projects under jpa/eclipselink.jpa.test) that are currently used to run JPA tests on servers.
Comment 1 Edwin Tang CLA 2010-05-10 14:13:53 EDT
Created attachment 167773 [details]
patch file
Comment 2 Edwin Tang CLA 2010-05-10 14:40:18 EDT
Change Summary:
===============
1. The patch contains an ANT project, which can compile the SDO server tests, build application ear file, deploy/undeploy the ear to WLS, WAS and JBoss, run the tests and generate test report. These are the file list:
build.xml
build.properties
test.properties

2. It leverages the ANT projects for running JPA tests on WLS, WAS and JBoss, which are located at trunk/jpa/eclipselink.jpa.test. Here is the list:
weblogic.xml
weblogic.properties
websphere.xml
websphere.properties
jboss.xml
jboss.properties

3. Assuming the an application server(WLS, WAS or JBoss) is started, change test.properties to specific which application server will be tested on, execute "ant test" to run the SDO server tests
Comment 3 Edwin Tang CLA 2010-05-10 15:34:35 EDT
Created attachment 167793 [details]
patch file

Removed unnecessary dependencies from the classpath, based on Yiping's feedback
Comment 4 Edwin Tang CLA 2010-05-10 15:58:42 EDT
Checked the patch in 2.1.0

Code reviewed by: Yiping Zhao
Comment 5 Edwin Tang CLA 2010-05-13 13:37:52 EDT
Created attachment 168423 [details]
2nd patch file

To be able to deploy an SDO application to JBoss, changed target <jboss-install> in jboss.xml to copy ${jpatest.2.sdo.plugins.dir}/${commonj.sdo.jar} to <jboss_home>/lib
Comment 6 Edwin Tang CLA 2010-05-13 13:51:53 EDT
Checked in the 2nd patch into 2.1.0

Code reviewed by: Kevin Yuan
Comment 7 Edwin Tang CLA 2010-05-17 11:34:48 EDT
Created attachment 168751 [details]
3rd patch file
Comment 8 Edwin Tang CLA 2010-05-17 11:37:44 EDT
To be able to deploy an SDO application to WebSphere, changed target
<websphere-install> in websphere.xml to copy
${jpatest.2.sdo.plugins.dir}/${commonj.sdo.jar} to ${was.home}/lib/ext
Comment 9 Edwin Tang CLA 2010-05-17 14:05:55 EDT
Checked the 3rd patch into 2.1.0

Code reviewed by: Yiping Zhao, Blaise Doughan and David Mccann
Comment 10 Eclipse Webmaster CLA 2022-06-09 10:13:53 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink