Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 344661

Summary: Provide a means to run integration tests for clustered RWT applications
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: fwaibel
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 341761    
Attachments:
Description Flags
Cluster Testfixure for RWT none

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