@natlibfi/fixugen-http-server 1.1.9-alpha.1 → 1.1.10-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/melinda-node-tests.yml +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.spec.js.map +1 -1
- package/package.json +14 -14
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var _fixugen = _interopRequireDefault(require("@natlibfi/fixugen"));
|
|
|
9
9
|
var _chai = _interopRequireWildcard(require("chai"));
|
|
10
10
|
var _chaiHttp = _interopRequireDefault(require("chai-http"));
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
/**
|
|
15
15
|
*
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_fixura","require","_fixugen","_interopRequireDefault","_chai","_interopRequireWildcard","_chaiHttp","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_fixura","require","_fixugen","_interopRequireDefault","_chai","_interopRequireWildcard","_chaiHttp","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","obj","_default","path","recurse","formatResponse","formatResponseDefault","callback","createApp","mocha","requester","chai","use","chaiHttp","generateTests","httpCallback","useMetadataFile","fixura","failWhenNotFound","afterEach","mochaAfterEach","closeRequester","close","getFixtures","requests","options","requestFixtures","components","reader","READERS","TEXT","responseFixtures","app","request","keepOpen","iterate","testRequests","index","testRequest","slice","method","status","requestParams","requestHeaders","responseHeaders","requestPayload","requestPath","requestMethod","toLowerCase","buffer","query","entries","forEach","k","v","response","send","handleResponse","headers","payload","text","expectedResponsePayload","expect","to","have","key","value","header","equal","exports"],"sources":["../src/index.js"],"sourcesContent":["/**\n*\n* @licstart The following is the entire license notice for the JavaScript code in this file.\n*\n* Generate unit tests for HTTP servers with fixugen\n*\n* Copyright (C) 2020 University Of Helsinki (The National Library Of Finland)\n*\n* This file is part of fixugen-http-server-js\n*\n* fixugen-http-server-js program is free software: you can redistribute it and/or modify\n* it under the terms of the GNU Affero General Public License as\n* published by the Free Software Foundation, either version 3 of the\n* License, or (at your option) any later version.\n*\n* fixugen-http-server-js is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n* GNU Affero General Public License for more details.\n*\n* You should have received a copy of the GNU Affero General Public License\n* along with this program. If not, see <http://www.gnu.org/licenses/>.\n*\n* @licend The above is the entire license notice\n* for the JavaScript code in this file.\n*\n*/\n\nimport {READERS} from '@natlibfi/fixura';\nimport generateTests from '@natlibfi/fixugen';\nimport chai, {expect} from 'chai';\nimport chaiHttp from 'chai-http';\n\nexport default ({path, recurse, formatResponse = formatResponseDefault, callback: createApp, mocha = {}}) => {\n let requester; // eslint-disable-line functional/no-let\n\n chai.use(chaiHttp);\n\n generateTests({\n path, recurse,\n callback: httpCallback,\n useMetadataFile: true,\n fixura: {\n failWhenNotFound: false\n },\n mocha: {\n ...mocha,\n afterEach: mochaAfterEach\n }\n });\n\n async function mochaAfterEach() {\n if (mocha.afterEach) {\n await mocha.afterEach();\n return closeRequester();\n }\n\n closeRequester();\n\n function closeRequester() {\n /* istanbul ignore else: Not easily tested */\n if (requester) {\n return requester.close();\n }\n }\n }\n\n async function httpCallback({getFixtures, requests, ...options}) {\n const requestFixtures = getFixtures({\n components: [/^request[0-9]+\\..*$/u],\n reader: READERS.TEXT\n });\n\n const responseFixtures = getFixtures({\n components: [/^response[0-9]+\\..*$/u],\n reader: READERS.TEXT\n });\n\n const app = await createApp({...options, requests});\n\n requester = chai.request(app).keepOpen();\n\n return iterate(requests);\n\n async function iterate(testRequests, index = 0) {\n const [testRequest] = testRequests.slice(0, 1);\n\n if (testRequest) {\n const {\n method, path, status,\n requestParams = {}, requestHeaders = {}, responseHeaders = {}\n } = testRequest;\n\n const requestPayload = requestFixtures[index];\n const requestPath = path || '/';\n const requestMethod = method.toLowerCase();\n const request = requester[requestMethod](requestPath).buffer(true);\n\n request.query(requestParams);\n\n Object.entries(requestHeaders).forEach(([k, v]) => request.set(k, v));\n\n const response = await request.send(requestPayload);\n await handleResponse(response, status, responseHeaders);\n return iterate(requests.slice(1), index + 1);\n\n }\n\n async function handleResponse(response, status, responseHeaders) {\n const {headers, payload} = await formatResponse(responseHeaders, response.text);\n const expectedResponsePayload = responseFixtures[index];\n\n expect(response).to.have.status(status);\n\n Object.entries(headers).forEach(([key, value]) => expect(response).to.have.header(key, value));\n\n if (expectedResponsePayload) {\n return expect(payload).to.equal(expectedResponsePayload);\n }\n }\n }\n }\n};\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;QAErE,MAAMC,QAAQ,GAAG,MAAMtB,OAAO,CAACuB,IAAI,CAACX,cAAc,CAAC;QACnD,MAAMY,cAAc,CAACF,QAAQ,EAAEd,MAAM,EAAEG,eAAe,CAAC;QACvD,OAAOT,OAAO,CAACX,QAAQ,CAACe,KAAK,CAAC,CAAC,CAAC,EAAEF,KAAK,GAAG,CAAC,CAAC;MAE9C;MAEA,eAAeoB,cAAcA,CAACF,QAAQ,EAAEd,MAAM,EAAEG,eAAe,EAAE;QAC/D,MAAM;UAACc,OAAO;UAAEC;QAAO,CAAC,GAAG,MAAMtD,cAAc,CAACuC,eAAe,EAAEW,QAAQ,CAACK,IAAI,CAAC;QAC/E,MAAMC,uBAAuB,GAAG9B,gBAAgB,CAACM,KAAK,CAAC;QAEvD,IAAAyB,YAAM,EAACP,QAAQ,CAAC,CAACQ,EAAE,CAACC,IAAI,CAACvB,MAAM,CAACA,MAAM,CAAC;QAEvChD,MAAM,CAAC0D,OAAO,CAACO,OAAO,CAAC,CAACN,OAAO,CAAC,CAAC,CAACa,GAAG,EAAEC,KAAK,CAAC,KAAK,IAAAJ,YAAM,EAACP,QAAQ,CAAC,CAACQ,EAAE,CAACC,IAAI,CAACG,MAAM,CAACF,GAAG,EAAEC,KAAK,CAAC,CAAC;QAE9F,IAAIL,uBAAuB,EAAE;UAC3B,OAAO,IAAAC,YAAM,EAACH,OAAO,CAAC,CAACI,EAAE,CAACK,KAAK,CAACP,uBAAuB,CAAC;QAC1D;MACF;IACF;EACF;AACF,CAAC;AAAAQ,OAAA,CAAAlF,OAAA,GAAAe,QAAA;AAED,SAASI,qBAAqBA,CAACoD,OAAO,EAAEC,OAAO,EAAE;EAC/C,OAAO;IAACD,OAAO;IAAEC;EAAO,CAAC;AAC3B","ignoreList":[]}
|
package/dist/index.spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","names":["_express","_interopRequireDefault","require","_","obj","__esModule","default","generateTests","recurse","path","__dirname","callback","getFixture","requests","app","express","iterate","index","request","method","status","responseHeaders","responsePayload","req","res","Object","entries","forEach","k","v","set","send","sendStatus","slice","listen"],"sources":["../src/index.spec.js"],"sourcesContent":["/**\n*\n* @licstart The following is the entire license notice for the JavaScript code in this file.\n*\n* Generate unit tests for HTTP servers with fixugen\n*\n* Copyright (C) 2020 University Of Helsinki (The National Library Of Finland)\n*\n* This file is part of fixugen-http-server-js\n*\n* fixugen-http-server-js program is free software: you can redistribute it and/or modify\n* it under the terms of the GNU Affero General Public License as\n* published by the Free Software Foundation, either version 3 of the\n* License, or (at your option) any later version.\n*\n* fixugen-http-server-js is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n* GNU Affero General Public License for more details.\n*\n* You should have received a copy of the GNU Affero General Public License\n* along with this program. If not, see <http://www.gnu.org/licenses/>.\n*\n* @licend The above is the entire license notice\n* for the JavaScript code in this file.\n*\n*/\n\nimport express from 'express';\nimport generateTests from '.';\n\ngenerateTests({\n recurse: false,\n path: [__dirname, '..', 'test-fixtures'],\n callback: ({getFixture, requests}) => {\n const app = express();\n return iterate(requests);\n\n function iterate(requests, index = 0) {\n const [request] = requests;\n\n if (request) {\n const {method, path, status, responseHeaders = {}} = request;\n const responsePayload = getFixture(`response${index}.txt`) || '';\n\n app[method](path || '/', (req, res) => {\n Object.entries(responseHeaders).forEach(([k, v]) => res.set(k, v));\n\n if (responsePayload) {\n return res.status(status).send(responsePayload);\n }\n\n res.sendStatus(status);\n });\n\n return iterate(requests.slice(1), index + 1);\n }\n\n return app.listen(1337);\n }\n }\n});\n"],"mappings":";;AA4BA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,CAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA8B,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,E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K,GAAG,CAAC,CAAC;MAC9C;MAEA,OAAOH,GAAG,CAACoB,MAAM,CAAC,IAAI,CAAC;IACzB;EACF;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.spec.js","names":["_express","_interopRequireDefault","require","_","obj","__esModule","default","generateTests","recurse","path","__dirname","callback","getFixture","requests","app","express","iterate","index","request","method","status","responseHeaders","responsePayload","req","res","Object","entries","forEach","k","v","set","send","sendStatus","slice","listen"],"sources":["../src/index.spec.js"],"sourcesContent":["/**\n*\n* @licstart The following is the entire license notice for the JavaScript code in this file.\n*\n* Generate unit tests for HTTP servers with fixugen\n*\n* Copyright (C) 2020 University Of Helsinki (The National Library Of Finland)\n*\n* This file is part of fixugen-http-server-js\n*\n* fixugen-http-server-js program is free software: you can redistribute it and/or modify\n* it under the terms of the GNU Affero General Public License as\n* published by the Free Software Foundation, either version 3 of the\n* License, or (at your option) any later version.\n*\n* fixugen-http-server-js is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n* GNU Affero General Public License for more details.\n*\n* You should have received a copy of the GNU Affero General Public License\n* along with this program. If not, see <http://www.gnu.org/licenses/>.\n*\n* @licend The above is the entire license notice\n* for the JavaScript code in this file.\n*\n*/\n\nimport express from 'express';\nimport generateTests from '.';\n\ngenerateTests({\n recurse: false,\n path: [__dirname, '..', 'test-fixtures'],\n callback: ({getFixture, requests}) => {\n const app = express();\n return iterate(requests);\n\n function iterate(requests, index = 0) {\n const [request] = requests;\n\n if (request) {\n const {method, path, status, responseHeaders = {}} = request;\n const responsePayload = getFixture(`response${index}.txt`) || '';\n\n app[method](path || '/', (req, res) => {\n Object.entries(responseHeaders).forEach(([k, v]) => res.set(k, v));\n\n if (responsePayload) {\n return res.status(status).send(responsePayload);\n }\n\n res.sendStatus(status);\n });\n\n return iterate(requests.slice(1), index + 1);\n }\n\n return app.listen(1337);\n }\n }\n});\n"],"m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,CAACA,MAAM,CAAC,CAACW,IAAI,CAACT,eAAe,CAAC;UACjD;UAEAE,GAAG,CAACQ,UAAU,CAACZ,MAAM,CAAC;QACxB,CAAC,CAAC;QAEF,OAAOJ,OAAO,CAACH,QAAQ,CAACoB,KAAK,CAAC,CAAC,CAAC,EAAEhB,KAAK,GAAG,CAAC,CAAC;MAC9C;MAEA,OAAOH,GAAG,CAACoB,MAAM,CAAC,IAAI,CAAC;IACzB;EACF;AACF,CAAC,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "git@github.com:natlibfi/fixugen-http-server-js.git"
|
|
15
15
|
},
|
|
16
16
|
"license": "LGPL-3.0+",
|
|
17
|
-
"version": "1.1.
|
|
17
|
+
"version": "1.1.10-alpha.2",
|
|
18
18
|
"main": "dist/index.js",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=18"
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
"dev:debug": "cross-env LOG_LEVEL=debug DEBUG=@natlibfi/* NODE_ENV=test nodemon"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@natlibfi/fixugen": "^2.0.
|
|
40
|
-
"@natlibfi/fixura": "^3.0.
|
|
39
|
+
"@natlibfi/fixugen": "^2.0.4",
|
|
40
|
+
"@natlibfi/fixura": "^3.0.4",
|
|
41
41
|
"chai-http": "^4.4.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@babel/cli": "^7.
|
|
45
|
-
"@babel/core": "^7.
|
|
46
|
-
"@babel/node": "^7.
|
|
47
|
-
"@babel/preset-env": "^7.
|
|
48
|
-
"@babel/register": "^7.
|
|
49
|
-
"@natlibfi/eslint-config-melinda-backend": "^3.0.
|
|
44
|
+
"@babel/cli": "^7.24.1",
|
|
45
|
+
"@babel/core": "^7.24.4",
|
|
46
|
+
"@babel/node": "^7.23.9",
|
|
47
|
+
"@babel/preset-env": "^7.24.4",
|
|
48
|
+
"@babel/register": "^7.23.7",
|
|
49
|
+
"@natlibfi/eslint-config-melinda-backend": "^3.0.4",
|
|
50
50
|
"babel-plugin-istanbul": "^6.1.1",
|
|
51
|
-
"chai": "^4.
|
|
51
|
+
"chai": "^4.4.1",
|
|
52
52
|
"cross-env": "^7.0.3",
|
|
53
|
-
"eslint": "^8.
|
|
54
|
-
"express": "^4.
|
|
55
|
-
"mocha": "^10.
|
|
53
|
+
"eslint": "^8.57.0",
|
|
54
|
+
"express": "^4.19.2",
|
|
55
|
+
"mocha": "^10.4.0",
|
|
56
56
|
"node-fetch": "^2.7.0",
|
|
57
|
-
"nodemon": "^3.0
|
|
57
|
+
"nodemon": "^3.1.0",
|
|
58
58
|
"nyc": "^15.1.0"
|
|
59
59
|
},
|
|
60
60
|
"eslintConfig": {
|