92 Commits

Author SHA1 Message Date
Maciej Małecki
c4124da4f2 [minor] Fix indent on timeout notice 2011-12-18 22:49:20 +01:00
Maciej Małecki
bc98c0dbce [test] Add core test-http-upgrade-server2 test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:20 +01:00
Maciej Małecki
feb324b0d4 [test] Add core test-http-proxy test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:20 +01:00
Maciej Małecki
275109b2f8 [test] Add core test-http-contentLength0 test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:19 +01:00
Maciej Małecki
c26ab5e46f [test] Add core test-http-extra-response test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:19 +01:00
Maciej Małecki
d7f15d02f7 [test] Add core test-http-server-multiheaders test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:19 +01:00
Maciej Małecki
35d2088c96 [test] Add core test-http-multi-line-headers test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:19 +01:00
Maciej Małecki
48d4a8b263 [minor] Allow user to set colors.mode 2011-12-18 22:49:19 +01:00
Maciej Małecki
5c3d41bf4e [minor] Nicer output from test runner 2011-12-18 22:49:19 +01:00
Maciej Małecki
38bd906f2b [minor] Everybody loves Unicode
Tick and X marks in test runner output.
2011-12-18 22:49:19 +01:00
Maciej Małecki
b76680b045 [minor] Change test runner output order 2011-12-18 22:49:19 +01:00
Maciej Małecki
68cebbe0e7 [test] Run tests in test/core/simple by default 2011-12-18 22:49:19 +01:00
Maciej Małecki
e109eba972 [minor] When running tests output only basename 2011-12-18 22:49:19 +01:00
Maciej Małecki
a4079c6a1c [test] Implement basic runner for multiple tests
Features:

  * timeout
  * running tests in separate processes
  * printing basic summary
2011-12-18 22:49:19 +01:00
Maciej Małecki
2ccc5c73ea [test minor] Update copyright notice on test runner 2011-12-18 22:49:19 +01:00
Maciej Małecki
004be38048 [test refactor] test/core/{run => run-single} 2011-12-18 22:49:19 +01:00
Maciej Małecki
4e1ca6e618 [test] Add core test-http-many-keep-alive-connections test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
  * `process.exit` instead of `server.close` (process wouldn't exit
    otherwise, I'm not sure why)
2011-12-18 22:49:19 +01:00
Maciej Małecki
13389db1be [test] Add core test-http-head-response-has-no-body-end test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:19 +01:00
Maciej Małecki
f79f3adf02 [test] Add core test-http-head-response-has-no-body test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:19 +01:00
Maciej Małecki
f298411f76 [test] Add core test-http-host-headers test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
  * remove https part
  * change assertion to match `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:19 +01:00
Maciej Małecki
5ac987857c [test] Add core test-http-client-upload-buf test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
f1c0be3f0b [test] Add core test-http-response-close test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
7bf8d4a7be [test] Add core test-http-client-abort test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`

As off a95cf9bd63, this test doesn't hang.
2011-12-18 22:49:18 +01:00
Maciej Małecki
80c216df0c [test] Add core test-http-eof-on-connect test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
a6353897cd [test] Add core test-http-malformed-request test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
7648fe50c1 [test] Add core test-http-client-upload test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
25a9e2d217 [test] Add core test-http test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
60ff181af9 [test] Add core test-http-upload-timeout test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
98bbe541e4 [test] Add core test-http-client-abort2 test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
d7461f3206 [test] Add core test-http-chunked test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
c0857f2d59 [test] Add core test-http-head-request test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
b3b5cce3ae [test] Add core test-http-set-cookies test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
82060a5343 [test] Add core test-http-status-code test
Modifications:

  * make client connect to `PROXY_PORT` instead of `PORT`
2011-12-18 22:49:18 +01:00
Maciej Małecki
31a8c6800d [fix test] Make test runner exit after test exits 2011-12-18 22:49:18 +01:00
Maciej Małecki
87999d0288 [test] Add basic test runner 2011-12-18 22:49:18 +01:00
Maciej Małecki
543f214361 [test] Add common.js file from core
Modifications:

  * add `PROXY_PORT` constant
2011-12-18 22:49:18 +01:00
Maciej Małecki
8ca5d83497 [docs] Little explanation for test/core directory 2011-12-18 22:49:17 +01:00
Max Ogden
91e9bb9070 adding tests for url segment proxytable routing 2011-10-15 14:22:36 -07:00
indexzero
f188f4ffd8 [test fix] Remove unnecessary console.log in tests/websocket/websocket-proxy-test.js 2011-10-04 01:54:27 +02:00
Joshua Holbrook
66e982060c [test] Added a test for the "x-forwarded-for" header 2011-09-20 13:33:07 -07:00
indexzero
734769fa9b [test] Updated tests to reflect finalized API of the RoutingProxy 2011-09-10 03:55:35 -04:00
indexzero
5927ecd62a [api test dist] Stubbed out the API for the higher-level RoutingProxy object to be exposed by node-http-proxy 2011-09-08 18:22:38 -07:00
indexzero
3a4d312eda [test] Whitespace fix 2011-09-08 17:57:44 -07:00
indexzero
daf9231a66 [test fix] A few minor fixes to ensure basic WebSocket tests are working. Better scope tests by supported protocol 2011-08-28 05:06:14 -04:00
indexzero
be4562da9f [api test] Updated httpProxy.createServer() for new API exposed by simplified HttpProxy object.
[breaking] Temporarily removed pending refactor: middleware & ProxyTable support
2011-08-28 04:40:51 -04:00
indexzero
db10c4af91 [test] Updates for readability 2011-08-28 02:09:37 -04:00
Dominic Tarr
efa17ef6cf [fix] use routing table mhen proxying WebSockets.
closes issue #72
2011-07-21 23:08:11 +10:00
indexzero
4f85ca04e4 [api doc test] node-http-proxy now emits websocket:* on important WebSocket events. Added tests for these features and updated some code docs 2011-06-26 10:52:22 -04:00
indexzero
a1cdf005b9 [test] Update tests to use localhost 2011-05-23 16:46:48 -04:00
indexzero
028d2044e7 [fix] Change sec-websocket-location header when proxying WSS --> WS. Added test coverage for this scenario 2011-05-23 02:18:12 -04:00