Auto-tools/Projects/Mozmill/Mozmill 2.0/HttpProxy

From MozillaWiki
Jump to navigation Jump to search

We need the way to serve local HTTP and SSL pages for tests. We should simply re-use all the existing infrastructure used by mochitest in the same way (without adding any of it to the mozmill codebase, if possible).

Goals

  • Use the same command line options and interfaces that mochitest uses to achieve HTTP and SSL support
  • Use the ssltunnel and httpd.js from mochitest to make this possible.
  • Give tests a simple way to interact and setup SJS scripts (The way that mochitest does this is hacky--I think the way we do this is via the test manifest system)

Possible dependency

  • Create a script to help checkout the httpd.js and ssltunnel binaries from our codebase or our testpackages. There should be no reason for mozmill to need to build these things.

Non-goals

  • Reinvent the wheel
  • End up requiring patched versions of ssltunnel or httpd in the mozmill codebase
  • End up checking in the ssltunnel/httpd code into mozmill
  • Not making this something that is supported in the general use case of mozmill, should not be required for normal operation

Primary Use Case

  • Tests that are run in highly automated/reliable environments where external network connectivity is frowned upon.