Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344661 - Provide a means to run integration tests for clustered RWT applications
Summary: Provide a means to run integration tests for clustered RWT applications
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 341761
  Show dependency tree
 
Reported: 2011-05-04 04:00 EDT by Rüdiger Herrmann CLA
Modified: 2011-05-09 06:26 EDT (History)
1 user (show)

See Also:


Attachments
Cluster Testfixure for RWT (18.11 KB, application/octet-stream)
2011-05-04 04:02 EDT, Rüdiger Herrmann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rüdiger Herrmann CLA 2011-05-04 04:00:00 EDT
The outcome should allow to easily setup a scenario where 
1. two or more servlet engines are configured to form a cluster
2. a simple web aplication can be deployed on the cluster nodes (given a class that implements IEntryPoint and a thereof generated web.xml should suffice to make up for a web application for the first iteration)
3. some helper classes aid in sending requests to a cluster node
4. a failover can be simulated (e.g. terminating a cluster node)
5. further requests can be sent to a different cluster node
6. the server-side state of any session on any node an be examined to allow assertions in the form display-from-session-1-in-node-A is equal to display-from-session-1-in-failover-node

Ideally the above could be expressed in a JUnit test case. To ease access, all components described above would run in the same VM.
Comment 1 Rüdiger Herrmann CLA 2011-05-04 04:02:36 EDT
Created attachment 194671 [details]
Cluster Testfixure for RWT

This patch contains three projects:
org.eclipse.rap.rwt.cluster.test (webapp and cluster tests)
org.eclipse.rap.rwt.cluster.testfixture (cluster test support)
org.eclipse.rap.rwt.cluster.testfixture.test (tests for the cluster test support :)

Additional dependencies:

Jetty 7 and H2 (Jetty with jdbc clustering)
plus
org.apache.commons.codec,
org.apache.commons.logging,
org.apache.commons.httpclient;bundle-version="[3.0.1,3.1.0)"
Comment 2 Rüdiger Herrmann CLA 2011-05-09 06:26:37 EDT
Refactored patch and applied it to CVS HEAD.
Opened "CQ 5151":https://dev.eclipse.org/ipzilla/show_bug.cgi?id=5151 to request the use of H2 from Orbit