Created
June 22, 2017 18:41
-
-
Save gfpacheco/6478fe1f29303567f43421f2fb481275 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn test v0.24.5 | |
$ make prepush | |
./node_modules/.bin/eslint '.' | |
lib/plugins/conditional_request.js | |
115:8 warning Unexpected todo comment no-warning-comments | |
test/formatter.test.js | |
107:8 warning Unexpected todo comment no-warning-comments | |
✖ 2 problems (0 errors, 2 warnings) | |
./node_modules/.bin/jscs '.' | |
check ok | |
./node_modules/.bin/nodeunit test/*.test.js | |
[1mclient.test.js[22m | |
✔ GET json | |
✔ GH-778 GET jsonp | |
✔ GH-388 GET json, but really HTML | |
✔ GH-115 GET path with spaces | |
✔ Check error (404) | |
✔ HEAD json | |
✔ POST json | |
✔ POST json empty body object | |
✔ PUT json | |
✔ PATCH json | |
✔ GH-800 GET json 0 | |
✔ GH-800 GET json false | |
✔ GH-800 GET json null | |
✔ GET text | |
✔ GET PARTIAL text | |
✔ HEAD text | |
✔ POST text | |
✔ PATCH text | |
✔ POST text (object) | |
✔ POST text empty body string | |
✔ POST text null body | |
✔ POST text empty body object | |
✔ PUT text | |
✔ PUT text empty body string | |
✔ DELETE text | |
✔ DELETE allows content-length | |
✔ GET raw | |
✔ POST raw | |
✔ PR-726 Enable {agent: false} option override per request | |
✔ GH-20 connectTimeout | |
✔ requestTimeout | |
✔ GH-169 PUT json Content-MD5 | |
✔ GH-203 GET json, body is whitespace | |
✔ GH-203 GET json, body is tabs | |
✔ don't sign a request | |
✔ sign a request | |
✔ secure client connection with timeout | |
✔ create JSON client with url instead of opts | |
✔ create string client with url instead of opts | |
✔ create http client with url instead of opts | |
✔ create base client with url instead of opts | |
✔ GH-738 respect NO_PROXY while setting proxy | |
[1mfielded_text_parser.test.js[22m | |
✔ Parse CSV body | |
✔ Parse TSV body | |
[1mformatter.test.js[22m | |
✔ async formatter | |
✔ async formatter error | |
✔ sync formatter | |
✔ q-val priority | |
✔ GH-771 q-val priority on */* | |
✔ GH-937 should return 406 when no content-type header set on response matching an acceptable type found by matching client | |
✔ GH-937 should return 500 when no default formatter found and octet-stream is not available | |
[1mindex.test.js[22m | |
✔ realize | |
✔ httpDate | |
[1mjson_body_parser.test.js[22m | |
✔ reviver | |
✔ no reviver | |
[1mplugins.test.js[22m | |
✔ 406 | |
✔ accept ok | |
✔ authorization basic ok | |
✔ authorization basic invalid | |
✔ body url-encoded ok | |
✔ body url-encoded ok (no params) | |
✔ body multipart ok | |
✔ gh-847 body multipart no files ok | |
✔ gh-847 body multipart files ok | |
✔ body multipart ok custom handling | |
✔ GH-694 pass hash option through to Formidable | |
✔ body json ok | |
✔ body json ok (no params) | |
✔ body json ok (null params) | |
✔ GH-318 get request with body (default) | |
✔ GH-318 get request with body (requestBodyOnGet=true) | |
✔ GH-111 JSON Parser not right for arrays | |
✔ GH-279 more JSON Arrays | |
✔ date expired | |
✔ Conditional Request with correct Etag and headers | |
✔ Conditional Request with mismatched Etag and If-Match | |
✔ cdntl req If-Modified header & !modified content | |
✔ cdtl req If-Unmodified-Since header,modified content | |
✔ cdtl req valid headers, ahead time, unmodified OK | |
✔ cdtl req valid headers, ahead Timezone, modified content | |
✔ Conditional PUT with matched Etag and headers | |
✔ gzip response | |
✔ gzip large response | |
✔ gzip body json ok | |
✔ static serves static files | |
✔ static serves static files in nested folders | |
✔ static serves static files in with a root regex | |
✔ static serves static files with a root, !greedy, regex | |
✔ static serves default file | |
✔ GH-379 static serves file with parentheses in path | |
✔ GH-719 serve a specific static file | |
bunyan: ERROR: Exception thrown from the "res" Bunyan serializer. This should never happen. This is a bug in that serializer function. | |
RangeError: Maximum call stack size exceeded | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:176:52) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
✔ audit logger timer test | |
bunyan: ERROR: Exception thrown from the "res" Bunyan serializer. This should never happen. This is a bug in that serializer function. | |
RangeError: Maximum call stack size exceeded | |
at ServerResponse.get (_http_outgoing.js:129:16) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
✔ audit logger anonymous timer test | |
bunyan: ERROR: Exception thrown from the "res" Bunyan serializer. This should never happen. This is a bug in that serializer function. | |
RangeError: Maximum call stack size exceeded | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:176:52) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
✔ GH-812 audit logger has query params string | |
bunyan: ERROR: Exception thrown from the "res" Bunyan serializer. This should never happen. This is a bug in that serializer function. | |
RangeError: Maximum call stack size exceeded | |
at ServerResponse.get (_http_outgoing.js:129:16) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
at ServerResponse.get (_http_outgoing.js:130:17) | |
at ServerResponse.getHeaders (/Users/gfpacheco/Workspace/node-restify4/lib/response.js:177:17) | |
✔ GH-812 audit logger has query params obj | |
✔ GH-774 utf8 corruption in body parser | |
✔ request expiry testing to ensure that invalid requests will error. | |
✔ request expiry testing to ensure that valid requests will succeed. | |
✔ request expiry testing to ensure that valid requests without headers will succeed. | |
✔ tests the requestLoggers extra header properties | |
[1mquery.test.js[22m | |
✔ query ok | |
✔ GH-124 query ok no query string | |
✔ query: bracket object (default options) | |
✔ query: bracket array (default options) | |
✔ query: bracket array (#444, #895) | |
✔ query: plainObjects=true by default | |
✔ query: allowDots=true by default | |
✔ query: allowDots=false plainObjects=false | |
✔ query: mapParams=false | |
✔ query: arrayLimit=1 | |
✔ query: depth=2 | |
✔ query: parameterLimit=3 | |
✔ query: strictNullHandling=true | |
[1mrequest.test.js[22m | |
✔ query should return empty string | |
✔ query should return raw query string string | |
[1mresponse.test.js[22m | |
✔ redirect to new string url as-is | |
✔ redirect to new relative string url as-is | |
✔ redirect to current url (reload) | |
✔ redirect to current url from http -> https | |
✔ redirect to current url from https -> http | |
✔ redirect by changing path | |
✔ redirect should add query params | |
✔ redirect should extend existing query params | |
✔ redirect should stomp over existing query params | |
✔ redirect with 301 status code | |
✔ redirect with 301 status code ising string url | |
✔ redirect using options.url | |
✔ redirect using opts.port | |
✔ redirect using external url and custom port | |
✔ redirect using default hostname with custom port | |
✔ redirect should cause InternalServerError when invoked without next | |
✔ redirect should call next with false to stop handler stack execution | |
✔ should fail to set header due to missing formatter | |
[1mrouter.test.js[22m | |
✔ render route | |
✔ render route (missing params) | |
✔ GH #704: render route (special charaters) | |
✔ GH #704: render route (with sub-regex param) | |
✔ GH-796: render route (with multiple sub-regex param) | |
✔ render route (with encode) | |
✔ render route (query string) | |
✔ clean up xss for 404 | |
[1mserver.test.js[22m | |
✔ 405 | |
✔ listen and close (port only) | |
✔ listen and close (port only) w/ port number as string | |
✔ listen and close (socketPath) | |
✔ gh-751 IPv4/IPv6 server URL | |
✔ get (path only) | |
✔ use + get (path only) | |
✔ rm | |
✔ use - throws TypeError on non function as argument | |
✔ PUT ok | |
✔ PATCH ok | |
✔ HEAD ok | |
✔ DELETE ok | |
✔ OPTIONS | |
✔ CORS Preflight - valid origin | |
✔ CORS Preflight - invalid origin | |
✔ CORS Preflight - any origin | |
✔ RegExp ok | |
✔ get (path and version ok) | |
✔ get (path and version not ok) | |
✔ GH-56 streaming with filed (download) | |
✔ GH-59 Query params with / result in a 404 | |
✔ GH-63 res.send 204 is sending a body | |
✔ GH-64 prerouting chain | |
✔ GH-64 prerouting chain with error | |
✔ GH-67 extend access-control headers | |
✔ GH-77 uncaughtException (default behavior) | |
✔ GH-77 uncaughtException (with custom handler) | |
✔ GH-97 malformed URI breaks server | |
✔ GH-109 RegExp flags not honored | |
✔ upload routing based on content-type ok | |
✔ upload routing based on content-type fail | |
✔ full response | |
✔ GH-149 limit request body size | |
✔ GH-149 limit request body size (json) | |
✔ path+flags ok | |
✔ test matches params with custom regex | |
✔ GH-180 can parse DELETE body | |
✔ returning error from a handler (with domains) | |
✔ emitting error from a handler (with domains) | |
✔ throwing error from a handler (with domains) | |
✔ gh-278 missing router error events (404) | |
✔ gh-278 missing router error events (405) | |
✔ gh-278 missing router error events invalid version | |
✔ gh-278 missing router error events (415) | |
✔ next.ifError | |
✔ gh-283 maximum available versioned route matching | |
✔ gh-635 routes match the maximum version | |
✔ versioned route matching should prefer first match if equal versions | |
req.version() * | |
req.matchedVersion() 0.5.0 | |
req.version() * | |
req.matchedVersion() 0.5.0 | |
✔ GH-959 matchedVersion() should return on cached routes | |
✔ gh-329 wrong values in res.methods | |
✔ GH-323: <url>/<path>/?<queryString> broken | |
✔ <url>/?<queryString> broken | |
✔ GH #704: Route with a valid RegExp params | |
✔ GH #704: Route with an unvalid RegExp params | |
✔ content-type routing vendor | |
✔ content-type routing params only | |
✔ malformed content type | |
✔ gh-193 basic | |
✔ gh-193 route name normalization | |
✔ gh-193 route ENOEXIST | |
✔ gh-193 route only run use once | |
✔ gh-193 route chained | |
✔ gh-193 route params basic | |
✔ gh-193 same url w/params | |
✔ gh-193 next("route") from a use plugin | |
✔ res.charSet | |
✔ res.charSet override | |
✔ GH-384 res.json(200, {}) broken | |
✔ GH-401 regex routing broken | |
✔ explicitly sending a 403 with custom error | |
✔ explicitly sending a 403 on error | |
✔ fire event on error | |
✔ error handler defers "after" event | |
✔ gh-757 req.absoluteUri() defaults path segment to req.path() | |
✔ GH-693 sending multiple response header values | |
✔ gh-762 res.noCache() | |
✔ gh-779 set-cookie fields should never have commas | |
✔ gh-630 handle server versions as an array or string | |
✔ GH-877 content-type should be case insensitive | |
✔ GH-1024 disable uncaughtException handler | |
[1mthrottle.test.js[22m | |
✔ setup | |
✔ ok | |
✔ throttled | |
✔ ok after tokens | |
✔ override limited | |
✔ override limited (not throttled) | |
✔ throttled after limited override | |
✔ override unlimited | |
✔ override unlimited (not throttled) | |
✔ throttled after unlimited override | |
✔ shutdown | |
[1mupgrade.test.js[22m | |
✔ GET without upgrade headers | |
✔ Dueling upgrade and response handling 1 | |
✔ Dueling upgrade and response handling 2 | |
✔ GET with upgrade headers | |
✔ GET with some websocket traffic | |
[1mutils.test.js[22m | |
✔ merge qs | |
[1m[32mOK: [39m[22m805 assertions (8517ms) | |
Done in 13.27s. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment