Nick Muerdter
daf53bd753
Don't test raw HTTP 1.0 requests over HTTPS.
2013-04-18 18:11:58 -06:00
Nick Muerdter
a29b5e8e28
Correct keep-alive responses to HTTP 1.0 clients.
...
Since the proxy requests comes from NodeJS's HTTP 1.1 request client, a
backend server may default to setting Connection: keep-alive in its
response. However, the real HTTP 1.0 client may not be able to
handle that.
Force HTTP 1.0 client's to Connection: close, unless the client
explicitly supports keep-alive.
2013-04-18 16:33:10 -06:00
indexzero
5d515e4728
[api test] Manually merge #195 from @tglines since that fork was deleted. Update tests to use new macros. Fixes #195 . Fixes #60 .
2013-03-09 04:20:05 -05:00
Mikkel Garcia
46b078a98d
pathnameOnly flag added. Ignores hostname and applies routing table to the paths being requested.
2013-03-09 03:18:07 -05:00
pdoran
89d43c20dd
Added timeout option and test to test new timeout parameter, added requestFail assertion.
2013-03-09 03:04:29 -05:00
indexzero
9cecd97153
[minor] s/function(/function (/ s/){/) {/
2013-03-09 01:43:25 -05:00
Gilad Oren
ecb547223f
Add tests for headers bug fixes
2013-03-09 01:05:27 -05:00
Maciej Małecki
b8c27ed565
[fix] Correctly kill test processes
2012-10-29 12:59:04 +01:00
Maciej Małecki
886a395429
[test] Delete invalid core test
2012-10-29 12:50:41 +01:00
Maciej Małecki
74ec175715
[test] Kill child process when exiting test runner
2012-10-28 14:31:15 +01:00
Maciej Małecki
3531fd609a
[test] Make global detection work with older node versions
2012-10-28 14:25:36 +01:00
Maciej Małecki
fefbf04ac0
[test] Upgrade common.js from node core
2012-10-28 13:56:53 +01:00
Maciej Małecki
2e7d8a88f4
[fix] Partial fix for rejecting self-signed certs in tests
...
Since joyent/node@35607f3a2d , https and
tls modules validate server certificate by default. Turn this feature
off since we're using self-signed certificates in tests.
Currently wss tests are still failing, pending investigation.
Commited on a plane from Poznań to Munich.
2012-09-27 10:00:10 +02:00
indexzero
1783ab0625
[fix] Dont use -i when running vows because it supresses --target= and --proxy= CLI arguments
2012-07-26 04:57:02 -04:00
indexzero
a454666e7a
[fix] Ignore npm version errors when installing dependencies for examples
2012-07-26 04:53:48 -04:00
indexzero
c4a7b15843
[fix] Suppress EADDRINUSE errors from test/examples-test.js since we are just looking for require-time errors. Isolate tests to ensure idempotency of ports
2012-07-26 04:47:25 -04:00
indexzero
fd648a5290
[fix test] Fix examples to use newest version of socket.io and helpers. Added tests for ensuring that examples require as expected with no errors.
2012-07-26 04:29:47 -04:00
indexzero
36226daa2e
[dist] Complete JSHint compliance except for too many var statements
2012-07-22 03:14:01 -04:00
indexzero
7e854d778b
[refactor tests] Finished refactoring tests to support ws*-to-ws* tests based on CLI arguments
2012-07-22 01:38:23 -04:00
indexzero
828dbebcaa
[refactor test] Add support for http*-to-http* testing from CLI arguments
2012-07-22 01:03:41 -04:00
indexzero
e2dc7f9693
[refactor test] Finish removing old test code.
2012-07-21 20:46:30 -04:00
indexzero
4ae7a5b840
[refactor] Rewrite tests to use saner vows idioms. Update tests to use latest socket.io
2012-07-21 19:29:23 -04:00
cronopio
45d67f42cb
[tests] used socket.io 0.6.17 fixed version for tests
2012-06-05 17:06:03 -05:00
Christian Howe
5d839dd5f8
Add tests for remapping URL properly.
2012-04-11 16:13:25 -04:00
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