All,

I’d like to propose adding an integration test layer to the Tomcat source
tree that validates Tomcat behavior when deployed behind httpd as a reverse
proxy.

Tomcat’s documentation treats reverse proxy operation as a distinct
configuration surface (e.g. utilizing RemoteIpValve and SSLValve). These
are paths for which having automated regression coverage would reduce risk
in future changes and test that everything's working as expected flawlessly.

I’m proposing a new directory in the Tomcat repo (e.g. integration/ ) that
contains the entire implementation:

   1.  A Java-based harness to provision a test environment.
   - Creates an isolated CATALINA_BASE under output/
      - Writes templated Tomcat and httpd configs for each scenario per
      proxy mode
      - Starts/stops Tomcat and httpd as external processes
      - Waits for readiness and captures logs into a dedicated output
      direcotry
   2.  A minimal test web application used as a stable assertion target
   3.  A set of JUnit integration tests that send requests to httpd and
   validate the results as seen by Tomcat testing the documented proxy
   configuration behaviors.

This would be added as Ant target(s), separate from the default 'ant test'
workflow, e.g. 'ant integration-httpd'.

I would appreciate your feedback on this.

Kind regards,
Dimitris

Reply via email to