aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-chunked.js63
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-abort.js80
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-abort2.js41
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-upload-buf.js74
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-upload.js77
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-contentLength0.js42
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-eof-on-connect.js40
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-extra-response.js86
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-request.js56
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-response-has-no-body-end.js61
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-response-has-no-body.js58
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-host-headers.js101
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-many-keep-alive-connections.js68
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-multi-line-headers.js59
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-proxy.js109
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-response-close.js55
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-server-multiheaders.js59
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-set-cookies.js84
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-status-code.js69
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-upgrade-server2.js72
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http.js108
21 files changed, 0 insertions, 1462 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-chunked.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-chunked.js
deleted file mode 100644
index b1cbf0db..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-chunked.js
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-
-var UTF8_STRING = '南越国是前203年至前111年存在于岭南地区的一个国家,' +
- '国都位于番禺,疆域包括今天中国的广东、广西两省区的大部份地区,福建省、湖南、' +
- '贵州、云南的一小部份地区和越南的北部。南越国是秦朝灭亡后,' +
- '由南海郡尉赵佗于前203年起兵兼并桂林郡和象郡后建立。前196年和前179年,' +
- '南越国曾先后两次名义上臣属于西汉,成为西汉的“外臣”。前112年,' +
- '南越国末代君主赵建德与西汉发生战争,被汉武帝于前111年所灭。' +
- '南越国共存在93年,历经五代君主。南越国是岭南地区的第一个有记载的政权国家,' +
- '采用封建制和郡县制并存的制度,它的建立保证了秦末乱世岭南地区社会秩序的稳定,' +
- '有效的改善了岭南地区落后的政治、经济现状。';
-
-var server = http.createServer(function (req, res) {
- res.writeHead(200, {'Content-Type': 'text/plain; charset=utf8'});
- res.end(UTF8_STRING, 'utf8');
-});
-server.listen(common.PORT, function () {
- var data = '';
- var get = http.get({
- path: '/',
- host: 'localhost',
- port: common.PROXY_PORT
- }, function (x) {
- x.setEncoding('utf8');
- x.on('data', function (c) {data += c});
- x.on('error', function (e) {
- throw e;
- });
- x.on('end', function () {
- assert.equal('string', typeof data);
- console.log('here is the response:');
- assert.equal(UTF8_STRING, data);
- console.log(data);
- server.close();
- });
- });
- get.on('error', function (e) {throw e});
- get.end();
-
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-abort.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-abort.js
deleted file mode 100644
index 78d0a6f9..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-abort.js
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-
-var clientAborts = 0;
-
-var server = http.Server(function (req, res) {
- console.log('Got connection');
- res.writeHead(200);
- res.write('Working on it...');
-
- // I would expect an error event from req or res that the client aborted
- // before completing the HTTP request / response cycle, or maybe a new
- // event like "aborted" or something.
- req.on('aborted', function () {
- clientAborts++;
- console.log('Got abort ' + clientAborts);
- if (clientAborts === N) {
- console.log('All aborts detected, you win.');
- server.close();
- }
- });
-
- // since there is already clientError, maybe that would be appropriate,
- // since "error" is magical
- req.on('clientError', function () {
- console.log('Got clientError');
- });
-});
-
-var responses = 0;
-var N = http.Agent.defaultMaxSockets - 1;
-var requests = [];
-
-server.listen(common.PORT, function () {
- console.log('Server listening.');
-
- for (var i = 0; i < N; i++) {
- console.log('Making client ' + i);
- var options = { port: common.PROXY_PORT, path: '/?id=' + i };
- var req = http.get(options, function (res) {
- console.log('Client response code ' + res.statusCode);
-
- if (++responses == N) {
- console.log('All clients connected, destroying.');
- requests.forEach(function (outReq) {
- console.log('abort');
- outReq.abort();
- });
- }
- });
-
- requests.push(req);
- }
-});
-
-process.on('exit', function () {
- assert.equal(N, clientAborts);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-abort2.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-abort2.js
deleted file mode 100644
index eef05fb4..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-abort2.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-// libuv-broken
-
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-
-var server = http.createServer(function (req, res) {
- res.end('Hello');
-});
-
-server.listen(common.PORT, function () {
- var req = http.get({port: common.PROXY_PORT}, function (res) {
- res.on('data', function (data) {
- req.abort();
- server.close();
- });
- });
-});
-
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-upload-buf.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-upload-buf.js
deleted file mode 100644
index 3b8e9abc..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-upload-buf.js
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-
-var N = 1024;
-var bytesRecieved = 0;
-var server_req_complete = false;
-var client_res_complete = false;
-
-var server = http.createServer(function (req, res) {
- assert.equal('POST', req.method);
-
- req.on('data', function (chunk) {
- bytesRecieved += chunk.length;
- });
-
- req.on('end', function () {
- server_req_complete = true;
- console.log('request complete from server');
- res.writeHead(200, {'Content-Type': 'text/plain'});
- res.write('hello\n');
- res.end();
- });
-});
-server.listen(common.PORT);
-
-server.on('listening', function () {
- var req = http.request({
- port: common.PROXY_PORT,
- method: 'POST',
- path: '/'
- }, function (res) {
- res.setEncoding('utf8');
- res.on('data', function (chunk) {
- console.log(chunk);
- });
- res.on('end', function () {
- client_res_complete = true;
- server.close();
- });
- });
-
- req.write(new Buffer(N));
- req.end();
-
- common.error('client finished sending request');
-});
-
-process.on('exit', function () {
- assert.equal(N, bytesRecieved);
- assert.equal(true, server_req_complete);
- assert.equal(true, client_res_complete);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-upload.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-upload.js
deleted file mode 100644
index fef706f2..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-client-upload.js
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-
-var sent_body = '';
-var server_req_complete = false;
-var client_res_complete = false;
-
-var server = http.createServer(function (req, res) {
- assert.equal('POST', req.method);
- req.setEncoding('utf8');
-
- req.on('data', function (chunk) {
- console.log('server got: ' + JSON.stringify(chunk));
- sent_body += chunk;
- });
-
- req.on('end', function () {
- server_req_complete = true;
- console.log('request complete from server');
- res.writeHead(200, {'Content-Type': 'text/plain'});
- res.write('hello\n');
- res.end();
- });
-});
-server.listen(common.PORT);
-
-server.on('listening', function () {
- var req = http.request({
- port: common.PROXY_PORT,
- method: 'POST',
- path: '/'
- }, function (res) {
- res.setEncoding('utf8');
- res.on('data', function (chunk) {
- console.log(chunk);
- });
- res.on('end', function () {
- client_res_complete = true;
- server.close();
- });
- });
-
- req.write('1\n');
- req.write('2\n');
- req.write('3\n');
- req.end();
-
- common.error('client finished sending request');
-});
-
-process.on('exit', function () {
- assert.equal('1\n2\n3\n', sent_body);
- assert.equal(true, server_req_complete);
- assert.equal(true, client_res_complete);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-contentLength0.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-contentLength0.js
deleted file mode 100644
index abc3747e..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-contentLength0.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var http = require('http');
-
-// Simple test of Node's HTTP Client choking on a response
-// with a 'Content-Length: 0 ' response header.
-// I.E. a space character after the 'Content-Length' throws an `error` event.
-
-
-var s = http.createServer(function (req, res) {
- res.writeHead(200, {'Content-Length': '0 '});
- res.end();
-});
-s.listen(common.PORT, function () {
-
- var request = http.request({ port: common.PROXY_PORT }, function (response) {
- console.log('STATUS: ' + response.statusCode);
- s.close();
- });
-
- request.end();
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-eof-on-connect.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-eof-on-connect.js
deleted file mode 100644
index d02ee6d1..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-eof-on-connect.js
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var net = require('net');
-var http = require('http');
-
-// This is a regression test for http://github.com/ry/node/issues/#issue/44
-// It is separate from test-http-malformed-request.js because it is only
-// reproduceable on the first packet on the first connection to a server.
-
-var server = http.createServer(function (req, res) {});
-server.listen(common.PORT);
-
-server.on('listening', function () {
- net.createConnection(common.PROXY_PORT).on('connect', function () {
- this.destroy();
- }).on('close', function () {
- server.close();
- });
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-extra-response.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-extra-response.js
deleted file mode 100644
index a3d27462..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-extra-response.js
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-var net = require('net');
-
-// If an HTTP server is broken and sends data after the end of the response,
-// node should ignore it and drop the connection.
-// Demos this bug: https://github.com/ry/node/issues/680
-
-var body = 'hello world\r\n';
-var fullResponse =
- 'HTTP/1.1 500 Internal Server Error\r\n' +
- 'Content-Length: ' + body.length + '\r\n' +
- 'Content-Type: text/plain\r\n' +
- 'Date: Fri + 18 Feb 2011 06:22:45 GMT\r\n' +
- 'Host: 10.20.149.2\r\n' +
- 'Access-Control-Allow-Credentials: true\r\n' +
- 'Server: badly broken/0.1 (OS NAME)\r\n' +
- '\r\n' +
- body;
-
-var gotResponse = false;
-
-
-var server = net.createServer(function (socket) {
- var postBody = '';
-
- socket.setEncoding('utf8');
-
- socket.on('data', function (chunk) {
- postBody += chunk;
-
- if (postBody.indexOf('\r\n') > -1) {
- socket.write(fullResponse);
- // omg, I wrote the response twice, what a terrible HTTP server I am.
- socket.end(fullResponse);
- }
- });
-});
-
-
-server.listen(common.PORT, function () {
- http.get({ port: common.PROXY_PORT }, function (res) {
- var buffer = '';
- console.log('Got res code: ' + res.statusCode);
-
- res.setEncoding('utf8');
- res.on('data', function (chunk) {
- buffer += chunk;
- });
-
- res.on('end', function () {
- console.log('Response ended, read ' + buffer.length + ' bytes');
- assert.equal(body, buffer);
- server.close();
- gotResponse = true;
- });
- });
-});
-
-
-process.on('exit', function () {
- assert.ok(gotResponse);
-});
-
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-request.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-request.js
deleted file mode 100644
index e8c203ef..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-request.js
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-var util = require('util');
-
-
-var body = 'hello world\n';
-
-var server = http.createServer(function (req, res) {
- common.error('req: ' + req.method);
- res.writeHead(200, {'Content-Length': body.length});
- res.end();
- server.close();
-});
-
-var gotEnd = false;
-
-server.listen(common.PORT, function () {
- var request = http.request({
- port: common.PROXY_PORT,
- method: 'HEAD',
- path: '/'
- }, function (response) {
- common.error('response start');
- response.on('end', function () {
- common.error('response end');
- gotEnd = true;
- });
- });
- request.end();
-});
-
-process.on('exit', function () {
- assert.ok(gotEnd);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-response-has-no-body-end.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-response-has-no-body-end.js
deleted file mode 100644
index 6d89bee9..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-response-has-no-body-end.js
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-// libuv-broken
-
-
-var common = require('../common');
-var assert = require('assert');
-
-var http = require('http');
-
-// This test is to make sure that when the HTTP server
-// responds to a HEAD request with data to res.end,
-// it does not send any body.
-
-var server = http.createServer(function (req, res) {
- res.writeHead(200);
- res.end('FAIL'); // broken: sends FAIL from hot path.
-});
-server.listen(common.PORT);
-
-var responseComplete = false;
-
-server.on('listening', function () {
- var req = http.request({
- port: common.PROXY_PORT,
- method: 'HEAD',
- path: '/'
- }, function (res) {
- common.error('response');
- res.on('end', function () {
- common.error('response end');
- server.close();
- responseComplete = true;
- });
- });
- common.error('req');
- req.end();
-});
-
-process.on('exit', function () {
- assert.ok(responseComplete);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-response-has-no-body.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-response-has-no-body.js
deleted file mode 100644
index aa7a281b..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-head-response-has-no-body.js
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-
-var http = require('http');
-
-// This test is to make sure that when the HTTP server
-// responds to a HEAD request, it does not send any body.
-// In this case it was sending '0\r\n\r\n'
-
-var server = http.createServer(function (req, res) {
- res.writeHead(200); // broken: defaults to TE chunked
- res.end();
-});
-server.listen(common.PORT);
-
-var responseComplete = false;
-
-server.on('listening', function () {
- var req = http.request({
- port: common.PROXY_PORT,
- method: 'HEAD',
- path: '/'
- }, function (res) {
- common.error('response');
- res.on('end', function () {
- common.error('response end');
- server.close();
- responseComplete = true;
- });
- });
- common.error('req');
- req.end();
-});
-
-process.on('exit', function () {
- assert.ok(responseComplete);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-host-headers.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-host-headers.js
deleted file mode 100644
index 2dae1182..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-host-headers.js
+++ /dev/null
@@ -1,101 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-// libuv-broken
-
-
-var http = require('http'),
- common = require('../common'),
- assert = require('assert'),
- httpServer = http.createServer(reqHandler);
-
-function reqHandler(req, res) {
- console.log('Got request: ' + req.headers.host + ' ' + req.url);
- if (req.url === '/setHostFalse5') {
- assert.equal(req.headers.host, undefined);
- } else {
- assert.equal(req.headers.host, 'localhost:' + common.PROXY_PORT,
- 'Wrong host header for req[' + req.url + ']: ' +
- req.headers.host);
- }
- res.writeHead(200, {});
- //process.nextTick(function () { res.end('ok'); });
- res.end('ok');
-}
-
-function thrower(er) {
- throw er;
-}
-
-testHttp();
-
-function testHttp() {
-
- console.log('testing http on port ' + common.PROXY_PORT + ' (proxied to ' +
- common.PORT + ')');
-
- var counter = 0;
-
- function cb() {
- counter--;
- console.log('back from http request. counter = ' + counter);
- if (counter === 0) {
- httpServer.close();
- }
- }
-
- httpServer.listen(common.PORT, function (er) {
- console.error('listening on ' + common.PORT);
-
- if (er) throw er;
-
- http.get({ method: 'GET',
- path: '/' + (counter++),
- host: 'localhost',
- //agent: false,
- port: common.PROXY_PORT }, cb).on('error', thrower);
-
- http.request({ method: 'GET',
- path: '/' + (counter++),
- host: 'localhost',
- //agent: false,
- port: common.PROXY_PORT }, cb).on('error', thrower).end();
-
- http.request({ method: 'POST',
- path: '/' + (counter++),
- host: 'localhost',
- //agent: false,
- port: common.PROXY_PORT }, cb).on('error', thrower).end();
-
- http.request({ method: 'PUT',
- path: '/' + (counter++),
- host: 'localhost',
- //agent: false,
- port: common.PROXY_PORT }, cb).on('error', thrower).end();
-
- http.request({ method: 'DELETE',
- path: '/' + (counter++),
- host: 'localhost',
- //agent: false,
- port: common.PROXY_PORT }, cb).on('error', thrower).end();
- });
-}
-
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-many-keep-alive-connections.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-many-keep-alive-connections.js
deleted file mode 100644
index 6b79619b..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-many-keep-alive-connections.js
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-
-var expected = 10000;
-var responses = 0;
-var requests = 0;
-var connection;
-
-var server = http.Server(function (req, res) {
- requests++;
- assert.equal(req.connection, connection);
- res.writeHead(200);
- res.end('hello world\n');
-});
-
-server.once('connection', function (c) {
- connection = c;
-});
-
-server.listen(common.PORT, function () {
- var callee = arguments.callee;
- var request = http.get({
- port: common.PROXY_PORT,
- path: '/',
- headers: {
- 'Connection': 'Keep-alive'
- }
- }, function (res) {
- res.on('end', function () {
- if (++responses < expected) {
- callee();
- } else {
- process.exit();
- }
- });
- }).on('error', function (e) {
- console.log(e.message);
- process.exit(1);
- });
- request.agent.maxSockets = 1;
-});
-
-process.on('exit', function () {
- assert.equal(expected, responses);
- assert.equal(expected, requests);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-multi-line-headers.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-multi-line-headers.js
deleted file mode 100644
index e0eeb2c1..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-multi-line-headers.js
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-
-var http = require('http');
-var net = require('net');
-
-var gotResponse = false;
-
-var server = net.createServer(function (conn) {
- var body = 'Yet another node.js server.';
-
- var response =
- 'HTTP/1.1 200 OK\r\n' +
- 'Connection: close\r\n' +
- 'Content-Length: ' + body.length + '\r\n' +
- 'Content-Type: text/plain;\r\n' +
- ' x-unix-mode=0600;\r\n' +
- ' name=\"hello.txt\"\r\n' +
- '\r\n' +
- body;
-
- conn.write(response, function () {
- conn.destroy();
- server.close();
- });
-});
-
-server.listen(common.PORT, function () {
- http.get({host: '127.0.0.1', port: common.PROXY_PORT}, function (res) {
- assert.equal(res.headers['content-type'],
- 'text/plain;x-unix-mode=0600;name="hello.txt"');
- gotResponse = true;
- });
-});
-
-process.on('exit', function () {
- assert.ok(gotResponse);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-proxy.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-proxy.js
deleted file mode 100644
index fdddb3cd..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-proxy.js
+++ /dev/null
@@ -1,109 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-var url = require('url');
-
-var PROXY_PORT = common.PORT;
-var BACKEND_PORT = common.PORT + 1;
-
-var cookies = [
- 'session_token=; path=/; expires=Sun, 15-Sep-2030 13:48:52 GMT',
- 'prefers_open_id=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT'
-];
-
-var headers = {'content-type': 'text/plain',
- 'set-cookie': cookies,
- 'hello': 'world' };
-
-var backend = http.createServer(function (req, res) {
- common.debug('backend request');
- res.writeHead(200, headers);
- res.write('hello world\n');
- res.end();
-});
-
-var proxy = http.createServer(function (req, res) {
- common.debug('proxy req headers: ' + JSON.stringify(req.headers));
- var proxy_req = http.get({
- port: BACKEND_PORT,
- path: url.parse(req.url).pathname
- }, function (proxy_res) {
-
- common.debug('proxy res headers: ' + JSON.stringify(proxy_res.headers));
-
- assert.equal('world', proxy_res.headers['hello']);
- assert.equal('text/plain', proxy_res.headers['content-type']);
- assert.deepEqual(cookies, proxy_res.headers['set-cookie']);
-
- res.writeHead(proxy_res.statusCode, proxy_res.headers);
-
- proxy_res.on('data', function (chunk) {
- res.write(chunk);
- });
-
- proxy_res.on('end', function () {
- res.end();
- common.debug('proxy res');
- });
- });
-});
-
-var body = '';
-
-var nlistening = 0;
-function startReq() {
- nlistening++;
- if (nlistening < 2) return;
-
- var client = http.get({
- port: common.PROXY_PORT,
- path: '/test'
- }, function (res) {
- common.debug('got res');
- assert.equal(200, res.statusCode);
-
- assert.equal('world', res.headers['hello']);
- assert.equal('text/plain', res.headers['content-type']);
- assert.deepEqual(cookies, res.headers['set-cookie']);
-
- res.setEncoding('utf8');
- res.on('data', function (chunk) { body += chunk; });
- res.on('end', function () {
- proxy.close();
- backend.close();
- common.debug('closed both');
- });
- });
- common.debug('client req');
-}
-
-common.debug('listen proxy');
-proxy.listen(PROXY_PORT, startReq);
-
-common.debug('listen backend');
-backend.listen(BACKEND_PORT, startReq);
-
-process.on('exit', function () {
- assert.equal(body, 'hello world\n');
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-response-close.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-response-close.js
deleted file mode 100644
index b92abb01..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-response-close.js
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-
-var gotEnd = false;
-
-var server = http.createServer(function (req, res) {
- res.writeHead(200);
- res.write('a');
-
- req.on('close', function () {
- console.error('aborted');
- gotEnd = true;
- });
-});
-server.listen(common.PORT);
-
-server.on('listening', function () {
- console.error('make req');
- http.get({
- port: common.PROXY_PORT
- }, function (res) {
- console.error('got res');
- res.on('data', function (data) {
- console.error('destroy res');
- res.destroy();
- server.close();
- });
- });
-});
-
-process.on('exit', function () {
- assert.ok(gotEnd);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-server-multiheaders.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-server-multiheaders.js
deleted file mode 100644
index 6a5b8be7..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-server-multiheaders.js
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-// Verify that the HTTP server implementation handles multiple instances
-// of the same header as per RFC2616: joining the handful of fields by ', '
-// that support it, and dropping duplicates for other fields.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-
-var srv = http.createServer(function (req, res) {
- assert.equal(req.headers.accept, 'abc, def, ghijklmnopqrst');
- assert.equal(req.headers.host, 'foo');
- assert.equal(req.headers['x-foo'], 'bingo');
- assert.equal(req.headers['x-bar'], 'banjo, bango');
-
- res.writeHead(200, {'Content-Type' : 'text/plain'});
- res.end('EOF');
-
- srv.close();
-});
-
-srv.listen(common.PORT, function () {
- http.get({
- host: 'localhost',
- port: common.PROXY_PORT,
- path: '/',
- headers: [
- ['accept', 'abc'],
- ['accept', 'def'],
- ['Accept', 'ghijklmnopqrst'],
- ['host', 'foo'],
- ['Host', 'bar'],
- ['hOst', 'baz'],
- ['x-foo', 'bingo'],
- ['x-bar', 'banjo'],
- ['x-bar', 'bango']
- ]
- });
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-set-cookies.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-set-cookies.js
deleted file mode 100644
index aac29940..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-set-cookies.js
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-
-var nresponses = 0;
-
-var server = http.createServer(function (req, res) {
- if (req.url == '/one') {
- res.writeHead(200, [['set-cookie', 'A'],
- ['content-type', 'text/plain']]);
- res.end('one\n');
- } else {
- res.writeHead(200, [['set-cookie', 'A'],
- ['set-cookie', 'B'],
- ['content-type', 'text/plain']]);
- res.end('two\n');
- }
-});
-server.listen(common.PORT);
-
-server.on('listening', function () {
- //
- // one set-cookie header
- //
- http.get({ port: common.PROXY_PORT, path: '/one' }, function (res) {
- // set-cookie headers are always return in an array.
- // even if there is only one.
- assert.deepEqual(['A'], res.headers['set-cookie']);
- assert.equal('text/plain', res.headers['content-type']);
-
- res.on('data', function (chunk) {
- console.log(chunk.toString());
- });
-
- res.on('end', function () {
- if (++nresponses == 2) {
- server.close();
- }
- });
- });
-
- // two set-cookie headers
-
- http.get({ port: common.PROXY_PORT, path: '/two' }, function (res) {
- assert.deepEqual(['A', 'B'], res.headers['set-cookie']);
- assert.equal('text/plain', res.headers['content-type']);
-
- res.on('data', function (chunk) {
- console.log(chunk.toString());
- });
-
- res.on('end', function () {
- if (++nresponses == 2) {
- server.close();
- }
- });
- });
-
-});
-
-process.on('exit', function () {
- assert.equal(2, nresponses);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-status-code.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-status-code.js
deleted file mode 100644
index dffbaf7c..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-status-code.js
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-// libuv-broken
-
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-
-// Simple test of Node's HTTP ServerResponse.statusCode
-// ServerResponse.prototype.statusCode
-
-var testsComplete = 0;
-var tests = [200, 202, 300, 404, 500];
-var testIdx = 0;
-
-var s = http.createServer(function (req, res) {
- var t = tests[testIdx];
- res.writeHead(t, {'Content-Type': 'text/plain'});
- console.log('--\nserver: statusCode after writeHead: ' + res.statusCode);
- assert.equal(res.statusCode, t);
- res.end('hello world\n');
-});
-
-s.listen(common.PORT, nextTest);
-
-
-function nextTest() {
- if (testIdx + 1 === tests.length) {
- return s.close();
- }
- var test = tests[testIdx];
-
- http.get({ port: common.PROXY_PORT }, function (response) {
- console.log('client: expected status: ' + test);
- console.log('client: statusCode: ' + response.statusCode);
- assert.equal(response.statusCode, test);
- response.on('end', function () {
- testsComplete++;
- testIdx += 1;
- nextTest();
- });
- });
-}
-
-
-process.on('exit', function () {
- assert.equal(4, testsComplete);
-});
-
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-upgrade-server2.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-upgrade-server2.js
deleted file mode 100644
index a5273761..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http-upgrade-server2.js
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-var net = require('net');
-
-var server = http.createServer(function (req, res) {
- common.error('got req');
- throw new Error('This shouldn\'t happen.');
-});
-
-server.on('upgrade', function (req, socket, upgradeHead) {
- common.error('got upgrade event');
- // test that throwing an error from upgrade gets
- // is uncaught
- throw new Error('upgrade error');
-});
-
-var gotError = false;
-
-process.on('uncaughtException', function (e) {
- common.error('got \'clientError\' event');
- assert.equal('upgrade error', e.message);
- gotError = true;
- process.exit(0);
-});
-
-
-server.listen(common.PORT, function () {
- var c = net.createConnection(common.PROXY_PORT);
-
- c.on('connect', function () {
- common.error('client wrote message');
- c.write('GET /blah HTTP/1.1\r\n' +
- 'Upgrade: WebSocket\r\n' +
- 'Connection: Upgrade\r\n' +
- '\r\n\r\nhello world');
- });
-
- c.on('end', function () {
- c.end();
- });
-
- c.on('close', function () {
- common.error('client close');
- server.close();
- });
-});
-
-process.on('exit', function () {
- assert.ok(gotError);
-});
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http.js
deleted file mode 100644
index e082eb2c..00000000
--- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/http-proxy/test/core/simple/test-http.js
+++ /dev/null
@@ -1,108 +0,0 @@
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-var common = require('../common');
-var assert = require('assert');
-var http = require('http');
-var url = require('url');
-
-function p(x) {
- common.error(common.inspect(x));
-}
-
-var responses_sent = 0;
-var responses_recvd = 0;
-var body0 = '';
-var body1 = '';
-
-var server = http.Server(function (req, res) {
- if (responses_sent == 0) {
- assert.equal('GET', req.method);
- assert.equal('/hello', url.parse(req.url).pathname);
-
- console.dir(req.headers);
- assert.equal(true, 'accept' in req.headers);
- assert.equal('*/*', req.headers['accept']);
-
- assert.equal(true, 'foo' in req.headers);
- assert.equal('bar', req.headers['foo']);
- }
-
- if (responses_sent == 1) {
- assert.equal('POST', req.method);
- assert.equal('/world', url.parse(req.url).pathname);
- this.close();
- }
-
- req.on('end', function () {
- res.writeHead(200, {'Content-Type': 'text/plain'});
- res.write('The path was ' + url.parse(req.url).pathname);
- res.end();
- responses_sent += 1;
- });
-
- //assert.equal('127.0.0.1', res.connection.remoteAddress);
-});
-server.listen(common.PORT);
-
-server.on('listening', function () {
- var agent = new http.Agent({ port: common.PROXY_PORT, maxSockets: 1 });
- http.get({
- port: common.PROXY_PORT,
- path: '/hello',
- headers: {'Accept': '*/*', 'Foo': 'bar'},
- agent: agent
- }, function (res) {
- assert.equal(200, res.statusCode);
- responses_recvd += 1;
- res.setEncoding('utf8');
- res.on('data', function (chunk) { body0 += chunk; });
- common.debug('Got /hello response');
- });
-
- setTimeout(function () {
- var req = http.request({
- port: common.PROXY_PORT,
- method: 'POST',
- path: '/world',
- agent: agent
- }, function (res) {
- assert.equal(200, res.statusCode);
- responses_recvd += 1;
- res.setEncoding('utf8');
- res.on('data', function (chunk) { body1 += chunk; });
- common.debug('Got /world response');
- });
- req.end();
- }, 1);
-});
-
-process.on('exit', function () {
- common.debug('responses_recvd: ' + responses_recvd);
- assert.equal(2, responses_recvd);
-
- common.debug('responses_sent: ' + responses_sent);
- assert.equal(2, responses_sent);
-
- assert.equal('The path was /hello', body0);
- assert.equal('The path was /world', body1);
-});
-