diff --git a/genoatt.sh b/genoatt.sh index 70176cce..f10e045a 100644 --- a/genoatt.sh +++ b/genoatt.sh @@ -25,7 +25,7 @@ HELP run_oatt() { rm ./test/v*.js - oatts generate --host $remote -s ./openapi.yaml -w test + oatts generate --host $remote -m $scheme -s ./openapi.yaml -w test yarn dlx eslint --quiet --fix ./test > genoatt.log # oatts is a bit silly in picking its variables. We need to make sure that we're @@ -53,6 +53,9 @@ run_oatt() { test=0 remote=localhost:3001 +# The remote hosts 301-redirect http -> https, so generated tests must use the right +# scheme. oatts defaults to http when the flag is absent. +scheme=http while getopts "htldpa" opt; do case $opt in @@ -68,12 +71,15 @@ remote=localhost:3001 ;; d) remote=api-dev.neotomadb.org + scheme=https ;; p) remote=api.neotomadb.org + scheme=https ;; a) remote=neotomaapi-env.eba-wd29jtvf.us-east-2.elasticbeanstalk.com + scheme=https ;; *) echo You didn\'t use the correct flag. diff --git a/openapi.yaml b/openapi.yaml index fe64fa54..91482c3f 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -2345,6 +2345,8 @@ components: type: array geography: $ref: '#/components/schemas/geography' + recdatecreated: + $ref: '#/components/schemas/recdatecreated' sitedescription: $ref: '#/components/schemas/sitedescription' siteid: @@ -3345,6 +3347,38 @@ paths: tags: - Lithology metadata - v2.0 + /v2.0/data/datasets/{datasetid}/assays: + get: + description: Returns the aeDNA assays (and their sequencing libraries) linked to a dataset. + parameters: + - $ref: '#/components/parameters/datasetidPath' + responses: + '200': + content: + application/json: + schema: + type: object + description: Assays + summary: aeDNA assay and library metadata for a dataset. + tags: + - Assay metadata + - v2.0 + /v2.0/data/datasets/{datasetid}/projects: + get: + description: Returns the research projects (and their participants) linked to a dataset. + parameters: + - $ref: '#/components/parameters/datasetidPath' + responses: + '200': + content: + application/json: + schema: + type: object + description: Projects + summary: Project and participant metadata for a dataset. + tags: + - Project metadata + - v2.0 /v2.0/data/datasets/{datasetid}/publications: get: description: Returns publications data associated with specific datasets. diff --git a/openapi/components/schemas/schemas.yml b/openapi/components/schemas/schemas.yml index 9fb4b967..cbb60353 100644 --- a/openapi/components/schemas/schemas.yml +++ b/openapi/components/schemas/schemas.yml @@ -1556,6 +1556,8 @@ sitesv2: type: array geography: $ref: '#/components/schemas/geography' + recdatecreated: + $ref: '#/components/schemas/recdatecreated' sitedescription: $ref: '#/components/schemas/sitedescription' siteid: diff --git a/openapi/paths/v20/data.yml b/openapi/paths/v20/data.yml index 8cb881a4..a79e3254 100644 --- a/openapi/paths/v20/data.yml +++ b/openapi/paths/v20/data.yml @@ -333,6 +333,38 @@ tags: - Lithology metadata - v2.0 +/v2.0/data/datasets/{datasetid}/assays: + get: + description: Returns the aeDNA assays (and their sequencing libraries) linked to a dataset. + parameters: + - $ref: '#/components/parameters/datasetidPath' + responses: + '200': + content: + application/json: + schema: + type: object + description: Assays + summary: aeDNA assay and library metadata for a dataset. + tags: + - Assay metadata + - v2.0 +/v2.0/data/datasets/{datasetid}/projects: + get: + description: Returns the research projects (and their participants) linked to a dataset. + parameters: + - $ref: '#/components/parameters/datasetidPath' + responses: + '200': + content: + application/json: + schema: + type: object + description: Projects + summary: Project and participant metadata for a dataset. + tags: + - Project metadata + - v2.0 /v2.0/data/datasets/{datasetid}/publications: get: description: Returns publications data associated with specific datasets. diff --git a/package.json b/package.json index 536dea2a..a6ae6291 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "scripts": { "start": "NODE_ENV=production nodemon --legacy-watch app.js", "dev": "NODE_ENV=development nodemon --legacy-watch app.js", - "test": "node ./node_modules/mocha/bin/mocha --config=test/.mocharc.yml --reporter-options reportDir=public,reportFilename=tests", + "test": "APIPATH=${APIPATH:-http://localhost:3001/} node ./node_modules/mocha/bin/mocha --config=test/.mocharc.yml --reporter-options reportDir=public,reportFilename=tests", "build:openapi": "(cd ./openapi && node ./scripts/build-openapi.js)", "validate:openapi": "yarn build:openapi && bash genoatt.sh && sleep 4 && bash runmochabatch.sh" }, diff --git a/public/tests.html b/public/tests.html index 1b4fc9b3..c87ecf89 100644 --- a/public/tests.html +++ b/public/tests.html @@ -1,2 +1,2 @@ -Mochawesome Report
\ No newline at end of file +Mochawesome Report
\ No newline at end of file diff --git a/public/tests.json b/public/tests.json index 1e848ffb..893dab42 100644 --- a/public/tests.json +++ b/public/tests.json @@ -1,16 +1,16 @@ { "stats": { - "suites": 163, - "tests": 149, - "passes": 14, + "suites": 167, + "tests": 151, + "passes": 145, "pending": 1, - "failures": 134, - "start": "2026-06-03T20:20:49.245Z", - "end": "2026-06-03T20:20:49.516Z", - "duration": 271, - "testsRegistered": 149, - "passPercent": 9.45945945945946, - "pendingPercent": 0.6711409395973155, + "failures": 5, + "start": "2026-08-06T22:32:33.174Z", + "end": "2026-08-06T22:38:25.580Z", + "duration": 352406, + "testsRegistered": 151, + "passPercent": 96.66666666666667, + "pendingPercent": 0.6622516556291391, "other": 0, "hasOther": false, "skipped": 0, @@ -18,7 +18,7 @@ }, "results": [ { - "uuid": "aa055bd4-5737-4bf7-9f79-189e0936f7dc", + "uuid": "03025ee3-fc8d-48ea-8865-c30898e935bf", "title": "", "fullFile": "", "file": "", @@ -28,7 +28,7 @@ "title": "\"after each\" hook in \"{root}\"", "fullTitle": "\"after each\" hook in \"{root}\"", "timedOut": false, - "duration": 0, + "duration": 1, "state": null, "speed": null, "pass": false, @@ -37,8 +37,8 @@ "context": null, "code": "checkForUnfulfilledExpectations.call(this);\nrecordedExpects = [];", "err": {}, - "uuid": "f8201ce6-d0a4-43eb-89bc-0db2d3481a94", - "parentUUID": "aa055bd4-5737-4bf7-9f79-189e0936f7dc", + "uuid": "b057d3b6-4b3d-462c-a4f6-62c8746e9d59", + "parentUUID": "03025ee3-fc8d-48ea-8865-c30898e935bf", "isHook": true, "skipped": false } @@ -46,242 +46,645 @@ "tests": [], "suites": [ { - "uuid": "e6f109d0-0bc1-4df2-9a8e-2bfce04a7aa1", - "title": "tests for /v2.0/data/sites/{siteid}/datasets_elc", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-datasets_elc-test.js", - "file": "/test/v2.0-data-sites-{siteid}-datasets_elc-test.js", + "uuid": "ebcb273c-a56a-417f-8c47-0e48fa1f4cd2", + "title": "Get chronology data by datasetid:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/chronologies.js", + "file": "/test/chronologies.js", "beforeHooks": [], "afterHooks": [], - "tests": [], - "suites": [ + "tests": [ { - "uuid": "c11c94d8-9eef-4005-a490-d93793cab12e", - "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-datasets_elc-test.js", - "file": "/test/v2.0-data-sites-{siteid}-datasets_elc-test.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "should respond 200 for \"An array of datasets.\"", - "fullTitle": "tests for /v2.0/data/sites/{siteid}/datasets_elc tests for get should respond 200 for \"An array of datasets.\"", - "timedOut": false, - "duration": 28, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/datasets_elc', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "82ae46cb-3a62-4243-ad0a-84623225a9e6", - "parentUUID": "c11c94d8-9eef-4005-a490-d93793cab12e", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "82ae46cb-3a62-4243-ad0a-84623225a9e6" - ], - "pending": [], - "skipped": [], - "duration": 28, - "root": false, - "rootEmpty": false, - "_timeout": 900000 + "title": "A call to two datasets returns two datasets of data:", + "fullTitle": "Get chronology data by datasetid: A call to two datasets returns two datasets of data:", + "timedOut": false, + "duration": 1, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets/684,1001/chronologies')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body['data'].length === 4;\n })\n .expect(200, done());", + "err": {}, + "uuid": "a709c5f9-fcea-4240-b975-0f5c8cd3f11c", + "parentUUID": "ebcb273c-a56a-417f-8c47-0e48fa1f4cd2", + "isHook": false, + "skipped": false } ], - "passes": [], + "suites": [], + "passes": [ + "a709c5f9-fcea-4240-b975-0f5c8cd3f11c" + ], "failures": [], "pending": [], "skipped": [], - "duration": 0, + "duration": 1, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 5000 }, { - "uuid": "f1c1b7e7-f52d-4eac-b596-4334fb6f70c5", - "title": "tests for /v2.0/data/datasets/{datasetid}/doi", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-doi-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-doi-test.js", + "uuid": "964095cb-69c0-4491-ba5c-3867244da07a", + "title": "Get contact data:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/contacts.js", + "file": "/test/contacts.js", "beforeHooks": [], "afterHooks": [], - "tests": [], - "suites": [ + "tests": [ { - "uuid": "06ffa1a2-97c3-4559-9acf-cf13d32d30f2", - "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-doi-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-doi-test.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "should respond 200 for \"DOI\"", - "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/doi tests for get should respond 200 for \"DOI\"", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/doi', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "685e80da-b451-46cb-9fb5-5839a7a493ae", - "parentUUID": "06ffa1a2-97c3-4559-9acf-cf13d32d30f2", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "685e80da-b451-46cb-9fb5-5839a7a493ae" - ], - "pending": [], - "skipped": [], - "duration": 2, - "root": false, - "rootEmpty": false, - "_timeout": 900000 + "title": "The default limit of 25 should be reached for contact data:", + "fullTitle": "Get contact data: The default limit of 25 should be reached for contact data:", + "timedOut": false, + "duration": 571, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/contacts/?contactstatus=retired')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data.length, 25);\n done();\n });", + "err": {}, + "uuid": "074bc1f6-9e54-41d7-8fb9-93e68d1b3bc0", + "parentUUID": "964095cb-69c0-4491-ba5c-3867244da07a", + "isHook": false, + "skipped": false + }, + { + "title": "The example in the swagger should return an object:", + "fullTitle": "Get contact data: The example in the swagger should return an object:", + "timedOut": false, + "duration": 81, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/contacts?familyname=Grimm&contactstatus=active&limit=25')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data[0]['familyname'], 'Grimm');\n done();\n });", + "err": {}, + "uuid": "a8e76d4c-2b58-4a67-8916-d1be33b38a8b", + "parentUUID": "964095cb-69c0-4491-ba5c-3867244da07a", + "isHook": false, + "skipped": false + }, + { + "title": "Contact queries should be case insensitive:", + "fullTitle": "Get contact data: Contact queries should be case insensitive:", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/contacts/?contactstatus=Retired')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data.length, 25);\n done();\n });", + "err": {}, + "uuid": "36d5e1cd-1c26-4ce4-b4ac-d442485b8cd6", + "parentUUID": "964095cb-69c0-4491-ba5c-3867244da07a", + "isHook": false, + "skipped": false + }, + { + "title": "Changing the limit should change the number of contacts retrieved:", + "fullTitle": "Get contact data: Changing the limit should change the number of contacts retrieved:", + "timedOut": false, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/contacts/?status=retired&limit=30')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data.length, 30);\n done();\n });", + "err": {}, + "uuid": "3e1fddc9-434d-4e70-834c-874d0d7e143a", + "parentUUID": "964095cb-69c0-4491-ba5c-3867244da07a", + "isHook": false, + "skipped": false + }, + { + "title": "A single contact (12) should be returned.", + "fullTitle": "Get contact data: A single contact (12) should be returned.", + "timedOut": false, + "duration": 70, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/contacts/12')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data[0]['contactid'], 12);\n done();\n });", + "err": {}, + "uuid": "721d048e-8f81-4382-9654-5b9c37eed8a3", + "parentUUID": "964095cb-69c0-4491-ba5c-3867244da07a", + "isHook": false, + "skipped": false + }, + { + "title": "All contacts from datasets should be returned.", + "fullTitle": "Get contact data: All contacts from datasets should be returned.", + "timedOut": false, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets/12,13/contacts')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data.length, 2);\n done();\n });", + "err": {}, + "uuid": "660fd082-ffbb-4398-9978-6c05f06841a9", + "parentUUID": "964095cb-69c0-4491-ba5c-3867244da07a", + "isHook": false, + "skipped": false + }, + { + "title": "The length of returned contacts should be equivalent to the number of datasets.", + "fullTitle": "Get contact data: The length of returned contacts should be equivalent to the number of datasets.", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets/12,13/contacts')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n const test = [];\n assert.strictEqual(test.length, 0);\n done();\n });", + "err": {}, + "uuid": "452ac559-3fb0-4d42-a148-e4589a720cc4", + "parentUUID": "964095cb-69c0-4491-ba5c-3867244da07a", + "isHook": false, + "skipped": false + }, + { + "title": "The length of returned contacts should be equivalent to the number of sites.", + "fullTitle": "Get contact data: The length of returned contacts should be equivalent to the number of sites.", + "timedOut": false, + "duration": 70, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets/102,1435,1,27/contacts')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(Object.keys(res.body.data).length, 4);\n done();\n });", + "err": {}, + "uuid": "6f5f1be3-5abd-41ab-a2d4-3aad1c683d45", + "parentUUID": "964095cb-69c0-4491-ba5c-3867244da07a", + "isHook": false, + "skipped": false } ], - "passes": [], + "suites": [], + "passes": [ + "074bc1f6-9e54-41d7-8fb9-93e68d1b3bc0", + "a8e76d4c-2b58-4a67-8916-d1be33b38a8b", + "36d5e1cd-1c26-4ce4-b4ac-d442485b8cd6", + "3e1fddc9-434d-4e70-834c-874d0d7e143a", + "721d048e-8f81-4382-9654-5b9c37eed8a3", + "660fd082-ffbb-4398-9978-6c05f06841a9", + "452ac559-3fb0-4d42-a148-e4589a720cc4", + "6f5f1be3-5abd-41ab-a2d4-3aad1c683d45" + ], "failures": [], "pending": [], "skipped": [], - "duration": 0, + "duration": 1080, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 5000 }, { - "uuid": "5b6d05c0-139f-495e-a6a2-b8fced117858", - "title": "tests for /v1.5/data/datasets/{datasetid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-datasets-{datasetid}-test.js", - "file": "/test/v1.5-data-datasets-{datasetid}-test.js", + "uuid": "216978d5-bce5-4805-8bb0-718fde9a0efc", + "title": "Get datasets any number of ways:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/datasets.js", + "file": "/test/datasets.js", "beforeHooks": [], "afterHooks": [], - "tests": [], - "suites": [ + "tests": [ { - "uuid": "b743e9bd-6ea2-42f1-ae58-a9fb6e0a0656", - "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-datasets-{datasetid}-test.js", - "file": "/test/v1.5-data-datasets-{datasetid}-test.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "should respond 200 for \"An array of datasets.\"", - "fullTitle": "tests for /v1.5/data/datasets/{datasetid} tests for get should respond 200 for \"An array of datasets.\"", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/data/datasets/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "41ecd6db-0451-4422-89dc-192fee927fce", - "parentUUID": "b743e9bd-6ea2-42f1-ae58-a9fb6e0a0656", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "41ecd6db-0451-4422-89dc-192fee927fce" - ], - "pending": [], - "skipped": [], - "duration": 2, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], + "title": "Asking for the datasets associated with Lake Tulane work:", + "fullTitle": "Get datasets any number of ways: Asking for the datasets associated with Lake Tulane work:", + "timedOut": false, + "duration": 1107, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/sites/2570/datasets')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).includes('site');\n })\n .expect(function(res) {\n return res.body['data'][0].site.siteid === 2570;\n })\n .expect(function(res) {\n return Object.keys(res.body['data'][0]['site']['datasets'][0]).includes('datasetid');\n })\n .expect(200, done);", + "err": {}, + "uuid": "41e41add-1b97-4c26-84cc-c7049230df80", + "parentUUID": "216978d5-bce5-4805-8bb0-718fde9a0efc", + "isHook": false, + "skipped": false + }, + { + "title": "Get dataset by singular id & return same id:", + "fullTitle": "Get datasets any number of ways: Get dataset by singular id & return same id:", + "timedOut": false, + "duration": 1047, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets/12')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['siteid'] === 12;\n })\n .expect(200, done);", + "err": {}, + "uuid": "3473f9b7-39a1-40b7-a14c-ba88f62b52c5", + "parentUUID": "216978d5-bce5-4805-8bb0-718fde9a0efc", + "isHook": false, + "skipped": false + }, + { + "title": "Get dataset from siteid gives us siteids back and datasets:", + "fullTitle": "Get datasets any number of ways: Get dataset from siteid gives us siteids back and datasets:", + "timedOut": false, + "duration": 931, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/sites/123/datasets')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body['data'][0].site.siteid === 123;\n })\n .expect(function(res) {\n return res.body['data'][0].site.datasets.length > 0;\n })\n .expect(200, done);", + "err": {}, + "uuid": "2e65688b-8f7b-45c1-8125-b678415490bf", + "parentUUID": "216978d5-bce5-4805-8bb0-718fde9a0efc", + "isHook": false, + "skipped": false + }, + { + "title": "Get dataset by comma separated ids & return same ids:", + "fullTitle": "Get datasets any number of ways: Get dataset by comma separated ids & return same ids:", + "timedOut": false, + "duration": 1485, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets/?siteid=12,13,14')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data']).length > 0;\n })\n .expect(200, done);", + "err": {}, + "uuid": "dfdd7662-d516-4c41-a9cc-71c11dd8906a", + "parentUUID": "216978d5-bce5-4805-8bb0-718fde9a0efc", + "isHook": false, + "skipped": false + }, + { + "title": "Returns all key elements of the object:", + "fullTitle": "Get datasets any number of ways: Returns all key elements of the object:", + "timedOut": false, + "duration": 6, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets/12')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data']).includes('site', 'dataset');\n })\n .expect(200, done);", + "err": {}, + "uuid": "9328c893-8c92-4d49-88e9-b0f9b35ecb01", + "parentUUID": "216978d5-bce5-4805-8bb0-718fde9a0efc", + "isHook": false, + "skipped": false + }, + { + "title": "Limits work:", + "fullTitle": "Get datasets any number of ways: Limits work:", + "timedOut": false, + "duration": 39825, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets/?altmax=3&limit=10')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data']).length == 10;\n })\n .expect(200, done);", + "err": {}, + "uuid": "a02fe948-fc77-40ee-bfba-4c0a0be3b669", + "parentUUID": "216978d5-bce5-4805-8bb0-718fde9a0efc", + "isHook": false, + "skipped": false + }, + { + "title": "Works with age validation:", + "fullTitle": "Get datasets any number of ways: Works with age validation:", + "timedOut": false, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, + "fail": false, + "pending": true, + "context": null, + "code": "", + "err": {}, + "uuid": "ca80e6ca-f702-449d-9716-03b3129edff8", + "parentUUID": "216978d5-bce5-4805-8bb0-718fde9a0efc", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "41e41add-1b97-4c26-84cc-c7049230df80", + "3473f9b7-39a1-40b7-a14c-ba88f62b52c5", + "2e65688b-8f7b-45c1-8125-b678415490bf", + "dfdd7662-d516-4c41-a9cc-71c11dd8906a", + "9328c893-8c92-4d49-88e9-b0f9b35ecb01", + "a02fe948-fc77-40ee-bfba-4c0a0be3b669" + ], + "failures": [], + "pending": [ + "ca80e6ca-f702-449d-9716-03b3129edff8" + ], "skipped": [], - "duration": 0, + "duration": 44401, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 50000 }, { - "uuid": "7beeee6f-1e6b-4ed9-881c-5c1f9447abf4", - "title": "tests for /v2.0/data/datasets/{datasetid}/lithology", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-lithology-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-lithology-test.js", + "uuid": "603c774e-3b54-4ffd-a229-bf8e35c11560", + "title": "Tests for Explorer App Services", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/explorerCalls.js", + "file": "/test/explorerCalls.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "978d2ffa-c1af-41fa-8b21-9afc042155b7", + "uuid": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-lithology-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-lithology-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/explorerCalls.js", + "file": "/test/explorerCalls.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Lithology\"", - "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/lithology tests for get should respond 200 for \"Lithology\"", + "title": "should respond 200 for TaxaGroupTypes", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaxaGroupTypes", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 136, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/lithology', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "42aa59ba-e370-409e-b9a3-3ec3966bef10", - "parentUUID": "978d2ffa-c1af-41fa-8b21-9afc042155b7", + "code": "const response = request('get', appServicesLocation + '/TaxaGroupTypes', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "b47ee7e2-c34d-4802-8d5b-a84c43c4e02b", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for TaphonomyTypes", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaphonomyTypes", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/TaphonomyTypes', {\n qs: {\n taphonomicSystemId: 1,\n },\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "c5d2357b-f213-44e3-a4f9-bbf46b7ec8da", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for TaphonomySystems", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaphonomySystems", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/TaphonomySystems', {\n qs: {\n datasetTypeId: 1,\n },\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "bb6b8de3-c2c1-402b-9150-d96399ab91bd", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for ElementTypes", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for ElementTypes", + "timedOut": false, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/ElementTypes', {\n qs: {\n taxagroupid: 1,\n },\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "bb48c44f-863f-42f5-9fcc-247ab423cbf6", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for TaxaInDatasets (a slow service)", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaxaInDatasets (a slow service)", + "timedOut": false, + "duration": 3304, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/TaxaInDatasets', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "8ae4e88d-5fa8-41e2-b05c-1ae5a209b108", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for collectionTypes", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for collectionTypes", + "timedOut": false, + "duration": 68, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/collectionTypes', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "cbdae69d-fa53-40fd-a7e6-ff9db420b447", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for keywords", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for keywords", + "timedOut": false, + "duration": 68, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/keywords', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "f3a4ac21-e54c-49dc-9c59-cd8d55c0a70f", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for authorpis", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for authorpis", + "timedOut": false, + "duration": 430, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/authorpis', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "ff121cb4-eebe-4d64-9562-d9fc583d0740", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for DepositionalEnvironments", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for DepositionalEnvironments", + "timedOut": false, + "duration": 7, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/DepositionalEnvironments', {\n qs: {idProperty: 1},\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "a56b280a-576d-492b-a015-52b99352e75f", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for Search", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for Search", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('post', appServicesLocation + '/Search', {\n qs: {search: '{\"datasetTypeId\":21}',\n time: true},\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "afc99809-3f0c-4959-9670-9ede237cdad3", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for DatasetTypes", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for DatasetTypes", + "timedOut": false, + "duration": 91, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/DatasetTypes', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "abbcc7a9-a29f-4b44-b947-52b8bd14c509", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for RelativeAges", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for RelativeAges", + "timedOut": false, + "duration": 137, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/RelativeAges', {\n qs: {agescaleid: 1},\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "4b3596eb-f373-480c-9225-02c6a6fac335", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", + "isHook": false, + "skipped": false + }, + { + "title": "should respond 200 for Geochronologies", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for Geochronologies", + "timedOut": false, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "const response = request('get', appServicesLocation + '/Geochronologies', {\n qs: {datasetId: 1001},\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "e2b81352-649d-413a-ac32-f58caa3862ea", + "parentUUID": "d3b78e38-71b2-4365-8ad2-3805c8853e0d", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "42aa59ba-e370-409e-b9a3-3ec3966bef10" - ], + "passes": [ + "b47ee7e2-c34d-4802-8d5b-a84c43c4e02b", + "c5d2357b-f213-44e3-a4f9-bbf46b7ec8da", + "bb6b8de3-c2c1-402b-9150-d96399ab91bd", + "bb48c44f-863f-42f5-9fcc-247ab423cbf6", + "8ae4e88d-5fa8-41e2-b05c-1ae5a209b108", + "cbdae69d-fa53-40fd-a7e6-ff9db420b447", + "f3a4ac21-e54c-49dc-9c59-cd8d55c0a70f", + "ff121cb4-eebe-4d64-9562-d9fc583d0740", + "a56b280a-576d-492b-a015-52b99352e75f", + "afc99809-3f0c-4959-9670-9ede237cdad3", + "abbcc7a9-a29f-4b44-b947-52b8bd14c509", + "4b3596eb-f373-480c-9225-02c6a6fac335", + "e2b81352-649d-413a-ac32-f58caa3862ea" + ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 4397, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 12000 } ], "passes": [], @@ -291,196 +694,876 @@ "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 12000 }, { - "uuid": "d87ac3c3-7393-4e6d-855d-0d09279e88cb", - "title": "tests for /v2.0/data/spatial/lakes", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-lakes-test.js", - "file": "/test/v2.0-data-spatial-lakes-test.js", + "uuid": "388f66e1-f8f3-4daf-af5a-826d1a529172", + "title": "Get geopolitical data:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/geopolitical.js", + "file": "/test/geopolitical.js", "beforeHooks": [], "afterHooks": [], - "tests": [], - "suites": [ + "tests": [ { - "uuid": "af6b8dda-1124-4967-ba91-ae40c601708b", - "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-lakes-test.js", - "file": "/test/v2.0-data-spatial-lakes-test.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "should respond 200 for \"An object containing all matched lakes within some buffer distance of a site. Data derived from the [HydroLakes database](https://www.hydrosheds.org/products/hydrolakes):
* Messager, M.L., Lehner, B., Grill, G., Nedeva, I., Schmitt, O. (2016). Estimating the volume and age of water stored in global lakes using a geo-statistical approach. *Nature Communications*, 7: 13603. doi: [10.1038/ncomms13603](https://doi.org/10.1038/ncomms13603) \"", - "fullTitle": "tests for /v2.0/data/spatial/lakes tests for get should respond 200 for \"An object containing all matched lakes within some buffer distance of a site. Data derived from the [HydroLakes database](https://www.hydrosheds.org/products/hydrolakes):
* Messager, M.L., Lehner, B., Grill, G., Nedeva, I., Schmitt, O. (2016). Estimating the volume and age of water stored in global lakes using a geo-statistical approach. *Nature Communications*, 7: 13603. doi: [10.1038/ncomms13603](https://doi.org/10.1038/ncomms13603) \"", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/lakes', { \n 'qs': {\"siteid\":33458,\"buffer\":2042,\"prec\": 1000,\"proj\": 4326},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "3e62415c-8711-419b-a3cf-4e3cfe2ccd79", - "parentUUID": "af6b8dda-1124-4967-ba91-ae40c601708b", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "3e62415c-8711-419b-a3cf-4e3cfe2ccd79" - ], - "pending": [], - "skipped": [], - "duration": 2, - "root": false, - "rootEmpty": false, - "_timeout": 900000 + "title": "An empty query returns a valid response.", + "fullTitle": "Get geopolitical data: An empty query returns a valid response.", + "timedOut": false, + "duration": 76, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/geopoliticalunits/')\n .set('Accept', 'application/json')\n .expect(200, done);", + "err": {}, + "uuid": "e72cbe0d-5a76-4f0e-ab7f-b29b4471edda", + "parentUUID": "388f66e1-f8f3-4daf-af5a-826d1a529172", + "isHook": false, + "skipped": false + }, + { + "title": "The default limit of 25 should be reached for country level data:", + "fullTitle": "Get geopolitical data: The default limit of 25 should be reached for country level data:", + "timedOut": false, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/geopoliticalunits/?rank=1')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.equal(res.body.data.length, 25);\n done();\n });", + "err": {}, + "uuid": "6f2b6dc0-046f-4fa0-aeeb-8a2aaa2af3cf", + "parentUUID": "388f66e1-f8f3-4daf-af5a-826d1a529172", + "isHook": false, + "skipped": false + }, + { + "title": "Changing the limit should change the number of countries retrieved:", + "fullTitle": "Get geopolitical data: Changing the limit should change the number of countries retrieved:", + "timedOut": false, + "duration": 70, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/geopoliticalunits/?rank=1&limit=30')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.equal(res.body.data.length, 30);\n done();\n });", + "err": {}, + "uuid": "50247cfa-77c9-4d64-b75b-9b5048e654d4", + "parentUUID": "388f66e1-f8f3-4daf-af5a-826d1a529172", + "isHook": false, + "skipped": false + }, + { + "title": "A single geopolitical unit (12) should be returned.", + "fullTitle": "Get geopolitical data: A single geopolitical unit (12) should be returned.", + "timedOut": false, + "duration": 70, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/geopoliticalunits/12')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.equal(res.body.data[0]['geopoliticalid'], 12);\n done();\n });", + "err": {}, + "uuid": "372eecad-fc17-42b6-815f-9c912c9ed50c", + "parentUUID": "388f66e1-f8f3-4daf-af5a-826d1a529172", + "isHook": false, + "skipped": false } ], - "passes": [], + "suites": [], + "passes": [ + "e72cbe0d-5a76-4f0e-ab7f-b29b4471edda", + "6f2b6dc0-046f-4fa0-aeeb-8a2aaa2af3cf", + "50247cfa-77c9-4d64-b75b-9b5048e654d4", + "372eecad-fc17-42b6-815f-9c912c9ed50c" + ], "failures": [], "pending": [], "skipped": [], - "duration": 0, + "duration": 287, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 5000 }, { - "uuid": "d43f766d-9759-47a4-9e62-28d8dec11693", - "title": "tests for /v2.0/data/sites/{siteid}/contacts", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-contacts-test.js", - "file": "/test/v2.0-data-sites-{siteid}-contacts-test.js", + "uuid": "85fbd1b1-bcce-43cb-9487-9ff45fcf1527", + "title": "Any path goes to the api documentation:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/neotoma_test.js", + "file": "/test/neotoma_test.js", "beforeHooks": [], "afterHooks": [], - "tests": [], - "suites": [ + "tests": [ { - "uuid": "b55db584-8efe-43bd-8a46-5885ebab071c", - "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-contacts-test.js", - "file": "/test/v2.0-data-sites-{siteid}-contacts-test.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "should respond 200 for \"contact\"", - "fullTitle": "tests for /v2.0/data/sites/{siteid}/contacts tests for get should respond 200 for \"contact\"", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/contacts', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "83d4731e-3469-40df-8824-21604bd49bd3", - "parentUUID": "b55db584-8efe-43bd-8a46-5885ebab071c", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "83d4731e-3469-40df-8824-21604bd49bd3" - ], - "pending": [], - "skipped": [], + "title": "`api-docs` redirects to the api documentation.", + "fullTitle": "Any path goes to the api documentation: `api-docs` redirects to the api documentation.", + "timedOut": false, "duration": 2, - "root": false, - "rootEmpty": false, - "_timeout": 900000 + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2')\n .set('Accept', 'application/json')\n .expect(302, done);", + "err": {}, + "uuid": "6b57d6a5-7a60-487d-a43f-35ac9d6db81a", + "parentUUID": "85fbd1b1-bcce-43cb-9487-9ff45fcf1527", + "isHook": false, + "skipped": false } ], - "passes": [], + "suites": [], + "passes": [ + "6b57d6a5-7a60-487d-a43f-35ac9d6db81a" + ], "failures": [], "pending": [], "skipped": [], - "duration": 0, + "duration": 2, "root": false, "rootEmpty": false, "_timeout": 900000 }, { - "uuid": "27850dcb-f3f0-4520-9cee-723889a7c34b", - "title": "tests for /v2.0/data/sites/{siteid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-test.js", - "file": "/test/v2.0-data-sites-{siteid}-test.js", + "uuid": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "title": "Get occurrence data any number of ways:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/occurrence.js", + "file": "/test/occurrence.js", "beforeHooks": [], "afterHooks": [], - "tests": [], - "suites": [ + "tests": [ { - "uuid": "241e9b75-69f3-4d1b-b8ca-73fbb614c142", - "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-test.js", - "file": "/test/v2.0-data-sites-{siteid}-test.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "should respond 200 for \"An array of sites.\"", - "fullTitle": "tests for /v2.0/data/sites/{siteid} tests for get should respond 200 for \"An array of sites.\"", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "fadc5c24-ecfc-4131-ac4a-42fb1258d2d6", - "parentUUID": "241e9b75-69f3-4d1b-b8ca-73fbb614c142", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "fadc5c24-ecfc-4131-ac4a-42fb1258d2d6" - ], - "pending": [], - "skipped": [], - "duration": 2, - "root": false, - "rootEmpty": false, - "_timeout": 900000 + "title": "Get occurrence by singular id & return same id:", + "fullTitle": "Get occurrence data any number of ways: Get occurrence by singular id & return same id:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences/12')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "f511bfc3-bf9c-44c3-b364-3da2512e4006", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Get the Flyover test call:", + "fullTitle": "Get occurrence data any number of ways: Get the Flyover test call:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences?taxonname=rhinocerotidae,megacerops,moeritherium,ceratogaulus,gomphotherium,deinotherium,condylarthra,paraceratherium,mesonychia,pantodonta,hyaenodon,thylacosmilus,glyptodon,castoroides,toxodon,megatherium,arctodus,smilodon,mammuthus,mammut,coelodonta,megaloceras,gigantopithecus,phlegethontia,temnospondyli,lepospondyli,ichthyosauria,sauropterygia,mosasauroidea,pterosauromorpha,titanoboa,megalania,placodus,tanystropheidae,hyperodapedon,stagonolepis,scutosaurus,pareiasauria,archelon,stupendemys,protostega,placodermi,leedsichthys,onychodontiformes,acanthostega,ichthyostega,crassigyrinus,ornithosuchus,erpetosuchidae,protosuchus,dakosaurus,geosaurus,deinosuchus&lower=true&limit=999999&loc=POLYGON((-122.56 39.94,-115.21 41.96,-107.99 43.42,-100.51 44.41,-92.85 44.91,-83.49 44.84,-74.25 44.02,-70.19 43.38,-69.36 42.75,-69.02 41.76,-69.13 41.07,-69.5 40.47,-70.07 40.06,-70.75 39.9,-78.36 40.86,-85.79 41.33,-93.27 41.3,-100.68 40.78,-105.86 40.12,-111.42 39.12,-116.79 37.86,-122.28 36.29,-122.98 36.35,-123.61 36.67,-124.06 37.21,-124.27 37.88,-124.21 38.58,-123.89 39.2,-123.35 39.65,-122.56 39.94))')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "96b9bffe-be70-4beb-a2b9-59d36938427c", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Failing Canis test works:", + "fullTitle": "Get occurrence data any number of ways: Failing Canis test works:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "// This casuses timeout fails for some reason. It's frustrating.\napi.get('v2.0/data/occurrences?taxonname=Canis&lower=true&limit=999999')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "e9d33a55-35f9-4631-ac85-5ec70127021f", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Get occurrence by taxon:", + "fullTitle": "Get occurrence data any number of ways: Get occurrence by taxon:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/taxa/12/occurrences')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "bd3bdace-78b7-4fce-9b24-04b5b337d64e", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Break occurrences by flipping altitudes:", + "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping altitudes:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences/?altmax=3000&altmin=5000')\n .set('Accept', 'application/json')\n .expect(500);\ndone();", + "err": {}, + "uuid": "16d531f3-ef6d-4b41-8c26-c6a10dc44fc9", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Break occurrences by flipping ages:", + "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping ages:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences/?ageyoung=5000&ageold=3000')\n .set('Accept', 'application/json')\n .expect(500);\ndone();", + "err": {}, + "uuid": "978912c9-1967-4477-a7f2-60157d993e72", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Occurrences filter by age:", + "fullTitle": "Get occurrence data any number of ways: Occurrences filter by age:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences/?ageyoung=3000&ageold=5000')\n .set('Accept', 'application/json')\n .expect(function(res) {\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "f9b6f8ea-91d0-4318-ac54-a491c4246621", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Get occurrences with comma separated fields:", + "fullTitle": "Get occurrence data any number of ways: Get occurrences with comma separated fields:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences/' +\n '?siteid=12,13,14,15&taxonname=Betula&limit=200')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const allSite = res.body['data'];\n const siteids = [];\n for (let i = 0; i < allSite.length; i++) {\n siteids.push(allSite[i]['site']['siteid']);\n };\n const uniqueSites = Array.from(new Set(siteids)).sort(function(a, b) {\n return a - b;\n });\n return (uniqueSites.every((item) => [12, 13, 14, 15].includes(item)));\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "be53c96c-6c4d-45a2-be88-7ae1ce5ccddc", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Get occurrences with comma separated taxa:", + "fullTitle": "Get occurrence data any number of ways: Get occurrences with comma separated taxa:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences/?taxonname=Picea,Abies&limit=25')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return (res.body.data.length > 0);\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "54519592-270d-4703-82a3-498af53ce0c4", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Get hierarchical occurrences with comma separated taxa:", + "fullTitle": "Get occurrence data any number of ways: Get hierarchical occurrences with comma separated taxa:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences/?taxonname=Picea,Abies&limit=25&lower=true')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return (res.body.data.length > 0);\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "6044ff8b-e317-424e-8b29-a1c3b5ebb09f", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Get occurrences returns lower taxa:", + "fullTitle": "Get occurrence data any number of ways: Get occurrences returns lower taxa:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences/?taxonname=Myrica&lower=true&limit=200')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const allTaxa = res.body['data'];\n const taxaids = [];\n for (let i = 0; i < allTaxa.length; i++) {\n taxaids.push(allTaxa[i]['sample']['taxonname']);\n };\n const uniqueTaxa = Array.from(new Set(taxaids)).sort();\n return uniqueTaxa.length > 1;\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "1851076d-afdf-4c4f-b8f9-cd53c7219d17", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Get occurrences with mammals and lower taxa works:", + "fullTitle": "Get occurrence data any number of ways: Get occurrences with mammals and lower taxa works:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences/?taxonname=Homo&lower=true&limit=25')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const allTaxa = res.body['data'];\n const taxaids = [];\n for (let i = 0; i < allTaxa.length; i++) {\n taxaids.push(allTaxa[i]['sample']['taxonname']);\n };\n const uniqueTaxa = Array.from(new Set(taxaids)).sort();\n return uniqueTaxa.length > 1 & allTaxa.length > 0;\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "eb6fb887-dec2-42f1-87c8-067bd3977575", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + }, + { + "title": "Get occurrences using taxon and age bounds:", + "fullTitle": "Get occurrence data any number of ways: Get occurrences using taxon and age bounds:", + "timedOut": false, + "duration": 0, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences/?ageyoung=2000&ageold=3000&taxonname=Pinus')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(200);\ndone();", + "err": {}, + "uuid": "dd614f7d-6566-4c71-8454-b26fe49edcd5", + "parentUUID": "092a1738-eefa-475f-8d5d-eb6023c3420a", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f511bfc3-bf9c-44c3-b364-3da2512e4006", + "96b9bffe-be70-4beb-a2b9-59d36938427c", + "e9d33a55-35f9-4631-ac85-5ec70127021f", + "bd3bdace-78b7-4fce-9b24-04b5b337d64e", + "16d531f3-ef6d-4b41-8c26-c6a10dc44fc9", + "978912c9-1967-4477-a7f2-60157d993e72", + "f9b6f8ea-91d0-4318-ac54-a491c4246621", + "be53c96c-6c4d-45a2-be88-7ae1ce5ccddc", + "54519592-270d-4703-82a3-498af53ce0c4", + "6044ff8b-e317-424e-8b29-a1c3b5ebb09f", + "1851076d-afdf-4c4f-b8f9-cd53c7219d17", + "eb6fb887-dec2-42f1-87c8-067bd3977575", + "dd614f7d-6566-4c71-8454-b26fe49edcd5" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 30000 + }, + { + "uuid": "70aed97b-6804-42bf-abc6-0a3a7ab82289", + "title": "Get publication data any number of ways:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/publications.js", + "file": "/test/publications.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "Get publication by singular id & return same id:", + "fullTitle": "Get publication data any number of ways: Get publication by singular id & return same id:", + "timedOut": false, + "duration": 69, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/publications/12')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body.data[0].publication.publicationid === 12;\n })\n .expect(200, done);", + "err": {}, + "uuid": "2fa0a5c8-52ea-4a92-bce0-ae3e0e0b822b", + "parentUUID": "70aed97b-6804-42bf-abc6-0a3a7ab82289", + "isHook": false, + "skipped": false + }, + { + "title": "Get publication by comma sepatarated ids:", + "fullTitle": "Get publication data any number of ways: Get publication by comma sepatarated ids:", + "timedOut": false, + "duration": 70, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/publications/12,13')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body.data.map((x) => x.publicationid) == [12, 13];\n })\n .expect(200, done);", + "err": {}, + "uuid": "9d1d9180-2bc7-4673-8273-f49e13cf900a", + "parentUUID": "70aed97b-6804-42bf-abc6-0a3a7ab82289", + "isHook": false, + "skipped": false + }, + { + "title": "Get publication by querying author:", + "fullTitle": "Get publication data any number of ways: Get publication by querying author:", + "timedOut": false, + "duration": 205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/publications?familyname=Grimm')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body.data.result.length > 0;\n })\n .expect(200, done);", + "err": {}, + "uuid": "d6e3f85a-41d7-41e0-af13-3b4e98ec5e75", + "parentUUID": "70aed97b-6804-42bf-abc6-0a3a7ab82289", + "isHook": false, + "skipped": false + }, + { + "title": "Get publications using pubs with missing links:", + "fullTitle": "Get publication data any number of ways: Get publications using pubs with missing links:", + "timedOut": false, + "duration": 79, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/publications?publicationid=12,14,1412,99999')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body.data.result.length > 0;\n })\n .expect(200, done);", + "err": {}, + "uuid": "3525ebeb-0383-4d0e-b34d-f7b0ebd5e5f4", + "parentUUID": "70aed97b-6804-42bf-abc6-0a3a7ab82289", + "isHook": false, + "skipped": false + }, + { + "title": "Get publication by site id:", + "fullTitle": "Get publication data any number of ways: Get publication by site id:", + "timedOut": false, + "duration": 79, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/sites/12/publications')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body.data.length > 0;\n })\n .expect(200, done);", + "err": {}, + "uuid": "a43cbc61-157c-413a-b7e6-844cedf76e6f", + "parentUUID": "70aed97b-6804-42bf-abc6-0a3a7ab82289", + "isHook": false, + "skipped": false + }, + { + "title": "Get publication by site id finds pubs for all sites:", + "fullTitle": "Get publication data any number of ways: Get publication by site id finds pubs for all sites:", + "timedOut": false, + "duration": 84, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/sites/12,13,14,15/publications')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const flatten = (list) => list.reduce(\n (a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), [],\n );\n const sites = [12, 13, 14, 15];\n const siteids = flatten(res.body.data.map((x) => x.siteid));\n return sites.every((x) => siteids.includes(x));\n })\n .expect(200, done);", + "err": {}, + "uuid": "43384a3f-1231-4142-8ef3-f6215ac3f4de", + "parentUUID": "70aed97b-6804-42bf-abc6-0a3a7ab82289", + "isHook": false, + "skipped": false + }, + { + "title": "Get publication by dataset id finds pubs for all datasets:", + "fullTitle": "Get publication data any number of ways: Get publication by dataset id finds pubs for all datasets:", + "timedOut": false, + "duration": 75, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets/12,13,2201,6000/publications')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const flatten = (list) => list.reduce(\n (a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), [],\n );\n const datasets = [12, 6000, 13, 2201];\n const datasetids = flatten(res.body.data.map((x) => x.datasetid));\n return datasets.every((x) => datasetids.includes(x));\n })\n .expect(200, done);", + "err": {}, + "uuid": "98333005-244f-4a03-9622-d00b8a1e7193", + "parentUUID": "70aed97b-6804-42bf-abc6-0a3a7ab82289", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "2fa0a5c8-52ea-4a92-bce0-ae3e0e0b822b", + "9d1d9180-2bc7-4673-8273-f49e13cf900a", + "d6e3f85a-41d7-41e0-af13-3b4e98ec5e75", + "3525ebeb-0383-4d0e-b34d-f7b0ebd5e5f4", + "a43cbc61-157c-413a-b7e6-844cedf76e6f", + "43384a3f-1231-4142-8ef3-f6215ac3f4de", + "98333005-244f-4a03-9622-d00b8a1e7193" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 661, + "root": false, + "rootEmpty": false, + "_timeout": 15000 + }, + { + "uuid": "5824b392-0ef1-4e09-b708-565973967dad", + "title": "Get site data any number of ways:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/sites.js", + "file": "/test/sites.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "Get site by singular id & return same id:", + "fullTitle": "Get site data any number of ways: Get site by singular id & return same id:", + "timedOut": false, + "duration": 95, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/sites/12')\n .set('Accept', 'application/json')\n .end((err, res) => {\n if (err) return done(err);\n expect(res.body['data'][0]['siteid'] === 12 & Object.keys(res.body['data'][0]).length > 0);\n done();\n });", + "err": {}, + "uuid": "4c951b38-3079-4e32-a0f6-169bdfed9176", + "parentUUID": "5824b392-0ef1-4e09-b708-565973967dad", + "isHook": false, + "skipped": false + }, + { + "title": "Get site by altitude:", + "fullTitle": "Get site data any number of ways: Get site by altitude:", + "timedOut": true, + "duration": 5001, + "state": "failed", + "speed": null, + "pass": false, + "fail": true, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/sites/?altmax=5000&altmin=3000')\n .set('Accept', 'application/json')\n .end((err, res) => {\n if (err) return done(err);\n expect(Object.keys(res.body['data'][0]).length > 0);\n done();\n });", + "err": { + "message": "Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/sites.js)", + "estack": "Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/sites.js)\n at createTimeoutError (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/errors.js:386:15)\n at Runnable._timeoutError (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/runnable.js:431:10)\n at Timeout. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/runnable.js:246:24)\n at listOnTimeout (node:internal/timers:614:17)\n at process.processTimers (node:internal/timers:549:7)", + "diff": null + }, + "uuid": "3d0a2e4c-d7af-4319-9f13-ebec59607cc6", + "parentUUID": "5824b392-0ef1-4e09-b708-565973967dad", + "isHook": false, + "skipped": false + }, + { + "title": "Break sites by flipping altitudes:", + "fullTitle": "Get site data any number of ways: Break sites by flipping altitudes:", + "timedOut": false, + "duration": 4, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/sites/?altmax=3000&altmin=5000')\n .set('Accept', 'application/json')\n .end((err, res) => {\n if (err) return done(err);\n expect(res.body.status === 'failure');\n done();\n });", + "err": {}, + "uuid": "69f04718-f432-4f37-8b55-6de3337804a0", + "parentUUID": "5824b392-0ef1-4e09-b708-565973967dad", + "isHook": false, + "skipped": false + }, + { + "title": "Break sites by passing invalid siteid:", + "fullTitle": "Get site data any number of ways: Break sites by passing invalid siteid:", + "timedOut": false, + "duration": 542, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/sites/abcd')\n .set('Accept', 'application/json')\n .end((err, res) => {\n if (err) return done(err);\n expect(500, done);\n done();\n });", + "err": {}, + "uuid": "1761b1b8-06d4-41d1-90c5-1c8e6473cd93", + "parentUUID": "5824b392-0ef1-4e09-b708-565973967dad", + "isHook": false, + "skipped": false + }, + { + "title": "Get site by contact information for multiple authors:", + "fullTitle": "Get site data any number of ways: Get site by contact information for multiple authors:", + "timedOut": false, + "duration": 189, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/contacts/12,13/sites')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length === 2;\n })\n .expect(200, done);", + "err": {}, + "uuid": "9647c218-aec5-4c1e-9ac3-ff1ef44903f7", + "parentUUID": "5824b392-0ef1-4e09-b708-565973967dad", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "4c951b38-3079-4e32-a0f6-169bdfed9176", + "69f04718-f432-4f37-8b55-6de3337804a0", + "1761b1b8-06d4-41d1-90c5-1c8e6473cd93", + "9647c218-aec5-4c1e-9ac3-ff1ef44903f7" + ], + "failures": [ + "3d0a2e4c-d7af-4319-9f13-ebec59607cc6" + ], + "pending": [], + "skipped": [], + "duration": 5831, + "root": false, + "rootEmpty": false, + "_timeout": 5000 + }, + { + "uuid": "ba189be5-83bc-4ed3-a93c-d24c34d4562c", + "title": "Get Neotoma data with geoJSON extents:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js", + "file": "/test/spatial.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "Get occurrence data using a simple geoJSON:", + "fullTitle": "Get Neotoma data with geoJSON extents: Get occurrence data using a simple geoJSON:", + "timedOut": false, + "duration": 425, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences?loc={\"type\":\"Polygon\",\"coordinates\":[[[-104.053249,41.001406],[-103.497447,41.001635],[-102.865784,41.001988],[-102.556789,41.002219],[-102.051614,41.002377],[-102.051725,40.537839],[-102.051744,40.003078],[-102.050422,39.646048],[-102.048449,39.303138],[-102.045388,38.813392],[-102.045324,38.453647],[-102.044644,38.045532],[-102.041574,37.680436],[-102.041974,37.352613],[-102.04224,36.993083],[-102.698142,36.995149],[-102.814616,37.000783],[-103.002199,37.000104],[-103.733247,36.998016],[-104.338833,36.993535],[-105.000554,36.993264],[-105.1208,36.995428],[-105.62747,36.995679],[-106.201469,36.994122],[-106.869796,36.992426],[-106.877292,37.000139],[-107.420913,37.000005],[-108.000623,37.000001],[-108.249358,36.999015],[-108.620309,36.999287],[-109.045223,36.999084],[-109.04581,37.374993],[-109.041865,37.530726],[-109.041058,37.907236],[-109.041762,38.16469],[-109.060062,38.275489],[-109.059541,38.719888],[-109.054189,38.874984],[-109.051512,39.126095],[-109.051363,39.497674],[-109.050615,39.87497],[-109.050946,40.444368],[-109.048044,40.619231],[-109.050076,41.000659],[-108.884138,41.000094],[-108.250649,41.000114],[-107.625624,41.002124],[-106.857773,41.002663],[-106.453859,41.002057],[-106.217573,40.997734],[-105.730421,40.996886],[-105.277138,40.998173],[-104.855273,40.998048],[-104.675999,41.000957],[-104.053249,41.001406]]]}')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", + "err": {}, + "uuid": "dfdd7f98-bcdd-4e31-a680-194e076d6479", + "parentUUID": "ba189be5-83bc-4ed3-a93c-d24c34d4562c", + "isHook": false, + "skipped": false + }, + { + "title": "Get site data using a simple geoJSON:", + "fullTitle": "Get Neotoma data with geoJSON extents: Get site data using a simple geoJSON:", + "timedOut": true, + "duration": 15001, + "state": "failed", + "speed": null, + "pass": false, + "fail": true, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/sites?loc={\"type\":\"Polygon\",\"coordinates\":[[[-104.053249,41.001406],[-103.497447,41.001635],[-102.865784,41.001988],[-102.556789,41.002219],[-102.051614,41.002377],[-102.051725,40.537839],[-102.051744,40.003078],[-102.050422,39.646048],[-102.048449,39.303138],[-102.045388,38.813392],[-102.045324,38.453647],[-102.044644,38.045532],[-102.041574,37.680436],[-102.041974,37.352613],[-102.04224,36.993083],[-102.698142,36.995149],[-102.814616,37.000783],[-103.002199,37.000104],[-103.733247,36.998016],[-104.338833,36.993535],[-105.000554,36.993264],[-105.1208,36.995428],[-105.62747,36.995679],[-106.201469,36.994122],[-106.869796,36.992426],[-106.877292,37.000139],[-107.420913,37.000005],[-108.000623,37.000001],[-108.249358,36.999015],[-108.620309,36.999287],[-109.045223,36.999084],[-109.04581,37.374993],[-109.041865,37.530726],[-109.041058,37.907236],[-109.041762,38.16469],[-109.060062,38.275489],[-109.059541,38.719888],[-109.054189,38.874984],[-109.051512,39.126095],[-109.051363,39.497674],[-109.050615,39.87497],[-109.050946,40.444368],[-109.048044,40.619231],[-109.050076,41.000659],[-108.884138,41.000094],[-108.250649,41.000114],[-107.625624,41.002124],[-106.857773,41.002663],[-106.453859,41.002057],[-106.217573,40.997734],[-105.730421,40.996886],[-105.277138,40.998173],[-104.855273,40.998048],[-104.675999,41.000957],[-104.053249,41.001406]]]}')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", + "err": { + "message": "Error: Timeout of 15000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js)", + "estack": "Error: Timeout of 15000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js)\n at createTimeoutError (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/errors.js:386:15)\n at Runnable._timeoutError (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/runnable.js:431:10)\n at Timeout. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/runnable.js:246:24)\n at listOnTimeout (node:internal/timers:614:17)\n at process.processTimers (node:internal/timers:549:7)", + "diff": null + }, + "uuid": "e3a604a0-6013-4cf0-ba48-1c8863291b9a", + "parentUUID": "ba189be5-83bc-4ed3-a93c-d24c34d4562c", + "isHook": false, + "skipped": false + }, + { + "title": "Get dataset data using a simple geoJSON:", + "fullTitle": "Get Neotoma data with geoJSON extents: Get dataset data using a simple geoJSON:", + "timedOut": true, + "duration": 15001, + "state": "failed", + "speed": null, + "pass": false, + "fail": true, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets?loc={\"type\":\"Polygon\",\"coordinates\":[[[-104.053249,41.001406],[-103.497447,41.001635],[-102.865784,41.001988],[-102.556789,41.002219],[-102.051614,41.002377],[-102.051725,40.537839],[-102.051744,40.003078],[-102.050422,39.646048],[-102.048449,39.303138],[-102.045388,38.813392],[-102.045324,38.453647],[-102.044644,38.045532],[-102.041574,37.680436],[-102.041974,37.352613],[-102.04224,36.993083],[-102.698142,36.995149],[-102.814616,37.000783],[-103.002199,37.000104],[-103.733247,36.998016],[-104.338833,36.993535],[-105.000554,36.993264],[-105.1208,36.995428],[-105.62747,36.995679],[-106.201469,36.994122],[-106.869796,36.992426],[-106.877292,37.000139],[-107.420913,37.000005],[-108.000623,37.000001],[-108.249358,36.999015],[-108.620309,36.999287],[-109.045223,36.999084],[-109.04581,37.374993],[-109.041865,37.530726],[-109.041058,37.907236],[-109.041762,38.16469],[-109.060062,38.275489],[-109.059541,38.719888],[-109.054189,38.874984],[-109.051512,39.126095],[-109.051363,39.497674],[-109.050615,39.87497],[-109.050946,40.444368],[-109.048044,40.619231],[-109.050076,41.000659],[-108.884138,41.000094],[-108.250649,41.000114],[-107.625624,41.002124],[-106.857773,41.002663],[-106.453859,41.002057],[-106.217573,40.997734],[-105.730421,40.996886],[-105.277138,40.998173],[-104.855273,40.998048],[-104.675999,41.000957],[-104.053249,41.001406]]]}')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", + "err": { + "message": "Error: Timeout of 15000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js)", + "estack": "Error: Timeout of 15000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js)\n at createTimeoutError (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/errors.js:386:15)\n at Runnable._timeoutError (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/runnable.js:431:10)\n at Timeout. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/runnable.js:246:24)\n at listOnTimeout (node:internal/timers:614:17)\n at process.processTimers (node:internal/timers:549:7)", + "diff": null + }, + "uuid": "5f3a7b99-b9d2-4008-8c68-d402d31989c0", + "parentUUID": "ba189be5-83bc-4ed3-a93c-d24c34d4562c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "dfdd7f98-bcdd-4e31-a680-194e076d6479" + ], + "failures": [ + "e3a604a0-6013-4cf0-ba48-1c8863291b9a", + "5f3a7b99-b9d2-4008-8c68-d402d31989c0" + ], + "pending": [], + "skipped": [], + "duration": 30427, + "root": false, + "rootEmpty": false, + "_timeout": 15000 + }, + { + "uuid": "594a1e61-dafc-4cb0-8163-f439e6aee4ff", + "title": "Get Neotoma data with WKT extents:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js", + "file": "/test/spatial.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "Get occurrence data using a simple WKT:", + "fullTitle": "Get Neotoma data with WKT extents: Get occurrence data using a simple WKT:", + "timedOut": false, + "duration": 1100, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/occurrences?loc=POLYGON((-104.053249 41.001406,-103.497447 41.001635,-102.865784 41.001988,-102.556789 41.002219,-102.051614 41.002377,-102.051725 40.537839,-102.051744 40.003078,-102.050422 39.646048,-102.048449 39.303138,-102.045388 38.813392,-102.045324 38.453647,-102.044644 38.045532,-102.041574 37.680436,-102.041974 37.352613,-102.04224 36.993083,-102.698142 36.995149,-102.814616 37.000783,-103.002199 37.000104,-103.733247 36.998016,-104.338833 36.993535,-105.000554 36.993264,-105.1208 36.995428,-105.62747 36.995679,-106.201469 36.994122,-106.869796 36.992426,-106.877292 37.000139,-107.420913 37.000005,-108.000623 37.000001,-108.249358 36.999015,-108.620309 36.999287,-109.045223 36.999084,-109.04581 37.374993,-109.041865 37.530726,-109.041058 37.907236,-109.041762 38.16469,-109.060062 38.275489,-109.059541 38.719888,-109.054189 38.874984,-109.051512 39.126095,-109.051363 39.497674,-109.050615 39.87497,-109.050946 40.444368,-109.048044 40.619231,-109.050076 41.000659,-108.884138 41.000094,-108.250649 41.000114,-107.625624 41.002124,-106.857773 41.002663,-106.453859 41.002057,-106.217573 40.997734,-105.730421 40.996886,-105.277138 40.998173,-104.855273 40.998048,-104.675999 41.000957,-104.053249 41.001406))')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", + "err": {}, + "uuid": "f36ce617-c3bc-4275-84a6-a53e9ebf4f28", + "parentUUID": "594a1e61-dafc-4cb0-8163-f439e6aee4ff", + "isHook": false, + "skipped": false + }, + { + "title": "Get site data using a simple WKT:", + "fullTitle": "Get Neotoma data with WKT extents: Get site data using a simple WKT:", + "timedOut": false, + "duration": 440, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/sites?loc=POLYGON((-104.053249 41.001406,-103.497447 41.001635,-102.865784 41.001988,-102.556789 41.002219,-102.051614 41.002377,-102.051725 40.537839,-102.051744 40.003078,-102.050422 39.646048,-102.048449 39.303138,-102.045388 38.813392,-102.045324 38.453647,-102.044644 38.045532,-102.041574 37.680436,-102.041974 37.352613,-102.04224 36.993083,-102.698142 36.995149,-102.814616 37.000783,-103.002199 37.000104,-103.733247 36.998016,-104.338833 36.993535,-105.000554 36.993264,-105.1208 36.995428,-105.62747 36.995679,-106.201469 36.994122,-106.869796 36.992426,-106.877292 37.000139,-107.420913 37.000005,-108.000623 37.000001,-108.249358 36.999015,-108.620309 36.999287,-109.045223 36.999084,-109.04581 37.374993,-109.041865 37.530726,-109.041058 37.907236,-109.041762 38.16469,-109.060062 38.275489,-109.059541 38.719888,-109.054189 38.874984,-109.051512 39.126095,-109.051363 39.497674,-109.050615 39.87497,-109.050946 40.444368,-109.048044 40.619231,-109.050076 41.000659,-108.884138 41.000094,-108.250649 41.000114,-107.625624 41.002124,-106.857773 41.002663,-106.453859 41.002057,-106.217573 40.997734,-105.730421 40.996886,-105.277138 40.998173,-104.855273 40.998048,-104.675999 41.000957,-104.053249 41.001406))')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", + "err": {}, + "uuid": "92efaaf5-8ccf-4b89-8ce7-81f535261198", + "parentUUID": "594a1e61-dafc-4cb0-8163-f439e6aee4ff", + "isHook": false, + "skipped": false + }, + { + "title": "Get dataset data using a simple WKT:", + "fullTitle": "Get Neotoma data with WKT extents: Get dataset data using a simple WKT:", + "timedOut": true, + "duration": 15001, + "state": "failed", + "speed": null, + "pass": false, + "fail": true, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets?loc=POLYGON((-104.053249 41.001406,-103.497447 41.001635,-102.865784 41.001988,-102.556789 41.002219,-102.051614 41.002377,-102.051725 40.537839,-102.051744 40.003078,-102.050422 39.646048,-102.048449 39.303138,-102.045388 38.813392,-102.045324 38.453647,-102.044644 38.045532,-102.041574 37.680436,-102.041974 37.352613,-102.04224 36.993083,-102.698142 36.995149,-102.814616 37.000783,-103.002199 37.000104,-103.733247 36.998016,-104.338833 36.993535,-105.000554 36.993264,-105.1208 36.995428,-105.62747 36.995679,-106.201469 36.994122,-106.869796 36.992426,-106.877292 37.000139,-107.420913 37.000005,-108.000623 37.000001,-108.249358 36.999015,-108.620309 36.999287,-109.045223 36.999084,-109.04581 37.374993,-109.041865 37.530726,-109.041058 37.907236,-109.041762 38.16469,-109.060062 38.275489,-109.059541 38.719888,-109.054189 38.874984,-109.051512 39.126095,-109.051363 39.497674,-109.050615 39.87497,-109.050946 40.444368,-109.048044 40.619231,-109.050076 41.000659,-108.884138 41.000094,-108.250649 41.000114,-107.625624 41.002124,-106.857773 41.002663,-106.453859 41.002057,-106.217573 40.997734,-105.730421 40.996886,-105.277138 40.998173,-104.855273 40.998048,-104.675999 41.000957,-104.053249 41.001406))')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", + "err": { + "message": "Error: Timeout of 15000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js)", + "estack": "Error: Timeout of 15000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js)\n at createTimeoutError (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/errors.js:386:15)\n at Runnable._timeoutError (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/runnable.js:431:10)\n at Timeout. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/runnable.js:246:24)\n at listOnTimeout (node:internal/timers:614:17)\n at process.processTimers (node:internal/timers:549:7)", + "diff": null + }, + "uuid": "efee7b52-9f26-4fb1-9693-3970a7c0be4b", + "parentUUID": "594a1e61-dafc-4cb0-8163-f439e6aee4ff", + "isHook": false, + "skipped": false + }, + { + "title": "Get dataset data using a simple WKT:", + "fullTitle": "Get Neotoma data with WKT extents: Get dataset data using a simple WKT:", + "timedOut": true, + "duration": 15002, + "state": "failed", + "speed": null, + "pass": false, + "fail": true, + "pending": false, + "context": null, + "code": "api.get('v2.0/data/datasets?loc=POLYGON((139.8%20-33.7,%20150.1%20-33.7,%20150.1%20-39.1,%20139.8%20-39.1,%20139.8%20-33.7))')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", + "err": { + "message": "Error: Timeout of 15000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js)", + "estack": "Error: Timeout of 15000ms exceeded. For async tests and hooks, ensure \"done()\" is called; if returning a Promise, ensure it resolves. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js)\n at createTimeoutError (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/errors.js:386:15)\n at Runnable._timeoutError (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/runnable.js:431:10)\n at Timeout. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/mocha/lib/runnable.js:246:24)\n at listOnTimeout (node:internal/timers:614:17)\n at process.processTimers (node:internal/timers:549:7)", + "diff": null + }, + "uuid": "e5cfcc14-ad91-4e80-b756-52b46e984d76", + "parentUUID": "594a1e61-dafc-4cb0-8163-f439e6aee4ff", + "isHook": false, + "skipped": false } ], - "passes": [], - "failures": [], + "suites": [], + "passes": [ + "f36ce617-c3bc-4275-84a6-a53e9ebf4f28", + "92efaaf5-8ccf-4b89-8ce7-81f535261198" + ], + "failures": [ + "efee7b52-9f26-4fb1-9693-3970a7c0be4b", + "e5cfcc14-ad91-4e80-b756-52b46e984d76" + ], "pending": [], "skipped": [], - "duration": 0, + "duration": 31543, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 15000 }, { - "uuid": "bdbd82e8-6ec3-41ca-8dd2-d8bdf2c525ed", + "uuid": "6abd3238-05a8-4597-99b7-c18f7ee9e94f", "title": "Get taxon data:", "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js", "file": "/test/taxa.js", @@ -491,21 +1574,17 @@ "title": "v2.0: An empty query returns the first 25 taxa.", "fullTitle": "Get taxon data: v2.0: An empty query returns the first 25 taxa.", "timedOut": false, - "duration": 3, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 847, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, "pending": false, "context": null, "code": "api.get('v2.0/data/taxa/')\n .set('Accept', 'application/json')\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "456a3e2e-f61a-425a-8f0f-f546cd13c811", - "parentUUID": "bdbd82e8-6ec3-41ca-8dd2-d8bdf2c525ed", + "err": {}, + "uuid": "a5d0b768-ce94-4ec3-aa4d-0a2624e5c54b", + "parentUUID": "6abd3238-05a8-4597-99b7-c18f7ee9e94f", "isHook": false, "skipped": false }, @@ -513,21 +1592,17 @@ "title": "v2.0: A single taxon should be returned by id:", "fullTitle": "Get taxon data: v2.0: A single taxon should be returned by id:", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, "code": "api.get('v2.0/data/taxa/12')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.strictEqual(res.body.data[0]['taxonid'], 12);\n done();\n if (err) {\n console.log(err.message);\n };\n });", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'body')", - "estack": "TypeError: Cannot read properties of undefined (reading 'body')\n at Test. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js:33:32)\n at Test.assert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:204:10)\n at localAssert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:138:14)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:156:7\n at Request.callback (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:857:3)\n at ClientRequest. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:780:10)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)", - "diff": null - }, - "uuid": "b55c2f98-8914-4939-9f35-f8fd2edc71aa", - "parentUUID": "bdbd82e8-6ec3-41ca-8dd2-d8bdf2c525ed", + "err": {}, + "uuid": "f655b25f-c965-4084-94de-4ded68916496", + "parentUUID": "6abd3238-05a8-4597-99b7-c18f7ee9e94f", "isHook": false, "skipped": false }, @@ -535,21 +1610,17 @@ "title": "v2.0: Taxon queries should be case insensitive:", "fullTitle": "Get taxon data: v2.0: Taxon queries should be case insensitive:", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 186, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, "code": "api.get('v2.0/data/taxa/?taxonname=abies')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.strictEqual(res.body.data[0]['taxonid'], 1);\n done();\n if (err) {\n console.log(err.message);\n };\n });", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'body')", - "estack": "TypeError: Cannot read properties of undefined (reading 'body')\n at Test. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js:45:32)\n at Test.assert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:204:10)\n at localAssert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:138:14)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:156:7\n at Request.callback (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:857:3)\n at ClientRequest. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:780:10)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)", - "diff": null - }, - "uuid": "019cb0ff-1dd7-41d4-9961-b30a705c8a42", - "parentUUID": "bdbd82e8-6ec3-41ca-8dd2-d8bdf2c525ed", + "err": {}, + "uuid": "c523ded0-f81c-4445-bfaa-ec542a4d6d9a", + "parentUUID": "6abd3238-05a8-4597-99b7-c18f7ee9e94f", "isHook": false, "skipped": false }, @@ -557,21 +1628,17 @@ "title": "v2.0: Taxon queries should accept comma separated lists:", "fullTitle": "Get taxon data: v2.0: Taxon queries should accept comma separated lists:", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 138, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, "code": "api.get('v2.0/data/taxa/?taxonname=abies,picea')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.strictEqual(res.body.data[0]['taxonid'], 1);\n done();\n if (err) {\n console.log(err.message);\n };\n });", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'body')", - "estack": "TypeError: Cannot read properties of undefined (reading 'body')\n at Test. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js:58:34)\n at Test.assert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:204:10)\n at localAssert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:138:14)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:156:7\n at Request.callback (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:857:3)\n at ClientRequest. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:780:10)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)", - "diff": null - }, - "uuid": "d29aba27-e935-43cf-a76e-926f61cdc3b2", - "parentUUID": "bdbd82e8-6ec3-41ca-8dd2-d8bdf2c525ed", + "err": {}, + "uuid": "874d34ff-2b78-4b1c-b404-0f6d705f15d1", + "parentUUID": "6abd3238-05a8-4597-99b7-c18f7ee9e94f", "isHook": false, "skipped": false }, @@ -579,21 +1646,17 @@ "title": "v2.0: Hierarchical taxon queries should accept comma separated lists:", "fullTitle": "Get taxon data: v2.0: Hierarchical taxon queries should accept comma separated lists:", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 390, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, "code": "api.get('v2.0/data/taxa/?taxonname=abies,picea&lower=true')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n const data = res.body.data;\n const higher = [...new Set(data.map((x) => x.highertaxonid))];\n /* There should be four unique higher taxon IDs:\n * One for `Abies`\n * One for `Picea`\n * The rest pointing to Abies & Picea.\n */\n assert.strictEqual(higher.length, 4);\n done();\n if (err) {\n console.log(err.message);\n };\n });", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'body')", - "estack": "TypeError: Cannot read properties of undefined (reading 'body')\n at Test. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js:71:28)\n at Test.assert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:204:10)\n at localAssert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:138:14)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:156:7\n at Request.callback (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:857:3)\n at ClientRequest. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:780:10)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)", - "diff": null - }, - "uuid": "630ea7bf-f2ef-44f7-8cf0-bbc36470f77b", - "parentUUID": "bdbd82e8-6ec3-41ca-8dd2-d8bdf2c525ed", + "err": {}, + "uuid": "d767501e-ba78-48bc-9734-74150b6a59bb", + "parentUUID": "6abd3238-05a8-4597-99b7-c18f7ee9e94f", "isHook": false, "skipped": false }, @@ -601,21 +1664,17 @@ "title": "v2.0: Taxon queries should accept `*` as a wildcard:", "fullTitle": "Get taxon data: v2.0: Taxon queries should accept `*` as a wildcard:", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 160, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, "code": "api.get('v2.0/data/taxa/?taxonname=abie*')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.strictEqual(res.body.data[0]['taxonid'], 1);\n done();\n if (err) {\n console.log(err.message);\n };\n });", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'body')", - "estack": "TypeError: Cannot read properties of undefined (reading 'body')\n at Test. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js:90:32)\n at Test.assert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:204:10)\n at localAssert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:138:14)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:156:7\n at Request.callback (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:857:3)\n at ClientRequest. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:780:10)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)", - "diff": null - }, - "uuid": "0b6e976f-0eee-4652-9865-8be36cded2ef", - "parentUUID": "bdbd82e8-6ec3-41ca-8dd2-d8bdf2c525ed", + "err": {}, + "uuid": "d542d4e3-1ede-4846-8ce4-ec0bcae63f8c", + "parentUUID": "6abd3238-05a8-4597-99b7-c18f7ee9e94f", "isHook": false, "skipped": false }, @@ -623,21 +1682,17 @@ "title": "v2.0: The default limit of 25 should be reached for taxon data:", "fullTitle": "Get taxon data: v2.0: The default limit of 25 should be reached for taxon data:", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 1333, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, "code": "api.get('v2.0/data/taxa/?taxonname=a*')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.strictEqual(res.body.data.length, 25);\n done();\n if (err) {\n console.log(err.message);\n };\n });", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'body')", - "estack": "TypeError: Cannot read properties of undefined (reading 'body')\n at Test. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js:103:34)\n at Test.assert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:204:10)\n at localAssert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:138:14)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:156:7\n at Request.callback (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:857:3)\n at ClientRequest. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:780:10)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)", - "diff": null - }, - "uuid": "cf8c955a-513e-473b-b64b-b9d2ecfc49cf", - "parentUUID": "bdbd82e8-6ec3-41ca-8dd2-d8bdf2c525ed", + "err": {}, + "uuid": "33e059a0-897c-4f44-ba77-3814429b5117", + "parentUUID": "6abd3238-05a8-4597-99b7-c18f7ee9e94f", "isHook": false, "skipped": false }, @@ -645,154 +1700,84 @@ "title": "v2.0: Changing the limit should change the number of taxa retrieved:", "fullTitle": "Get taxon data: v2.0: Changing the limit should change the number of taxa retrieved:", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 572, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, "pending": false, "context": null, "code": "api.get('v2.0/data/taxa/?taxonname=a*&limit=30')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.strictEqual(res.body.data.length, 30);\n done();\n if (err) {\n console.log(err.message);\n };\n });", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'body')", - "estack": "TypeError: Cannot read properties of undefined (reading 'body')\n at Test. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js:116:34)\n at Test.assert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:204:10)\n at localAssert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:138:14)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:156:7\n at Request.callback (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:857:3)\n at ClientRequest. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:780:10)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)", - "diff": null - }, - "uuid": "ee4a4ca1-c5df-4e84-bc7d-721079747335", - "parentUUID": "bdbd82e8-6ec3-41ca-8dd2-d8bdf2c525ed", + "err": {}, + "uuid": "6d9aff35-836f-4179-b6c6-3ce0462cbeff", + "parentUUID": "6abd3238-05a8-4597-99b7-c18f7ee9e94f", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "456a3e2e-f61a-425a-8f0f-f546cd13c811", - "b55c2f98-8914-4939-9f35-f8fd2edc71aa", - "019cb0ff-1dd7-41d4-9961-b30a705c8a42", - "d29aba27-e935-43cf-a76e-926f61cdc3b2", - "630ea7bf-f2ef-44f7-8cf0-bbc36470f77b", - "0b6e976f-0eee-4652-9865-8be36cded2ef", - "cf8c955a-513e-473b-b64b-b9d2ecfc49cf", - "ee4a4ca1-c5df-4e84-bc7d-721079747335" - ], - "pending": [], - "skipped": [], - "duration": 13, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "28d6caec-d89d-4766-89e6-66a50639fcba", - "title": "tests for /v2.0/data/downloads/{datasetid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-downloads-{datasetid}-test.js", - "file": "/test/v2.0-data-downloads-{datasetid}-test.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [], - "suites": [ - { - "uuid": "68a0d54b-13f5-485c-bd37-484e776da9bc", - "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-downloads-{datasetid}-test.js", - "file": "/test/v2.0-data-downloads-{datasetid}-test.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "should respond 200 for \"Returned download object.\"", - "fullTitle": "tests for /v2.0/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/downloads/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "610dbfee-b60f-48d3-9272-cece9bc935a7", - "parentUUID": "68a0d54b-13f5-485c-bd37-484e776da9bc", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "610dbfee-b60f-48d3-9272-cece9bc935a7" - ], - "pending": [], - "skipped": [], - "duration": 2, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } + "passes": [ + "a5d0b768-ce94-4ec3-aa4d-0a2624e5c54b", + "f655b25f-c965-4084-94de-4ded68916496", + "c523ded0-f81c-4445-bfaa-ec542a4d6d9a", + "874d34ff-2b78-4b1c-b404-0f6d705f15d1", + "d767501e-ba78-48bc-9734-74150b6a59bb", + "d542d4e3-1ede-4846-8ce4-ec0bcae63f8c", + "33e059a0-897c-4f44-ba77-3814429b5117", + "6d9aff35-836f-4179-b6c6-3ce0462cbeff" ], - "passes": [], "failures": [], "pending": [], "skipped": [], - "duration": 0, + "duration": 3698, "root": false, "rootEmpty": false, "_timeout": 900000 }, { - "uuid": "9da93a4a-98ce-4fb2-af1b-c52838ac06ae", - "title": "tests for /v2.0/apps/constdb/datasetuploads", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasetuploads-test.js", - "file": "/test/v2.0-apps-constdb-datasetuploads-test.js", + "uuid": "3551a882-ffa6-4a56-91a4-3e2ee25c5f76", + "title": "tests for /v1.5/apps/DatasetTypes", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-DatasetTypes-test.js", + "file": "/test/v1.5-apps-DatasetTypes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "86c277c5-d701-4267-abac-0fda8acb3ff3", + "uuid": "239b5932-59ae-4a52-ace8-b0283c024a5c", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasetuploads-test.js", - "file": "/test/v2.0-apps-constdb-datasetuploads-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-DatasetTypes-test.js", + "file": "/test/v1.5-apps-DatasetTypes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. \"", - "fullTitle": "tests for /v2.0/apps/constdb/datasetuploads tests for get should respond 200 for \"Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. \"", + "title": "should respond 200 for \"Returns the set of dataset types supported by Neotoma.\"", + "fullTitle": "tests for /v1.5/apps/DatasetTypes tests for get should respond 200 for \"Returns the set of dataset types supported by Neotoma.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 218, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetuploads', { \n 'qs': {\"dbid\":9},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "9d6bf462-2108-476c-b578-f8b0fa9c67ed", - "parentUUID": "86c277c5-d701-4267-abac-0fda8acb3ff3", + "code": "var response = request('get', 'http://localhost:3001/v1.5/apps/DatasetTypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "f460ebe2-5f3d-46ae-8eb2-f2c4b6c92054", + "parentUUID": "239b5932-59ae-4a52-ace8-b0283c024a5c", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "9d6bf462-2108-476c-b578-f8b0fa9c67ed" + "passes": [ + "f460ebe2-5f3d-46ae-8eb2-f2c4b6c92054" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 218, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -808,165 +1793,107 @@ "_timeout": 900000 }, { - "uuid": "01dcbbe9-616d-4845-8b86-4ad7a1fba150", - "title": "Get geopolitical data:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/geopolitical.js", - "file": "/test/geopolitical.js", + "uuid": "76f083e6-8773-4e5e-9a2f-efc6a2282d2a", + "title": "tests for /v1.5/apps/TaxaInDatasets", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-TaxaInDatasets-test.js", + "file": "/test/v1.5-apps-TaxaInDatasets-test.js", "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "An empty query returns a valid response.", - "fullTitle": "Get geopolitical data: An empty query returns a valid response.", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/geopoliticalunits/')\n .set('Accept', 'application/json')\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "d189486a-6d40-4862-8a9f-98f35f91854c", - "parentUUID": "01dcbbe9-616d-4845-8b86-4ad7a1fba150", - "isHook": false, - "skipped": false - }, - { - "title": "The default limit of 25 should be reached for country level data:", - "fullTitle": "Get geopolitical data: The default limit of 25 should be reached for country level data:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/geopoliticalunits/?rank=1')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.equal(res.body.data.length, 25);\n done();\n });", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'body')", - "estack": "TypeError: Cannot read properties of undefined (reading 'body')\n at Test. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/geopolitical.js:34:26)\n at Test.assert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:204:10)\n at localAssert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:138:14)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:156:7\n at Request.callback (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:857:3)\n at ClientRequest. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:780:10)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)", - "diff": null - }, - "uuid": "d8dd0c77-e3e0-425a-984a-53a56b50d450", - "parentUUID": "01dcbbe9-616d-4845-8b86-4ad7a1fba150", - "isHook": false, - "skipped": false - }, - { - "title": "Changing the limit should change the number of countries retrieved:", - "fullTitle": "Get geopolitical data: Changing the limit should change the number of countries retrieved:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/geopoliticalunits/?rank=1&limit=30')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.equal(res.body.data.length, 30);\n done();\n });", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'body')", - "estack": "TypeError: Cannot read properties of undefined (reading 'body')\n at Test. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/geopolitical.js:43:26)\n at Test.assert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:204:10)\n at localAssert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:138:14)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:156:7\n at Request.callback (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:857:3)\n at ClientRequest. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:780:10)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)", - "diff": null - }, - "uuid": "4dcf1a61-593b-46a2-929f-92a9412a28e7", - "parentUUID": "01dcbbe9-616d-4845-8b86-4ad7a1fba150", - "isHook": false, - "skipped": false - }, - { - "title": "A single geopolitical unit (12) should be returned.", - "fullTitle": "Get geopolitical data: A single geopolitical unit (12) should be returned.", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/geopoliticalunits/12')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n assert.equal(res.body.data[0]['geopoliticalid'], 12);\n done();\n });", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'body')", - "estack": "TypeError: Cannot read properties of undefined (reading 'body')\n at Test. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/geopolitical.js:52:26)\n at Test.assert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:204:10)\n at localAssert (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:138:14)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/lib/test.js:156:7\n at Request.callback (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:857:3)\n at ClientRequest. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/supertest/node_modules/superagent/lib/node/index.js:780:10)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)", - "diff": null - }, - "uuid": "ec9ff073-d448-4c8d-9111-3880d68acc21", - "parentUUID": "01dcbbe9-616d-4845-8b86-4ad7a1fba150", - "isHook": false, - "skipped": false + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "be803a67-d8b8-421b-898c-69b784e6ba9f", + "title": "tests for get", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-TaxaInDatasets-test.js", + "file": "/test/v1.5-apps-TaxaInDatasets-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should respond 200 for \"An array of taxon identities with associated dataset IDs.\"", + "fullTitle": "tests for /v1.5/apps/TaxaInDatasets tests for get should respond 200 for \"An array of taxon identities with associated dataset IDs.\"", + "timedOut": false, + "duration": 5612, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "var response = request('get', 'http://localhost:3001/v1.5/apps/TaxaInDatasets', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "3054b260-40a8-40a8-97fb-ebbe26ec766e", + "parentUUID": "be803a67-d8b8-421b-898c-69b784e6ba9f", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "3054b260-40a8-40a8-97fb-ebbe26ec766e" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5612, + "root": false, + "rootEmpty": false, + "_timeout": 900000 } ], - "suites": [], "passes": [], - "failures": [ - "d189486a-6d40-4862-8a9f-98f35f91854c", - "d8dd0c77-e3e0-425a-984a-53a56b50d450", - "4dcf1a61-593b-46a2-929f-92a9412a28e7", - "ec9ff073-d448-4c8d-9111-3880d68acc21" - ], + "failures": [], "pending": [], "skipped": [], - "duration": 5, + "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 5000 + "_timeout": 900000 }, { - "uuid": "64df68ce-e3ee-4684-bd77-e66b4889fe0c", - "title": "tests for /v2.0/apps/collectiontypes", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-collectiontypes-test.js", - "file": "/test/v2.0-apps-collectiontypes-test.js", + "uuid": "6590ab75-245f-427a-880b-525cb27a87f9", + "title": "tests for /v1.5/apps/collectionTypes", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-collectionTypes-test.js", + "file": "/test/v1.5-apps-collectionTypes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "01e8c944-354a-47e8-91e1-f368a085b899", + "uuid": "7eccd90e-baf4-46e8-8f10-6c1ce6dcde7e", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-collectiontypes-test.js", - "file": "/test/v2.0-apps-collectiontypes-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-collectionTypes-test.js", + "file": "/test/v1.5-apps-collectionTypes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A table of Neotoma collection types.\"", - "fullTitle": "tests for /v2.0/apps/collectiontypes tests for get should respond 200 for \"A table of Neotoma collection types.\"", + "title": "should respond 200 for \"Returns the set of collectiontypes recorded in Neotoma.\"", + "fullTitle": "tests for /v1.5/apps/collectionTypes tests for get should respond 200 for \"Returns the set of collectiontypes recorded in Neotoma.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 66, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/collectiontypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "036238fc-5e2a-4056-80bc-f4a2b304a6f8", - "parentUUID": "01e8c944-354a-47e8-91e1-f368a085b899", + "code": "var response = request('get', 'http://localhost:3001/v1.5/apps/collectionTypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "19b1cf88-4f97-4d72-b808-60ab909ebd2f", + "parentUUID": "7eccd90e-baf4-46e8-8f10-6c1ce6dcde7e", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "036238fc-5e2a-4056-80bc-f4a2b304a6f8" + "passes": [ + "19b1cf88-4f97-4d72-b808-60ab909ebd2f" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 66, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -982,53 +1909,49 @@ "_timeout": 900000 }, { - "uuid": "924fb96b-6dac-4842-abdc-16976c6c95a5", - "title": "tests for /v2.0/data/geopoliticalunits/{gpid}/datasets", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js", - "file": "/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js", + "uuid": "870fd401-655a-4004-99a3-19c598867592", + "title": "tests for /v1.5/data/contacts/{contactid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-contacts-{contactid}-test.js", + "file": "/test/v1.5-data-contacts-{contactid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "f0183510-ff9d-4f59-95ad-e8e94077af52", + "uuid": "e019c0b2-b501-404a-909e-4295b1ef66ce", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js", - "file": "/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-contacts-{contactid}-test.js", + "file": "/test/v1.5-data-contacts-{contactid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of datasets.\"", - "fullTitle": "tests for /v2.0/data/geopoliticalunits/{gpid}/datasets tests for get should respond 200 for \"An array of datasets.\"", + "title": "should respond 200 for \"Contact\"", + "fullTitle": "tests for /v1.5/data/contacts/{contactid} tests for get should respond 200 for \"Contact\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 84, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/500/datasets', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "84e309ab-1bfc-4afd-a493-4493d4070343", - "parentUUID": "f0183510-ff9d-4f59-95ad-e8e94077af52", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/contacts/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "aa69a52e-752c-40c8-81a5-2c0fc6db41ec", + "parentUUID": "e019c0b2-b501-404a-909e-4295b1ef66ce", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "84e309ab-1bfc-4afd-a493-4493d4070343" + "passes": [ + "aa69a52e-752c-40c8-81a5-2c0fc6db41ec" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 84, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1044,53 +1967,49 @@ "_timeout": 900000 }, { - "uuid": "6d552adc-b81f-4cd9-b8bf-70204099b625", - "title": "tests for /v1.5/apps/collectionTypes", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-collectionTypes-test.js", - "file": "/test/v1.5-apps-collectionTypes-test.js", + "uuid": "d1abd71f-9199-4e65-9772-18f4a912e6fe", + "title": "tests for /v1.5/data/datasets/{datasetid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-datasets-{datasetid}-test.js", + "file": "/test/v1.5-data-datasets-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "28135823-1cf1-42b0-a25f-81d26aa8e42d", + "uuid": "ed73278f-4ea3-4f30-aa62-3f7a01b8a082", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-collectionTypes-test.js", - "file": "/test/v1.5-apps-collectionTypes-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-datasets-{datasetid}-test.js", + "file": "/test/v1.5-data-datasets-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returns the set of collectiontypes recorded in Neotoma.\"", - "fullTitle": "tests for /v1.5/apps/collectionTypes tests for get should respond 200 for \"Returns the set of collectiontypes recorded in Neotoma.\"", + "title": "should respond 200 for \"An array of datasets.\"", + "fullTitle": "tests for /v1.5/data/datasets/{datasetid} tests for get should respond 200 for \"An array of datasets.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 2839, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/apps/collectionTypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "6a369476-9ba4-4bfe-be54-092cd7c397c5", - "parentUUID": "28135823-1cf1-42b0-a25f-81d26aa8e42d", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/datasets/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "809c0050-ebc6-4c67-a06a-1de6a7cb9343", + "parentUUID": "ed73278f-4ea3-4f30-aa62-3f7a01b8a082", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "6a369476-9ba4-4bfe-be54-092cd7c397c5" + "passes": [ + "809c0050-ebc6-4c67-a06a-1de6a7cb9343" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 2839, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1106,53 +2025,49 @@ "_timeout": 900000 }, { - "uuid": "7188d17b-80db-4dc5-82a1-5f208e8b9643", - "title": "tests for /v2.0/data/geopoliticalunits/{gpid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-test.js", - "file": "/test/v2.0-data-geopoliticalunits-{gpid}-test.js", + "uuid": "d369ef99-c2c3-4183-8158-127b48453ded", + "title": "tests for /v1.5/data/downloads/{datasetid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-downloads-{datasetid}-test.js", + "file": "/test/v1.5-data-downloads-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "f881c411-984e-4273-8578-f0944ca280ef", + "uuid": "7290da55-b63f-4812-b21f-1aa395cc035b", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-test.js", - "file": "/test/v2.0-data-geopoliticalunits-{gpid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-downloads-{datasetid}-test.js", + "file": "/test/v1.5-data-downloads-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of geopolitical units.\"", - "fullTitle": "tests for /v2.0/data/geopoliticalunits/{gpid} tests for get should respond 200 for \"An array of geopolitical units.\"", + "title": "should respond 200 for \"Returned download object.\"", + "fullTitle": "tests for /v1.5/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 892, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/4172', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "e0054e50-e0d3-406c-9ecb-7f19651e06d1", - "parentUUID": "f881c411-984e-4273-8578-f0944ca280ef", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/downloads/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "bf6383a4-1bdc-4ffc-9e46-2d3f7e67c7e0", + "parentUUID": "7290da55-b63f-4812-b21f-1aa395cc035b", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "e0054e50-e0d3-406c-9ecb-7f19651e06d1" + "passes": [ + "bf6383a4-1bdc-4ffc-9e46-2d3f7e67c7e0" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 892, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1168,53 +2083,49 @@ "_timeout": 900000 }, { - "uuid": "2c806a41-3d01-4c02-8e25-ff0e87253ed9", - "title": "tests for /v2.0/data/chronologies/{chronid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-chronologies-{chronid}-test.js", - "file": "/test/v2.0-data-chronologies-{chronid}-test.js", + "uuid": "cd98acf3-34d9-4649-8fac-082ea80c9274", + "title": "tests for /v1.5/data/geopoliticalunits", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-geopoliticalunits-test.js", + "file": "/test/v1.5-data-geopoliticalunits-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "19f82d3f-d5e8-4593-a470-6cc0c0edec16", + "uuid": "484aec3e-282b-483f-8245-dd76b65a1ad4", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-chronologies-{chronid}-test.js", - "file": "/test/v2.0-data-chronologies-{chronid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-geopoliticalunits-test.js", + "file": "/test/v1.5-data-geopoliticalunits-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A Neotoma chronology object.\"", - "fullTitle": "tests for /v2.0/data/chronologies/{chronid} tests for get should respond 200 for \"A Neotoma chronology object.\"", + "title": "should respond 200 for \"An array of geopolitical units.\"", + "fullTitle": "tests for /v1.5/data/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 676, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/chronologies/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "46d73e94-d82b-49ea-9a50-57656970eb03", - "parentUUID": "19f82d3f-d5e8-4593-a470-6cc0c0edec16", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits', { \n 'qs': {\"gpid\":5392,\"gpname\":\"Canada\",\"rank\":4,\"lower\":true},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "3bcf66d9-9b28-4619-84b5-e6d1e4075ee9", + "parentUUID": "484aec3e-282b-483f-8245-dd76b65a1ad4", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "46d73e94-d82b-49ea-9a50-57656970eb03" + "passes": [ + "3bcf66d9-9b28-4619-84b5-e6d1e4075ee9" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 676, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1230,53 +2141,49 @@ "_timeout": 900000 }, { - "uuid": "baae8c11-80f0-4b25-a287-b07441da7d66", - "title": "tests for /v2.0/data/publications/{publicationid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-publications-{publicationid}-test.js", - "file": "/test/v2.0-data-publications-{publicationid}-test.js", + "uuid": "62e64fb9-b891-4236-9250-65feab4f25bd", + "title": "tests for /v1.5/data/geopoliticalunits/{gpid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-geopoliticalunits-{gpid}-test.js", + "file": "/test/v1.5-data-geopoliticalunits-{gpid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "a71d78c4-af64-4881-9863-64bfa39195ee", + "uuid": "5a14e967-12d2-48a3-9802-b1f7123b11f4", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-publications-{publicationid}-test.js", - "file": "/test/v2.0-data-publications-{publicationid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-geopoliticalunits-{gpid}-test.js", + "file": "/test/v1.5-data-geopoliticalunits-{gpid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A list of publications.\"", - "fullTitle": "tests for /v2.0/data/publications/{publicationid} tests for get should respond 200 for \"A list of publications.\"", + "title": "should respond 200 for \"An array of geopolitical units.\"", + "fullTitle": "tests for /v1.5/data/geopoliticalunits/{gpid} tests for get should respond 200 for \"An array of geopolitical units.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/publications/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "c8be4d82-c5c0-4771-ad83-51cac2670e84", - "parentUUID": "a71d78c4-af64-4881-9863-64bfa39195ee", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/1068', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "a6c2e828-4576-43a5-aec0-f823cf697209", + "parentUUID": "5a14e967-12d2-48a3-9802-b1f7123b11f4", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "c8be4d82-c5c0-4771-ad83-51cac2670e84" + "passes": [ + "a6c2e828-4576-43a5-aec0-f823cf697209" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 74, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1292,53 +2199,49 @@ "_timeout": 900000 }, { - "uuid": "9876f972-fbc3-490f-bf9f-cdf07681f65e", - "title": "tests for /v2.0/apps/taxaindatasets", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taxaindatasets-test.js", - "file": "/test/v2.0-apps-taxaindatasets-test.js", + "uuid": "0690d645-1155-4b47-9610-be35708f1750", + "title": "tests for /v1.5/data/occurrence/{occurrenceid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-occurrence-{occurrenceid}-test.js", + "file": "/test/v1.5-data-occurrence-{occurrenceid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "384b293c-dfbd-4c59-9395-214d5c6d4f20", + "uuid": "f0095751-501b-4bf0-b88c-48760b094fee", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taxaindatasets-test.js", - "file": "/test/v2.0-apps-taxaindatasets-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-occurrence-{occurrenceid}-test.js", + "file": "/test/v1.5-data-occurrence-{occurrenceid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A list of all taxa in neotoma and the datasets in which they are found.\"", - "fullTitle": "tests for /v2.0/apps/taxaindatasets tests for get should respond 200 for \"A list of all taxa in neotoma and the datasets in which they are found.\"", + "title": "should respond 200 for \"A single occurrence object.\"", + "fullTitle": "tests for /v1.5/data/occurrence/{occurrenceid} tests for get should respond 200 for \"A single occurrence object.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 103, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/taxaindatasets', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "15602417-9650-4eeb-980d-69a9d3a81478", - "parentUUID": "384b293c-dfbd-4c59-9395-214d5c6d4f20", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/occurrence/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "6e97e1da-5580-43f0-8b7f-afceaa0d5751", + "parentUUID": "f0095751-501b-4bf0-b88c-48760b094fee", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "15602417-9650-4eeb-980d-69a9d3a81478" + "passes": [ + "6e97e1da-5580-43f0-8b7f-afceaa0d5751" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 103, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1354,53 +2257,49 @@ "_timeout": 900000 }, { - "uuid": "dca12f7d-65e5-489a-b1b3-beb1b9b24228", - "title": "tests for /v2.0/data/sites", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-test.js", - "file": "/test/v2.0-data-sites-test.js", + "uuid": "0ad2fb89-c1eb-4111-8a53-ea80efb5012f", + "title": "tests for /v1.5/data/sites/{siteid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-sites-{siteid}-test.js", + "file": "/test/v1.5-data-sites-{siteid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "d7f374a1-edb5-4b3f-b31e-3e9631556cd6", + "uuid": "27214b0a-0a63-4e7c-a057-2eb9ef78b6ca", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-test.js", - "file": "/test/v2.0-data-sites-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-sites-{siteid}-test.js", + "file": "/test/v1.5-data-sites-{siteid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of sites.\"", - "fullTitle": "tests for /v2.0/data/sites tests for get should respond 200 for \"An array of sites.\"", + "title": "should respond 200 for \"An array of site elements.\"", + "fullTitle": "tests for /v1.5/data/sites/{siteid} tests for get should respond 200 for \"An array of site elements.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 70, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites', { \n 'qs': {\"sitename\":\"quis Excepteur amet\",\"database\":\"Deep-Time Palynology Database\",\"datasettype\":\"insect modern\",\"altmin\": 10,\"altmax\": 100,\"loc\":\"{\\\"type\\\":\\\"Polygon\\\",\\\"crs\\\":{\\\"type\\\":\\\"name\\\",\\\"properties\\\":{\\\"name\\\":\\\"EPSG:4326\\\"}},\\\"coordinates\\\":[[[13.4,55.92],[13.5,55.92],[13.5,55.95],[13.4,55.95],[13.4,55.92]]]}\",\"siteid\":34430,\"datasetid\":42272129,\"doi\":\"10Y477123391/WKQNJ\",\"gpid\":5392,\"keyword\":\"beyond radiocarbon\",\"contactid\":1822,\"taxa\":\"nulla proident nisi\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":18302961,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "0bb20537-312f-4806-ad91-63db2bec1759", - "parentUUID": "d7f374a1-edb5-4b3f-b31e-3e9631556cd6", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/sites/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "1bcfd5b5-82e1-4974-b943-b0b6cec1b513", + "parentUUID": "27214b0a-0a63-4e7c-a057-2eb9ef78b6ca", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "0bb20537-312f-4806-ad91-63db2bec1759" + "passes": [ + "1bcfd5b5-82e1-4974-b943-b0b6cec1b513" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 70, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1416,53 +2315,49 @@ "_timeout": 900000 }, { - "uuid": "264a7b23-9533-4129-a0f6-911643726eed", - "title": "tests for /v1.5/apps/DatasetTypes", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-DatasetTypes-test.js", - "file": "/test/v1.5-apps-DatasetTypes-test.js", + "uuid": "fe410741-f749-4429-8ae4-bf1d6792ef9a", + "title": "tests for /v1.5/dbtables/{table}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-dbtables-{table}-test.js", + "file": "/test/v1.5-dbtables-{table}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "df834536-0e1f-410a-8213-add78f756693", + "uuid": "c47e3b26-4b77-4cec-b68d-7969b8821ff0", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-DatasetTypes-test.js", - "file": "/test/v1.5-apps-DatasetTypes-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-dbtables-{table}-test.js", + "file": "/test/v1.5-dbtables-{table}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returns the set of dataset types supported by Neotoma.\"", - "fullTitle": "tests for /v1.5/apps/DatasetTypes tests for get should respond 200 for \"Returns the set of dataset types supported by Neotoma.\"", + "title": "should respond 200 for \"Returned table.\"", + "fullTitle": "tests for /v1.5/dbtables/{table} tests for get should respond 200 for \"Returned table.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 85, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/apps/DatasetTypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "3d7896b4-907a-4c82-bea3-85a433e384da", - "parentUUID": "df834536-0e1f-410a-8213-add78f756693", + "code": "var response = request('get', 'http://localhost:3001/v1.5/dbtables/geochrontypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "1f99c65a-ec2d-44f6-8f11-0bb9d125e90d", + "parentUUID": "c47e3b26-4b77-4cec-b68d-7969b8821ff0", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "3d7896b4-907a-4c82-bea3-85a433e384da" + "passes": [ + "1f99c65a-ec2d-44f6-8f11-0bb9d125e90d" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 85, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1478,53 +2373,49 @@ "_timeout": 900000 }, { - "uuid": "b5e61448-7566-4edd-ad3c-96c4ef1f5725", - "title": "tests for /v1.5/data/occurrence/{occurrenceid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-occurrence-{occurrenceid}-test.js", - "file": "/test/v1.5-data-occurrence-{occurrenceid}-test.js", + "uuid": "eb6a0644-de01-413c-aa3d-bfeb3dac8643", + "title": "tests for /v2.0/apps/authorpis", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-authorpis-test.js", + "file": "/test/v2.0-apps-authorpis-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "ba8d681f-e14a-4772-8bc4-ea082bcba9b8", + "uuid": "13019a7c-25d4-4702-ad02-8e950d0a1381", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-occurrence-{occurrenceid}-test.js", - "file": "/test/v1.5-data-occurrence-{occurrenceid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-authorpis-test.js", + "file": "/test/v2.0-apps-authorpis-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A single occurrence object.\"", - "fullTitle": "tests for /v1.5/data/occurrence/{occurrenceid} tests for get should respond 200 for \"A single occurrence object.\"", + "title": "should respond 200 for \"A table of Neotoma collection types.\"", + "fullTitle": "tests for /v2.0/apps/authorpis tests for get should respond 200 for \"A table of Neotoma collection types.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 845, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/data/occurrence/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "d940f470-e763-4ef4-bf00-2a6bf24f3744", - "parentUUID": "ba8d681f-e14a-4772-8bc4-ea082bcba9b8", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/authorpis', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "8ea3e5c6-83cc-4761-819a-ef2e2202c7c2", + "parentUUID": "13019a7c-25d4-4702-ad02-8e950d0a1381", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "d940f470-e763-4ef4-bf00-2a6bf24f3744" + "passes": [ + "8ea3e5c6-83cc-4761-819a-ef2e2202c7c2" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 845, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1540,53 +2431,49 @@ "_timeout": 900000 }, { - "uuid": "482a4e91-15aa-488e-96d9-3ca64c017f8e", - "title": "tests for /v2.0/apps/constdb/datasets", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasets-test.js", - "file": "/test/v2.0-apps-constdb-datasets-test.js", + "uuid": "7b0dff9c-0e60-4662-a4c0-6ecb4a619feb", + "title": "tests for /v2.0/apps/collectiontypes", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-collectiontypes-test.js", + "file": "/test/v2.0-apps-collectiontypes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "709e7d7e-57f4-496b-b196-b66148795878", + "uuid": "97afe6a4-7544-4707-bd31-07e9c51d3d6f", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasets-test.js", - "file": "/test/v2.0-apps-constdb-datasets-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-collectiontypes-test.js", + "file": "/test/v2.0-apps-collectiontypes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returns the set of datasets contained within a constituent database, identified by the constituent database identifier. Used for quick landing page generation. \"", - "fullTitle": "tests for /v2.0/apps/constdb/datasets tests for get should respond 200 for \"Returns the set of datasets contained within a constituent database, identified by the constituent database identifier. Used for quick landing page generation. \"", + "title": "should respond 200 for \"A table of Neotoma collection types.\"", + "fullTitle": "tests for /v2.0/apps/collectiontypes tests for get should respond 200 for \"A table of Neotoma collection types.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 67, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasets', { \n 'qs': {\"dbid\":32},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "e4a547f1-1f35-4b50-ad77-6bc63efa68c5", - "parentUUID": "709e7d7e-57f4-496b-b196-b66148795878", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/collectiontypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "4522b377-f57b-42b4-85e7-46bf14823a01", + "parentUUID": "97afe6a4-7544-4707-bd31-07e9c51d3d6f", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "e4a547f1-1f35-4b50-ad77-6bc63efa68c5" + "passes": [ + "4522b377-f57b-42b4-85e7-46bf14823a01" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 67, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1602,53 +2489,49 @@ "_timeout": 900000 }, { - "uuid": "84aada66-da3a-4a13-98cb-42061654eb3f", - "title": "tests for /v2.0/data/datasets/{datasetid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-test.js", + "uuid": "1cf3d28e-d7e2-485b-b93e-979f4a0c853c", + "title": "tests for /v2.0/apps/constdb/datasetages", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasetages-test.js", + "file": "/test/v2.0-apps-constdb-datasetages-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "2a014ed1-b718-41a8-bc64-95c118c0405e", + "uuid": "e7b59700-9b9e-46a4-9eb3-e16f5efeb747", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasetages-test.js", + "file": "/test/v2.0-apps-constdb-datasetages-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of datasets.\"", - "fullTitle": "tests for /v2.0/data/datasets/{datasetid} tests for get should respond 200 for \"An array of datasets.\"", + "title": "should respond 200 for \"Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. \"", + "fullTitle": "tests for /v2.0/apps/constdb/datasetages tests for get should respond 200 for \"Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. \"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 66720, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "70fb6ed9-eb06-42bc-a8d6-590ffc5b1f7d", - "parentUUID": "2a014ed1-b718-41a8-bc64-95c118c0405e", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetages', { \n 'qs': {\"dbid\":21},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "99403969-3b4c-4948-ab8d-39ce1299dd42", + "parentUUID": "e7b59700-9b9e-46a4-9eb3-e16f5efeb747", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "70fb6ed9-eb06-42bc-a8d6-590ffc5b1f7d" + "passes": [ + "99403969-3b4c-4948-ab8d-39ce1299dd42" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 66720, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1664,53 +2547,49 @@ "_timeout": 900000 }, { - "uuid": "5149deb0-a30e-4340-8dba-5c185c9e689e", - "title": "tests for /v2.0/data/datasets/{datasetid}/contacts", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-contacts-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-contacts-test.js", + "uuid": "7e97a0a5-1186-4b06-8d6a-2def597e7f20", + "title": "tests for /v2.0/apps/constdb/datasets", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasets-test.js", + "file": "/test/v2.0-apps-constdb-datasets-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "9365aaf6-a787-430f-a564-b35d082dfbc3", + "uuid": "f45166fa-ce7a-41a4-80e5-061e283c591f", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-contacts-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-contacts-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasets-test.js", + "file": "/test/v2.0-apps-constdb-datasets-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"contact\"", - "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/contacts tests for get should respond 200 for \"contact\"", + "title": "should respond 200 for \"Returns the set of datasets contained within a constituent database, identified by the constituent database identifier. Used for quick landing page generation. \"", + "fullTitle": "tests for /v2.0/apps/constdb/datasets tests for get should respond 200 for \"Returns the set of datasets contained within a constituent database, identified by the constituent database identifier. Used for quick landing page generation. \"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 149, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/contacts', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "76dbc6b7-bf4a-4e27-9e54-6fae2d4443d4", - "parentUUID": "9365aaf6-a787-430f-a564-b35d082dfbc3", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasets', { \n 'qs': {\"dbid\":7},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "08efb405-1450-4675-8717-40f87ce29fe5", + "parentUUID": "f45166fa-ce7a-41a4-80e5-061e283c591f", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "76dbc6b7-bf4a-4e27-9e54-6fae2d4443d4" + "passes": [ + "08efb405-1450-4675-8717-40f87ce29fe5" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 149, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1726,53 +2605,49 @@ "_timeout": 900000 }, { - "uuid": "94983776-0100-4fd6-8927-d9f8e711ecc2", - "title": "tests for /v2.0/data/datasets_elc/{datasetid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets_elc-{datasetid}-test.js", - "file": "/test/v2.0-data-datasets_elc-{datasetid}-test.js", + "uuid": "61fddec7-a63d-4797-842b-ab2b270b2c01", + "title": "tests for /v2.0/apps/constdb/datasetuploads", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasetuploads-test.js", + "file": "/test/v2.0-apps-constdb-datasetuploads-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "44f2040c-7bc2-4cf1-8b46-10cb81ad9ff3", + "uuid": "1f43527b-9790-445e-bc45-6546c5d45626", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets_elc-{datasetid}-test.js", - "file": "/test/v2.0-data-datasets_elc-{datasetid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasetuploads-test.js", + "file": "/test/v2.0-apps-constdb-datasetuploads-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A Neotoma datasets object suitable for the EarthLife Consortium API.\"", - "fullTitle": "tests for /v2.0/data/datasets_elc/{datasetid} tests for get should respond 200 for \"A Neotoma datasets object suitable for the EarthLife Consortium API.\"", + "title": "should respond 200 for \"Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. \"", + "fullTitle": "tests for /v2.0/apps/constdb/datasetuploads tests for get should respond 200 for \"Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. \"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 102, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets_elc/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "64d1d9a1-ba65-4547-bdb9-3c530eda5d5a", - "parentUUID": "44f2040c-7bc2-4cf1-8b46-10cb81ad9ff3", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetuploads', { \n 'qs': {\"dbid\":29},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "97057c9f-db23-4c7b-97d0-4f57aa63f194", + "parentUUID": "1f43527b-9790-445e-bc45-6546c5d45626", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "64d1d9a1-ba65-4547-bdb9-3c530eda5d5a" + "passes": [ + "97057c9f-db23-4c7b-97d0-4f57aa63f194" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 102, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1788,53 +2663,49 @@ "_timeout": 900000 }, { - "uuid": "d950cc80-528e-4bea-abfe-88f302ad0fa3", - "title": "tests for /v2.0/apps/depositionalenvironments/root", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-depositionalenvironments-root-test.js", - "file": "/test/v2.0-apps-depositionalenvironments-root-test.js", + "uuid": "e89e3362-1621-4c17-a2bd-e5a4f5d3c869", + "title": "tests for /v2.0/apps/constdb", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-test.js", + "file": "/test/v2.0-apps-constdb-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "ba810e13-dfd7-4cbd-88db-57e345129edd", + "uuid": "961bcf33-6aba-4b2d-958f-9a36c6d6f55d", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-depositionalenvironments-root-test.js", - "file": "/test/v2.0-apps-depositionalenvironments-root-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-test.js", + "file": "/test/v2.0-apps-constdb-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A table of Neotoma collection types.\"", - "fullTitle": "tests for /v2.0/apps/depositionalenvironments/root tests for get should respond 200 for \"A table of Neotoma collection types.\"", + "title": "should respond 200 for \"Returns metadata about each [constituent database](https://www.neotomadb.org/data/constituent-databases) in Neotoma, including Summary Information about dataset types within the database and the age spans of the records in the database. Constituent databases \"", + "fullTitle": "tests for /v2.0/apps/constdb tests for get should respond 200 for \"Returns metadata about each [constituent database](https://www.neotomadb.org/data/constituent-databases) in Neotoma, including Summary Information about dataset types within the database and the age spans of the records in the database. Constituent databases \"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 62769, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/depositionalenvironments/root', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "fed7bd9a-6e98-48d1-957e-40542f290a73", - "parentUUID": "ba810e13-dfd7-4cbd-88db-57e345129edd", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "8fd4af49-6202-4489-8f9d-a60dd95196bb", + "parentUUID": "961bcf33-6aba-4b2d-958f-9a36c6d6f55d", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "fed7bd9a-6e98-48d1-957e-40542f290a73" + "passes": [ + "8fd4af49-6202-4489-8f9d-a60dd95196bb" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 62769, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1850,53 +2721,49 @@ "_timeout": 900000 }, { - "uuid": "1f11dd82-adb9-4060-981f-70e7a973a51b", - "title": "tests for /v1.5/data/geopoliticalunits", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-geopoliticalunits-test.js", - "file": "/test/v1.5-data-geopoliticalunits-test.js", + "uuid": "fc9d8052-ab1a-4927-a150-85f3a8f570fa", + "title": "tests for /v2.0/apps/datasettypes", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-datasettypes-test.js", + "file": "/test/v2.0-apps-datasettypes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "d9abd3ff-9325-4eb6-ab97-e6ae03d94a60", + "uuid": "d26a3a86-36f4-460f-bcd5-ed766a8bd259", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-geopoliticalunits-test.js", - "file": "/test/v1.5-data-geopoliticalunits-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-datasettypes-test.js", + "file": "/test/v2.0-apps-datasettypes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of geopolitical units.\"", - "fullTitle": "tests for /v1.5/data/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"", + "title": "should respond 200 for \"A table of Neotoma collection types.\"", + "fullTitle": "tests for /v2.0/apps/datasettypes tests for get should respond 200 for \"A table of Neotoma collection types.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 192, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits', { \n 'qs': {\"gpid\":5392,\"gpname\":\"Canada\",\"rank\":2,\"lower\":false},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "7a1de3e7-14cc-41db-b6bd-f982d07f48d2", - "parentUUID": "d9abd3ff-9325-4eb6-ab97-e6ae03d94a60", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/datasettypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "8b388e22-a536-40e5-906e-4cd6aef1da56", + "parentUUID": "d26a3a86-36f4-460f-bcd5-ed766a8bd259", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "7a1de3e7-14cc-41db-b6bd-f982d07f48d2" + "passes": [ + "8b388e22-a536-40e5-906e-4cd6aef1da56" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 192, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1912,53 +2779,49 @@ "_timeout": 900000 }, { - "uuid": "352f9b52-a863-4cfe-a662-1587a4109c2a", - "title": "tests for /v2.0/data/geopoliticalunits", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-test.js", - "file": "/test/v2.0-data-geopoliticalunits-test.js", + "uuid": "656dfca1-f5b7-456e-ad6d-de13241b29a0", + "title": "tests for /v2.0/apps/depenvt", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-depenvt-test.js", + "file": "/test/v2.0-apps-depenvt-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "e0583652-6daf-41ca-a925-b6ece85e2ecd", + "uuid": "b334a9d6-50e2-488a-bb78-04bed9f2116a", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-test.js", - "file": "/test/v2.0-data-geopoliticalunits-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-depenvt-test.js", + "file": "/test/v2.0-apps-depenvt-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of geopolitical units.\"", - "fullTitle": "tests for /v2.0/data/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"", + "title": "should respond 200 for \"This returns the information about depositional environment for selected dataset/collection unit/site.\"", + "fullTitle": "tests for /v2.0/apps/depenvt tests for get should respond 200 for \"This returns the information about depositional environment for selected dataset/collection unit/site.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 73, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits', { \n 'qs': {\"gpid\":5392,\"gpname\":\"Canada\",\"rank\":3,\"lower\":false},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "bf7b67ca-9500-4a40-8d48-89f985ee5a35", - "parentUUID": "e0583652-6daf-41ca-a925-b6ece85e2ecd", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/depenvt', { \n 'qs': {\"siteid\":24258,\"datasetid\":17777919,\"collectionunitid\":53393},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "812d12e4-9b6d-4225-8ac0-97cdc20b87a5", + "parentUUID": "b334a9d6-50e2-488a-bb78-04bed9f2116a", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "bf7b67ca-9500-4a40-8d48-89f985ee5a35" + "passes": [ + "812d12e4-9b6d-4225-8ac0-97cdc20b87a5" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 73, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1974,53 +2837,49 @@ "_timeout": 900000 }, { - "uuid": "63dc1e3a-a6eb-4c2e-a498-b8143a2d88b9", - "title": "tests for /v1.5/data/sites/{siteid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-sites-{siteid}-test.js", - "file": "/test/v1.5-data-sites-{siteid}-test.js", + "uuid": "ea68c127-ab35-4b4b-9096-c9da9582dc20", + "title": "tests for /v2.0/apps/depositionalenvironments/root", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-depositionalenvironments-root-test.js", + "file": "/test/v2.0-apps-depositionalenvironments-root-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "7e1d0f67-82e7-4805-a2e6-c7c7c24951c9", + "uuid": "bbba31bc-58f8-41da-9c55-5f617dc7566a", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-sites-{siteid}-test.js", - "file": "/test/v1.5-data-sites-{siteid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-depositionalenvironments-root-test.js", + "file": "/test/v2.0-apps-depositionalenvironments-root-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of site elements.\"", - "fullTitle": "tests for /v1.5/data/sites/{siteid} tests for get should respond 200 for \"An array of site elements.\"", + "title": "should respond 200 for \"A table of Neotoma collection types.\"", + "fullTitle": "tests for /v2.0/apps/depositionalenvironments/root tests for get should respond 200 for \"A table of Neotoma collection types.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 66, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/data/sites/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "656a2fca-fe3a-4d90-bc35-d8e847ccef1f", - "parentUUID": "7e1d0f67-82e7-4805-a2e6-c7c7c24951c9", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/depositionalenvironments/root', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "83d2551b-20fe-4730-9c94-86d16e310292", + "parentUUID": "bbba31bc-58f8-41da-9c55-5f617dc7566a", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "656a2fca-fe3a-4d90-bc35-d8e847ccef1f" + "passes": [ + "83d2551b-20fe-4730-9c94-86d16e310292" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 66, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2035,258 +2894,50 @@ "rootEmpty": false, "_timeout": 900000 }, - { - "uuid": "87bddeee-42dc-44b2-b54c-3d85ae83b5b1", - "title": "Get contact data:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/contacts.js", - "file": "/test/contacts.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "The default limit of 25 should be reached for contact data:", - "fullTitle": "Get contact data: The default limit of 25 should be reached for contact data:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/contacts/?contactstatus=retired')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data.length, 25);\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "1aa6f1c3-2008-45d0-8d71-9e07ec86b004", - "parentUUID": "87bddeee-42dc-44b2-b54c-3d85ae83b5b1", - "isHook": false, - "skipped": false - }, - { - "title": "The example in the swagger should return an object:", - "fullTitle": "Get contact data: The example in the swagger should return an object:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/contacts?familyname=Grimm&contactstatus=active&limit=25')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data[0]['familyname'], 'Grimm');\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "9252fb77-4ee5-4ead-b95e-b34c36a72502", - "parentUUID": "87bddeee-42dc-44b2-b54c-3d85ae83b5b1", - "isHook": false, - "skipped": false - }, - { - "title": "Contact queries should be case insensitive:", - "fullTitle": "Get contact data: Contact queries should be case insensitive:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/contacts/?contactstatus=Retired')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data.length, 25);\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "1c86b4d6-8a21-4053-9118-71ff2e2b461e", - "parentUUID": "87bddeee-42dc-44b2-b54c-3d85ae83b5b1", - "isHook": false, - "skipped": false - }, - { - "title": "Changing the limit should change the number of contacts retrieved:", - "fullTitle": "Get contact data: Changing the limit should change the number of contacts retrieved:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/contacts/?status=retired&limit=30')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data.length, 30);\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "484a160e-e8be-4489-a8a9-04926d748e58", - "parentUUID": "87bddeee-42dc-44b2-b54c-3d85ae83b5b1", - "isHook": false, - "skipped": false - }, - { - "title": "A single contact (12) should be returned.", - "fullTitle": "Get contact data: A single contact (12) should be returned.", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/contacts/12')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data[0]['contactid'], 12);\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "43362153-618c-41bc-86d3-88362fe48838", - "parentUUID": "87bddeee-42dc-44b2-b54c-3d85ae83b5b1", - "isHook": false, - "skipped": false - }, - { - "title": "All contacts from datasets should be returned.", - "fullTitle": "Get contact data: All contacts from datasets should be returned.", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets/12,13/contacts')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(res.body.data.length, 2);\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "396796a1-a907-46ff-9e9c-f941ade5ccbc", - "parentUUID": "87bddeee-42dc-44b2-b54c-3d85ae83b5b1", - "isHook": false, - "skipped": false - }, - { - "title": "The length of returned contacts should be equivalent to the number of datasets.", - "fullTitle": "Get contact data: The length of returned contacts should be equivalent to the number of datasets.", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets/12,13/contacts')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n const test = [];\n assert.strictEqual(test.length, 0);\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "ece921f7-f6ed-4baa-8f26-9e98a182f9ab", - "parentUUID": "87bddeee-42dc-44b2-b54c-3d85ae83b5b1", - "isHook": false, - "skipped": false - }, - { - "title": "The length of returned contacts should be equivalent to the number of sites.", - "fullTitle": "Get contact data: The length of returned contacts should be equivalent to the number of sites.", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets/102,1435,1,27/contacts')\n .set('Accept', 'application/json')\n .end(function(err, res) {\n if (err) return done(err);\n assert.strictEqual(Object.keys(res.body.data).length, 4);\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "03da5473-9cf1-4b1f-893b-fc017f62adc8", - "parentUUID": "87bddeee-42dc-44b2-b54c-3d85ae83b5b1", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "1aa6f1c3-2008-45d0-8d71-9e07ec86b004", - "9252fb77-4ee5-4ead-b95e-b34c36a72502", - "1c86b4d6-8a21-4053-9118-71ff2e2b461e", - "484a160e-e8be-4489-a8a9-04926d748e58", - "43362153-618c-41bc-86d3-88362fe48838", - "396796a1-a907-46ff-9e9c-f941ade5ccbc", - "ece921f7-f6ed-4baa-8f26-9e98a182f9ab", - "03da5473-9cf1-4b1f-893b-fc017f62adc8" - ], - "pending": [], - "skipped": [], - "duration": 10, - "root": false, - "rootEmpty": false, - "_timeout": 5000 - }, - { - "uuid": "008d9b5f-c7c8-4b84-8b1c-6bb3b7ace11c", - "title": "tests for /v2.0/data/summary/dstypemonth", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-dstypemonth-test.js", - "file": "/test/v2.0-data-summary-dstypemonth-test.js", + { + "uuid": "e49efd37-921c-41a2-af01-cc62c256470a", + "title": "tests for /v2.0/apps/keywords", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-keywords-test.js", + "file": "/test/v2.0-apps-keywords-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "780cb096-aa98-468d-ad09-0c8599faed19", + "uuid": "35005df8-598c-4c1b-826b-5871dd3342fa", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-dstypemonth-test.js", - "file": "/test/v2.0-data-summary-dstypemonth-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-keywords-test.js", + "file": "/test/v2.0-apps-keywords-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A count of the datasets added by datasettype for the requested period.\"", - "fullTitle": "tests for /v2.0/data/summary/dstypemonth tests for get should respond 200 for \"A count of the datasets added by datasettype for the requested period.\"", + "title": "should respond 200 for \"A list of all keywords used for analysis units in the database.\"", + "fullTitle": "tests for /v2.0/apps/keywords tests for get should respond 200 for \"A list of all keywords used for analysis units in the database.\"", "timedOut": false, - "duration": 3, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/summary/dstypemonth', { \n 'qs': {\"start\": 1,\"end\": 10},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "856554c7-817b-4172-82ba-8393c715a0b1", - "parentUUID": "780cb096-aa98-468d-ad09-0c8599faed19", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/keywords', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "9d2b458a-173d-41e7-8ad5-45c0a61b0aa6", + "parentUUID": "35005df8-598c-4c1b-826b-5871dd3342fa", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "856554c7-817b-4172-82ba-8393c715a0b1" + "passes": [ + "9d2b458a-173d-41e7-8ad5-45c0a61b0aa6" ], + "failures": [], "pending": [], "skipped": [], - "duration": 3, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2302,53 +2953,49 @@ "_timeout": 900000 }, { - "uuid": "b1df6fbd-e722-449d-b4d2-fd8daad0048c", - "title": "tests for /v2.0/data/datasets/{datasetid}/taxa", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-taxa-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-taxa-test.js", + "uuid": "bbab50a5-75c3-4b1a-8c91-7de479b4edc1", + "title": "tests for /v2.0/apps/taphonomysystems", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taphonomysystems-test.js", + "file": "/test/v2.0-apps-taphonomysystems-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "86c26700-bfee-4c0e-b85b-4b68285b4b2a", + "uuid": "22a0c59d-f024-4efd-b62b-07c9038806a8", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-taxa-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-taxa-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taphonomysystems-test.js", + "file": "/test/v2.0-apps-taphonomysystems-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Taxa\"", - "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/taxa tests for get should respond 200 for \"Taxa\"", + "title": "should respond 200 for \"A table of Neotoma collection types.\"", + "fullTitle": "tests for /v2.0/apps/taphonomysystems tests for get should respond 200 for \"A table of Neotoma collection types.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/taxa', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "8757f43d-63aa-47de-9cdc-59712750a244", - "parentUUID": "86c26700-bfee-4c0e-b85b-4b68285b4b2a", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/taphonomysystems', { \n 'qs': {\"datasettypeid\":17},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "0fcfeae8-a553-42b6-bcf5-6854743be517", + "parentUUID": "22a0c59d-f024-4efd-b62b-07c9038806a8", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "8757f43d-63aa-47de-9cdc-59712750a244" + "passes": [ + "0fcfeae8-a553-42b6-bcf5-6854743be517" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 74, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2364,53 +3011,49 @@ "_timeout": 900000 }, { - "uuid": "b689ce4a-4854-4606-bcfc-236e5f27bf86", - "title": "tests for /v2.0/data/datasets/{datasetid}/sites", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-sites-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-sites-test.js", + "uuid": "131d0567-6dc6-4586-9042-3fdb7d909eb4", + "title": "tests for /v2.0/apps/taxagrouptypes", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taxagrouptypes-test.js", + "file": "/test/v2.0-apps-taxagrouptypes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "ae79836d-a40a-400d-b40d-b7635d15000b", + "uuid": "439b8a53-a2f4-4ba5-90d4-aaba0c1bf8e8", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-sites-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-sites-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taxagrouptypes-test.js", + "file": "/test/v2.0-apps-taxagrouptypes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Site\"", - "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/sites tests for get should respond 200 for \"Site\"", + "title": "should respond 200 for \"A table of Neotoma collection types.\"", + "fullTitle": "tests for /v2.0/apps/taxagrouptypes tests for get should respond 200 for \"A table of Neotoma collection types.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 119, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/sites', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "ab90c27e-57f4-4045-bda1-b7cdd2e71388", - "parentUUID": "ae79836d-a40a-400d-b40d-b7635d15000b", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/taxagrouptypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "4e81dd13-97d6-4474-aa14-d14915e05beb", + "parentUUID": "439b8a53-a2f4-4ba5-90d4-aaba0c1bf8e8", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "ab90c27e-57f4-4045-bda1-b7cdd2e71388" + "passes": [ + "4e81dd13-97d6-4474-aa14-d14915e05beb" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 119, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2426,53 +3069,49 @@ "_timeout": 900000 }, { - "uuid": "9fec14bf-109b-40a6-9a82-e561993ab5fc", - "title": "tests for /v2.0/data/sites/{siteid}/geopoliticalunits", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-geopoliticalunits-test.js", - "file": "/test/v2.0-data-sites-{siteid}-geopoliticalunits-test.js", + "uuid": "7d7ac09c-88cf-4e4d-932c-852caccdd2c7", + "title": "tests for /v2.0/apps/taxaindatasets", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taxaindatasets-test.js", + "file": "/test/v2.0-apps-taxaindatasets-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "61eeab88-38f3-45ad-9add-ed7446a7e61a", + "uuid": "9dee92f7-6847-4171-b982-610c969827f7", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-geopoliticalunits-test.js", - "file": "/test/v2.0-data-sites-{siteid}-geopoliticalunits-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taxaindatasets-test.js", + "file": "/test/v2.0-apps-taxaindatasets-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of geopolitical units.\"", - "fullTitle": "tests for /v2.0/data/sites/{siteid}/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"", + "title": "should respond 200 for \"A list of all taxa in neotoma and the datasets in which they are found.\"", + "fullTitle": "tests for /v2.0/apps/taxaindatasets tests for get should respond 200 for \"A list of all taxa in neotoma and the datasets in which they are found.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 6318, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/geopoliticalunits', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "d4e3873c-edef-45b4-b5f2-6828dfd41934", - "parentUUID": "61eeab88-38f3-45ad-9add-ed7446a7e61a", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/taxaindatasets', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "8a653429-5c4c-4472-9e35-80d663f15997", + "parentUUID": "9dee92f7-6847-4171-b982-610c969827f7", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "d4e3873c-edef-45b4-b5f2-6828dfd41934" + "passes": [ + "8a653429-5c4c-4472-9e35-80d663f15997" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 6318, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2488,53 +3127,49 @@ "_timeout": 900000 }, { - "uuid": "34939a4c-c713-4e2a-84db-7b20f70d3b6d", - "title": "tests for /v2.0/data/sites/{siteid}/datasets", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-datasets-test.js", - "file": "/test/v2.0-data-sites-{siteid}-datasets-test.js", + "uuid": "5ec0dc50-4af6-4538-bfb6-660236d4fa37", + "title": "tests for /v2.0/data/aedna/sequences/{datasetid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aedna-sequences-{datasetid}-test.js", + "file": "/test/v2.0-data-aedna-sequences-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "a8a0a1b1-cc94-4400-ad58-c49c7dc8b291", + "uuid": "1414e114-9535-4ae2-8c9a-202c3c8bebcc", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-datasets-test.js", - "file": "/test/v2.0-data-sites-{siteid}-datasets-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aedna-sequences-{datasetid}-test.js", + "file": "/test/v2.0-data-aedna-sequences-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of datasets.\"", - "fullTitle": "tests for /v2.0/data/sites/{siteid}/datasets tests for get should respond 200 for \"An array of datasets.\"", + "title": "should respond 200 for \"aeDNA sequences grouped by taxon for the dataset.\"", + "fullTitle": "tests for /v2.0/data/aedna/sequences/{datasetid} tests for get should respond 200 for \"aeDNA sequences grouped by taxon for the dataset.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 76, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/datasets', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "e9276465-5a93-45ca-863c-083e7b1972fc", - "parentUUID": "a8a0a1b1-cc94-4400-ad58-c49c7dc8b291", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/aedna/sequences/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "35c181fb-1d45-4af6-bd63-3bdd94af8fc7", + "parentUUID": "1414e114-9535-4ae2-8c9a-202c3c8bebcc", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "e9276465-5a93-45ca-863c-083e7b1972fc" + "passes": [ + "35c181fb-1d45-4af6-bd63-3bdd94af8fc7" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 76, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2550,53 +3185,49 @@ "_timeout": 900000 }, { - "uuid": "d7bd1df9-0d58-4b7f-b965-03d529cdda12", - "title": "tests for /v2.0/apps/depenvt", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-depenvt-test.js", - "file": "/test/v2.0-apps-depenvt-test.js", + "uuid": "85a21095-8e9c-42f1-ad00-e7824deb573e", + "title": "tests for /v2.0/data/aedna/taxa/{taxonid}/sequences", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aedna-taxa-{taxonid}-sequences-test.js", + "file": "/test/v2.0-data-aedna-taxa-{taxonid}-sequences-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "65d0dec4-8604-4e3b-ac46-f29d2aaaa275", + "uuid": "2170a557-cd24-4a34-aa28-daf8532efe00", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-depenvt-test.js", - "file": "/test/v2.0-apps-depenvt-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aedna-taxa-{taxonid}-sequences-test.js", + "file": "/test/v2.0-data-aedna-taxa-{taxonid}-sequences-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"This returns the information about depositional environment for selected dataset/collection unit/site.\"", - "fullTitle": "tests for /v2.0/apps/depenvt tests for get should respond 200 for \"This returns the information about depositional environment for selected dataset/collection unit/site.\"", + "title": "should respond 200 for \"An array of aeDNA sequences for the taxon.\"", + "fullTitle": "tests for /v2.0/data/aedna/taxa/{taxonid}/sequences tests for get should respond 200 for \"An array of aeDNA sequences for the taxon.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 67, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/depenvt', { \n 'qs': {\"siteid\":8324,\"datasetid\":46455564,\"collectionunitid\":17362},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "b1344db6-d7f7-4718-b33a-b07f3747d563", - "parentUUID": "65d0dec4-8604-4e3b-ac46-f29d2aaaa275", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/aedna/taxa/1452/sequences', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "fdae5379-7117-4199-8c53-239f11abf1ff", + "parentUUID": "2170a557-cd24-4a34-aa28-daf8532efe00", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "b1344db6-d7f7-4718-b33a-b07f3747d563" + "passes": [ + "fdae5379-7117-4199-8c53-239f11abf1ff" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 67, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2612,53 +3243,49 @@ "_timeout": 900000 }, { - "uuid": "b4981be0-7299-410d-a729-12ca746f8bb6", - "title": "tests for /v2.0/data/summary/dsdbmonth", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-dsdbmonth-test.js", - "file": "/test/v2.0-data-summary-dsdbmonth-test.js", + "uuid": "eddaedbe-59ff-4f4e-906e-447e2f2d90e8", + "title": "tests for /v2.0/data/aggregatedatasets/{aggdatasetid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js", + "file": "/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "e2c9d462-b621-4470-a53d-22af57f2150e", + "uuid": "6c21fa98-727e-4a5f-8719-36f55301889e", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-dsdbmonth-test.js", - "file": "/test/v2.0-data-summary-dsdbmonth-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js", + "file": "/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A count of the datasets added by database for the requested period.\"", - "fullTitle": "tests for /v2.0/data/summary/dsdbmonth tests for get should respond 200 for \"A count of the datasets added by database for the requested period.\"", + "title": "should respond 200 for \"An array of datasets.\"", + "fullTitle": "tests for /v2.0/data/aggregatedatasets/{aggdatasetid} tests for get should respond 200 for \"An array of datasets.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 83, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/summary/dsdbmonth', { \n 'qs': {\"start\": 1,\"end\": 10},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "a13845fd-6938-4bd1-b0e1-152deeac047b", - "parentUUID": "e2c9d462-b621-4470-a53d-22af57f2150e", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/aggregatedatasets/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "1e44d13b-dd97-4b8e-b31a-61f538d9d00e", + "parentUUID": "6c21fa98-727e-4a5f-8719-36f55301889e", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "a13845fd-6938-4bd1-b0e1-152deeac047b" + "passes": [ + "1e44d13b-dd97-4b8e-b31a-61f538d9d00e" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 83, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2674,53 +3301,49 @@ "_timeout": 900000 }, { - "uuid": "da7e75aa-e051-4e81-b340-a6da72190e33", - "title": "tests for /v2.0/data/spatial/faunal", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-faunal-test.js", - "file": "/test/v2.0-data-spatial-faunal-test.js", + "uuid": "710c26d5-f130-45ba-a163-e9cb5a376bba", + "title": "tests for /v2.0/data/chronologies/{chronid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-chronologies-{chronid}-test.js", + "file": "/test/v2.0-data-chronologies-{chronid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "21c02146-f088-45fe-a086-a97120ddc065", + "uuid": "119427c0-1453-4850-b87b-80bbc6558c9e", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-faunal-test.js", - "file": "/test/v2.0-data-spatial-faunal-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-chronologies-{chronid}-test.js", + "file": "/test/v2.0-data-chronologies-{chronid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An object containing all matched species names, identifiers and a GeoJSON polygon representing the UNIONed ranges for the selected species. All data is derived from:
* Mammal Diversity Database. (2020). Mammal Diversity Database (Version 1.2) [Data set]. Zenodo. DOI: [10.5281/zenodo.4139818](https://doi.org/10.5281/zenodo.4139818).
* Map of Life. (2021). Mammal range maps harmonised to the Mammals Diversity Database [Data set]. Map of Life. [10.48600/MOL-48VZ-P413](https://doi.org/10.48600/MOL-48VZ-P413) \"", - "fullTitle": "tests for /v2.0/data/spatial/faunal tests for get should respond 200 for \"An object containing all matched species names, identifiers and a GeoJSON polygon representing the UNIONed ranges for the selected species. All data is derived from:
* Mammal Diversity Database. (2020). Mammal Diversity Database (Version 1.2) [Data set]. Zenodo. DOI: [10.5281/zenodo.4139818](https://doi.org/10.5281/zenodo.4139818).
* Map of Life. (2021). Mammal range maps harmonised to the Mammals Diversity Database [Data set]. Map of Life. [10.48600/MOL-48VZ-P413](https://doi.org/10.48600/MOL-48VZ-P413) \"", + "title": "should respond 200 for \"A Neotoma chronology object.\"", + "fullTitle": "tests for /v2.0/data/chronologies/{chronid} tests for get should respond 200 for \"A Neotoma chronology object.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 128, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/faunal', { \n 'qs': {\"sciname\":\"est labore dolore veniam\",\"proj\": 4326,\"prec\": 1000},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "dba55fba-1dbb-4acf-9886-e9380f8eb893", - "parentUUID": "21c02146-f088-45fe-a086-a97120ddc065", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/chronologies/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "7ab7c24b-23d3-4c36-b7ea-a31c77e4dd19", + "parentUUID": "119427c0-1453-4850-b87b-80bbc6558c9e", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "dba55fba-1dbb-4acf-9886-e9380f8eb893" + "passes": [ + "7ab7c24b-23d3-4c36-b7ea-a31c77e4dd19" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 128, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2736,53 +3359,49 @@ "_timeout": 900000 }, { - "uuid": "4818f360-4019-48cc-a1ca-07b0e48a6bf6", - "title": "tests for /v1.5/data/downloads/{datasetid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-downloads-{datasetid}-test.js", - "file": "/test/v1.5-data-downloads-{datasetid}-test.js", + "uuid": "ac418dbb-81ea-48ce-9656-c43950927f75", + "title": "tests for /v2.0/data/contacts", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-test.js", + "file": "/test/v2.0-data-contacts-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "aa660909-2e42-492e-a4f7-7ad3de5ebbc6", + "uuid": "11365856-fdb6-4e6e-a752-e05a89f7dc45", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-downloads-{datasetid}-test.js", - "file": "/test/v1.5-data-downloads-{datasetid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-test.js", + "file": "/test/v2.0-data-contacts-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returned download object.\"", - "fullTitle": "tests for /v1.5/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"", + "title": "should respond 200 for \"contact\"", + "fullTitle": "tests for /v2.0/data/contacts tests for get should respond 200 for \"contact\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 78, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/data/downloads/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "1286b7e7-f71c-44a9-9486-fe52ea3605bc", - "parentUUID": "aa660909-2e42-492e-a4f7-7ad3de5ebbc6", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts', { \n 'qs': {\"contactid\":8846,\"familyname\":\"y-NZdTlQpz \",\"contactname\":\"NKlgiHNwnj\",\"contactstatus\":\"retired\",\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "a10723f7-fba6-407b-9489-821084101a9d", + "parentUUID": "11365856-fdb6-4e6e-a752-e05a89f7dc45", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "1286b7e7-f71c-44a9-9486-fe52ea3605bc" + "passes": [ + "a10723f7-fba6-407b-9489-821084101a9d" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 78, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2798,53 +3417,49 @@ "_timeout": 900000 }, { - "uuid": "c92e5a33-4f2a-4dec-8c92-10f7d81617c5", - "title": "tests for /v2.0/apps/constdb/datasetages", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasetages-test.js", - "file": "/test/v2.0-apps-constdb-datasetages-test.js", + "uuid": "dcd6bc7f-53f6-477c-948a-434b2274a3b7", + "title": "tests for /v2.0/data/contacts/{contactid}/publications", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-publications-test.js", + "file": "/test/v2.0-data-contacts-{contactid}-publications-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "77a39925-c7c1-4597-b5b4-41895aa6cd9d", + "uuid": "a8999778-5f73-481c-8559-ad6507ce189c", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasetages-test.js", - "file": "/test/v2.0-apps-constdb-datasetages-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-publications-test.js", + "file": "/test/v2.0-data-contacts-{contactid}-publications-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. \"", - "fullTitle": "tests for /v2.0/apps/constdb/datasetages tests for get should respond 200 for \"Returns an ordered array (from earliest to latest) of upload counts by month (YYYY/MM/DD; all days as 01). Months with no uploads are excluded. \"", + "title": "should respond 200 for \"An array of publications associated with the contact.\"", + "fullTitle": "tests for /v2.0/data/contacts/{contactid}/publications tests for get should respond 200 for \"An array of publications associated with the contact.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetages', { \n 'qs': {\"dbid\":2},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "1ddad6b0-f444-4169-bd9c-12d3cfddfdb6", - "parentUUID": "77a39925-c7c1-4597-b5b4-41895aa6cd9d", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/2640/publications', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "0d0b3770-ec75-4a38-bae6-90c85ad6b32e", + "parentUUID": "a8999778-5f73-481c-8559-ad6507ce189c", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "1ddad6b0-f444-4169-bd9c-12d3cfddfdb6" + "passes": [ + "0d0b3770-ec75-4a38-bae6-90c85ad6b32e" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 74, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2860,53 +3475,49 @@ "_timeout": 900000 }, { - "uuid": "20b279f6-1494-4417-b901-5b018c3a26e8", - "title": "tests for /v2.0/data/frozen/{datasetid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-frozen-{datasetid}-test.js", - "file": "/test/v2.0-data-frozen-{datasetid}-test.js", + "uuid": "4b416769-7aa4-4705-a77b-d225d2f1c8ad", + "title": "tests for /v2.0/data/contacts/{contactid}/sites", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-sites-test.js", + "file": "/test/v2.0-data-contacts-{contactid}-sites-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "199d399e-91d8-4b55-9b6f-d1dad55d44c6", + "uuid": "531f2543-e799-4db0-88bd-d54c18ebec32", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-frozen-{datasetid}-test.js", - "file": "/test/v2.0-data-frozen-{datasetid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-sites-test.js", + "file": "/test/v2.0-data-contacts-{contactid}-sites-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returned download object.\"", - "fullTitle": "tests for /v2.0/data/frozen/{datasetid} tests for get should respond 200 for \"Returned download object.\"", + "title": "should respond 200 for \"A Neotoma sites object.\"", + "fullTitle": "tests for /v2.0/data/contacts/{contactid}/sites tests for get should respond 200 for \"A Neotoma sites object.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 101, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/frozen/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "91ac7954-0f8b-468d-8a4b-766cea329769", - "parentUUID": "199d399e-91d8-4b55-9b6f-d1dad55d44c6", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/5825/sites', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "f32e7633-1600-4066-80c1-726b0b0a034e", + "parentUUID": "531f2543-e799-4db0-88bd-d54c18ebec32", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "91ac7954-0f8b-468d-8a4b-766cea329769" + "passes": [ + "f32e7633-1600-4066-80c1-726b0b0a034e" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 101, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2922,53 +3533,49 @@ "_timeout": 900000 }, { - "uuid": "96988778-e369-45ec-88a0-17983c5c9a0c", - "title": "tests for /v2.0/data/contacts/{contactid}/sites", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-sites-test.js", - "file": "/test/v2.0-data-contacts-{contactid}-sites-test.js", + "uuid": "2eb3506c-4c03-466c-b6ba-1987c6389810", + "title": "tests for /v2.0/data/contacts/{contactid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-test.js", + "file": "/test/v2.0-data-contacts-{contactid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "b139c00b-2c5a-407a-951a-651a114b1964", + "uuid": "ac764be0-123e-4ce0-97bd-9f2a85d3d21b", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-sites-test.js", - "file": "/test/v2.0-data-contacts-{contactid}-sites-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-test.js", + "file": "/test/v2.0-data-contacts-{contactid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A Neotoma sites object.\"", - "fullTitle": "tests for /v2.0/data/contacts/{contactid}/sites tests for get should respond 200 for \"A Neotoma sites object.\"", + "title": "should respond 200 for \"A Neotoma contacts object.\"", + "fullTitle": "tests for /v2.0/data/contacts/{contactid} tests for get should respond 200 for \"A Neotoma contacts object.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/634/sites', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "a51852e1-cba9-4dd3-ad92-604b98ac29fa", - "parentUUID": "b139c00b-2c5a-407a-951a-651a114b1964", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/2394', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "a7e5ac45-f71f-4f10-b449-9cba55b1e488", + "parentUUID": "ac764be0-123e-4ce0-97bd-9f2a85d3d21b", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "a51852e1-cba9-4dd3-ad92-604b98ac29fa" + "passes": [ + "a7e5ac45-f71f-4f10-b449-9cba55b1e488" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2984,53 +3591,49 @@ "_timeout": 900000 }, { - "uuid": "0a3b32df-f80d-44a6-a2d4-ad037c722cbf", - "title": "tests for /v2.0/data/taxa", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-test.js", - "file": "/test/v2.0-data-taxa-test.js", + "uuid": "3cbee897-27d3-4eba-bb33-87f99499f692", + "title": "tests for /v2.0/data/datasets/db", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-db-test.js", + "file": "/test/v2.0-data-datasets-db-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "1cc014ea-5d79-4ff6-8986-0c8ada816a75", + "uuid": "44cc4ebf-8506-4103-a092-f7c0e7a21eaa", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-test.js", - "file": "/test/v2.0-data-taxa-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-db-test.js", + "file": "/test/v2.0-data-datasets-db-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A taxon or array of taxa.\"", - "fullTitle": "tests for /v2.0/data/taxa tests for get should respond 200 for \"A taxon or array of taxa.\"", + "title": "should respond 200 for \"Datasets\"", + "fullTitle": "tests for /v2.0/data/datasets/db tests for get should respond 200 for \"Datasets\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 53756, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa', { \n 'qs': {\"taxonname\":\"sed tempor fugiat Lorem cupidatat\",\"taxagroup\":\"pariatur amet\",\"ecolgroup\":\"dolore\",\"status\":true,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "6a2dc1d9-816f-4028-aec5-28b1a8bafa50", - "parentUUID": "1cc014ea-5d79-4ff6-8986-0c8ada816a75", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/db', { \n 'qs': {\"limit\": 10,\"offset\": 0,\"database\":\"Faunal Isotope Database\"},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "c1e7192b-4667-4bf3-bcab-7a2091c9f240", + "parentUUID": "44cc4ebf-8506-4103-a092-f7c0e7a21eaa", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "6a2dc1d9-816f-4028-aec5-28b1a8bafa50" + "passes": [ + "c1e7192b-4667-4bf3-bcab-7a2091c9f240" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 53756, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3046,53 +3649,49 @@ "_timeout": 900000 }, { - "uuid": "b1081211-7e2f-4670-aa41-9c4eabbbea88", - "title": "tests for /v2.0/data/dbtables/{table}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-dbtables-{table}-test.js", - "file": "/test/v2.0-data-dbtables-{table}-test.js", + "uuid": "8522af5b-a2fd-48ef-9792-7b8f7f8434f4", + "title": "tests for /v2.0/data/datasets", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-test.js", + "file": "/test/v2.0-data-datasets-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "15e51e36-9954-4f69-be11-b9b0e242a99d", + "uuid": "890b9bf9-7737-4bc4-a082-132eff06cc38", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-dbtables-{table}-test.js", - "file": "/test/v2.0-data-dbtables-{table}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-test.js", + "file": "/test/v2.0-data-datasets-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returned table.\"", - "fullTitle": "tests for /v2.0/data/dbtables/{table} tests for get should respond 200 for \"Returned table.\"", + "title": "should respond 200 for \"An array of datasets.\"", + "fullTitle": "tests for /v2.0/data/datasets tests for get should respond 200 for \"An array of datasets.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 188, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/dbtables/enim', { \n 'qs': {\"count\":true,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "848b92bf-bfe8-4439-9f28-9ee49dc10081", - "parentUUID": "15e51e36-9954-4f69-be11-b9b0e242a99d", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets', { \n 'qs': {\"sitename\":\"eiusmod incididunt culpa adipisicing\",\"database\":\"Neotoma Ostracode Database\",\"datasettype\":\"modern biochemistry\",\"altmin\": 10,\"altmax\": 100,\"loc\":\"{\\\"type\\\":\\\"Polygon\\\",\\\"crs\\\":{\\\"type\\\":\\\"name\\\",\\\"properties\\\":{\\\"name\\\":\\\"EPSG:4326\\\"}},\\\"coordinates\\\":[[[13.4,55.92],[13.5,55.92],[13.5,55.95],[13.4,55.95],[13.4,55.92]]]}\",\"siteid\":49244,\"datasetid\":61572416,\"doi\":\"10K48404/QE\",\"gpid\":5392,\"keyword\":\"bottom\",\"contactid\":19343,\"taxa\":\"incididunt Lorem consectetur consequat anim\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":11916304,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "caca0ee1-5dea-4e1b-8c3c-ab4179b176f6", + "parentUUID": "890b9bf9-7737-4bc4-a082-132eff06cc38", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "848b92bf-bfe8-4439-9f28-9ee49dc10081" + "passes": [ + "caca0ee1-5dea-4e1b-8c3c-ab4179b176f6" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 188, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3108,53 +3707,49 @@ "_timeout": 900000 }, { - "uuid": "1a41a6ac-046f-4469-b75b-8675e6c4304e", - "title": "tests for /v2.0/data/pollen", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-pollen-test.js", - "file": "/test/v2.0-data-pollen-test.js", + "uuid": "1aad57d4-1279-4fc6-807c-496850637c11", + "title": "tests for /v2.0/data/datasets/{datasetid}/assays", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-assays-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-assays-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "22c4a812-1da3-4e11-ab1f-16101f8a6786", + "uuid": "89683cb5-7db9-42ef-8a63-0d091320a009", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-pollen-test.js", - "file": "/test/v2.0-data-pollen-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-assays-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-assays-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A record of all pollen samples in time/space for a particular taxon.\"", - "fullTitle": "tests for /v2.0/data/pollen tests for get should respond 200 for \"A record of all pollen samples in time/space for a particular taxon.\"", + "title": "should respond 200 for \"Assays\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/assays tests for get should respond 200 for \"Assays\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 74, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/pollen', { \n 'qs': {\"taxonname\":\"veniam dolore ut\",\"taxonid\":36159,\"siteid\":46086,\"sitename\":\"cillum aliqua culpa ea aute\",\"datasettype\":\"dinoflagellates\",\"altmin\": 10,\"altmax\": 100,\"loc\":\"{\\\"type\\\":\\\"Polygon\\\",\\\"crs\\\":{\\\"type\\\":\\\"name\\\",\\\"properties\\\":{\\\"name\\\":\\\"EPSG:4326\\\"}},\\\"coordinates\\\":[[[13.4,55.92],[13.5,55.92],[13.5,55.95],[13.4,55.95],[13.4,55.92]]]}\",\"ageof\":12724721,\"ageyoung\": 1000,\"ageold\": 10000,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "ed634821-7b14-4573-af7c-10cbc7597ec5", - "parentUUID": "22c4a812-1da3-4e11-ab1f-16101f8a6786", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/assays', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "b779ecab-12de-422d-a4a9-b5a6ed470556", + "parentUUID": "89683cb5-7db9-42ef-8a63-0d091320a009", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "ed634821-7b14-4573-af7c-10cbc7597ec5" + "passes": [ + "b779ecab-12de-422d-a4a9-b5a6ed470556" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 74, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3170,53 +3765,49 @@ "_timeout": 900000 }, { - "uuid": "2406a35c-f7e7-42f8-afd7-1459afaf5e76", - "title": "tests for /v2.0/data/datasets", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-test.js", - "file": "/test/v2.0-data-datasets-test.js", + "uuid": "f85d44b9-4975-4a44-b7f9-52f6ce8bd2ef", + "title": "tests for /v2.0/data/datasets/{datasetid}/chronologies", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-chronologies-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-chronologies-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "74b6a6d6-1ccf-4f11-9cbd-a5ccbf50fa15", + "uuid": "7655ce4c-b533-464e-a207-edeadbe8d3bc", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-test.js", - "file": "/test/v2.0-data-datasets-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-chronologies-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-chronologies-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ - { - "title": "should respond 200 for \"An array of datasets.\"", - "fullTitle": "tests for /v2.0/data/datasets tests for get should respond 200 for \"An array of datasets.\"", + { + "title": "should respond 200 for \"chronology\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/chronologies tests for get should respond 200 for \"chronology\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 80, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets', { \n 'qs': {\"sitename\":\"aute\",\"database\":\"Canadian Pollen Database\",\"datasettype\":\"biomarker\",\"altmin\": 10,\"altmax\": 100,\"loc\":\"{\\\"type\\\":\\\"Polygon\\\",\\\"crs\\\":{\\\"type\\\":\\\"name\\\",\\\"properties\\\":{\\\"name\\\":\\\"EPSG:4326\\\"}},\\\"coordinates\\\":[[[13.4,55.92],[13.5,55.92],[13.5,55.95],[13.4,55.95],[13.4,55.92]]]}\",\"siteid\":37640,\"datasetid\":25302476,\"doi\":\"10_15933/4\",\"gpid\":5392,\"keyword\":\"bottom\",\"contactid\":16837,\"taxa\":\"dolor labore Excepteur id quis\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":19353900,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "28d27091-c586-41df-95e4-25a07cfca0d5", - "parentUUID": "74b6a6d6-1ccf-4f11-9cbd-a5ccbf50fa15", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/chronologies', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "2e609700-e498-4089-91b0-27ee105b9173", + "parentUUID": "7655ce4c-b533-464e-a207-edeadbe8d3bc", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "28d27091-c586-41df-95e4-25a07cfca0d5" + "passes": [ + "2e609700-e498-4089-91b0-27ee105b9173" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 80, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3232,135 +3823,49 @@ "_timeout": 900000 }, { - "uuid": "bb234a93-5a7e-49e1-a6d7-b705999c3e48", - "title": "Any path goes to the api documentation:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/neotoma_test.js", - "file": "/test/neotoma_test.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "`api-docs` redirects to the api documentation.", - "fullTitle": "Any path goes to the api documentation: `api-docs` redirects to the api documentation.", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2')\n .set('Accept', 'application/json')\n .expect(302, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "15f2fb59-bf11-42a3-9497-3339d785ddac", - "parentUUID": "bb234a93-5a7e-49e1-a6d7-b705999c3e48", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "15f2fb59-bf11-42a3-9497-3339d785ddac" - ], - "pending": [], - "skipped": [], - "duration": 2, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "b33cfb1a-ed92-4f29-ab26-c81b00125653", - "title": "Get chronology data by datasetid:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/chronologies.js", - "file": "/test/chronologies.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "A call to two datasets returns two datasets of data:", - "fullTitle": "Get chronology data by datasetid: A call to two datasets returns two datasets of data:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets/684,1001/chronologies')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body['data'].length === 4;\n })\n .expect(200, done());", - "err": {}, - "uuid": "009c1745-9032-4b5f-87a8-fdc37e5b3f55", - "parentUUID": "b33cfb1a-ed92-4f29-ab26-c81b00125653", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "009c1745-9032-4b5f-87a8-fdc37e5b3f55" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 5000 - }, - { - "uuid": "a2944ee1-1b4a-44ab-8b04-97ed26bb7e66", - "title": "tests for /v2.0/data/spatial/icesheet", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-icesheet-test.js", - "file": "/test/v2.0-data-spatial-icesheet-test.js", + "uuid": "b4127a5f-b11b-4c42-8d3f-15bab7cf54c9", + "title": "tests for /v2.0/data/datasets/{datasetid}/contacts", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-contacts-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-contacts-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "3f5d6754-f967-4964-9ee0-4a32e096981f", + "uuid": "2e3ede1b-721e-4e6a-96e5-01c2f30eeec3", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-icesheet-test.js", - "file": "/test/v2.0-data-spatial-icesheet-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-contacts-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-contacts-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An object containing glacial extents for the selected time period (in **calibrated radiocarbon years**). \"", - "fullTitle": "tests for /v2.0/data/spatial/icesheet tests for get should respond 200 for \"An object containing glacial extents for the selected time period (in **calibrated radiocarbon years**). \"", + "title": "should respond 200 for \"contact\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/contacts tests for get should respond 200 for \"contact\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 65, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/icesheet', { \n 'qs': {\"age\":5589,\"proj\": 4326,\"prec\": 1000},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "bcedab0b-881e-46e0-8ac5-0c855d07447e", - "parentUUID": "3f5d6754-f967-4964-9ee0-4a32e096981f", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/contacts', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "3ce366d6-60d0-43ad-b663-81c2dcadd7db", + "parentUUID": "2e3ede1b-721e-4e6a-96e5-01c2f30eeec3", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "bcedab0b-881e-46e0-8ac5-0c855d07447e" + "passes": [ + "3ce366d6-60d0-43ad-b663-81c2dcadd7db" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 65, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3376,53 +3881,49 @@ "_timeout": 900000 }, { - "uuid": "8a15b52c-3571-4109-8f06-7f861670e4c3", - "title": "tests for /v2.0/data/datasets/db", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-db-test.js", - "file": "/test/v2.0-data-datasets-db-test.js", + "uuid": "e928df21-81a1-43de-9359-257d5bc93b14", + "title": "tests for /v2.0/data/datasets/{datasetid}/doi", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-doi-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-doi-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "14714e3f-24c4-4c30-84a2-406f518cc698", + "uuid": "949b8856-54e5-44ec-857a-e96ebf093aab", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-db-test.js", - "file": "/test/v2.0-data-datasets-db-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-doi-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-doi-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Datasets\"", - "fullTitle": "tests for /v2.0/data/datasets/db tests for get should respond 200 for \"Datasets\"", + "title": "should respond 200 for \"DOI\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/doi tests for get should respond 200 for \"DOI\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 67, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/db', { \n 'qs': {\"limit\": 10,\"offset\": 0,\"database\":\"Canadian Museum of Nature-Delorme Ostracoda-Surface Samples\"},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "b79724c9-86bf-412b-a361-b5f8cdc66b60", - "parentUUID": "14714e3f-24c4-4c30-84a2-406f518cc698", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/doi', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "cf5ba705-df27-4aad-a0e3-f677dac5b2b0", + "parentUUID": "949b8856-54e5-44ec-857a-e96ebf093aab", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "b79724c9-86bf-412b-a361-b5f8cdc66b60" + "passes": [ + "cf5ba705-df27-4aad-a0e3-f677dac5b2b0" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 67, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3438,53 +3939,49 @@ "_timeout": 900000 }, { - "uuid": "46145df5-cd6c-4130-afb9-4d895097ce04", - "title": "tests for /v2.0/data/taxa/{taxonid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-{taxonid}-test.js", - "file": "/test/v2.0-data-taxa-{taxonid}-test.js", + "uuid": "56b9b2aa-6ddc-460f-b9c8-6c3fce8aaef2", + "title": "tests for /v2.0/data/datasets/{datasetid}/lithology", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-lithology-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-lithology-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "ccb9e7a7-6673-4275-90bc-d8647cc3f536", + "uuid": "8eda08fc-d30a-4995-8625-ab5a9c8c35a5", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-{taxonid}-test.js", - "file": "/test/v2.0-data-taxa-{taxonid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-lithology-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-lithology-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A taxon or array of taxa.\"", - "fullTitle": "tests for /v2.0/data/taxa/{taxonid} tests for get should respond 200 for \"A taxon or array of taxa.\"", + "title": "should respond 200 for \"Lithology\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/lithology tests for get should respond 200 for \"Lithology\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "0f2998d4-e7a4-4cfa-ad70-c77765b4573d", - "parentUUID": "ccb9e7a7-6673-4275-90bc-d8647cc3f536", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/lithology', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "011aa96c-a2c3-48b2-8487-d23859103d09", + "parentUUID": "8eda08fc-d30a-4995-8625-ab5a9c8c35a5", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "0f2998d4-e7a4-4cfa-ad70-c77765b4573d" + "passes": [ + "011aa96c-a2c3-48b2-8487-d23859103d09" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3500,53 +3997,49 @@ "_timeout": 900000 }, { - "uuid": "f4b5d05f-840b-4825-8aaa-920c9cd75b8a", - "title": "tests for /v2.0/data/pollen/{id}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-pollen-{id}-test.js", - "file": "/test/v2.0-data-pollen-{id}-test.js", + "uuid": "fc5c3734-2337-4e33-b820-099440460ec9", + "title": "tests for /v2.0/data/datasets/{datasetid}/projects", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-projects-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-projects-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "d4b70366-6918-46a0-bd6a-650e03d9da19", + "uuid": "47228d84-e185-4873-b2ca-05367ed5e559", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-pollen-{id}-test.js", - "file": "/test/v2.0-data-pollen-{id}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-projects-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-projects-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A record of all pollen samples in time/space for a particular taxon.\"", - "fullTitle": "tests for /v2.0/data/pollen/{id} tests for get should respond 200 for \"A record of all pollen samples in time/space for a particular taxon.\"", + "title": "should respond 200 for \"Projects\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/projects tests for get should respond 200 for \"Projects\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 107, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/pollen/1828', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "05e832a4-146b-47a0-b245-a6157244c4de", - "parentUUID": "d4b70366-6918-46a0-bd6a-650e03d9da19", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/projects', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "fc4450d8-17c6-4d01-b67b-c28bdf3291dd", + "parentUUID": "47228d84-e185-4873-b2ca-05367ed5e559", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "05e832a4-146b-47a0-b245-a6157244c4de" + "passes": [ + "fc4450d8-17c6-4d01-b67b-c28bdf3291dd" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 107, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3562,188 +4055,107 @@ "_timeout": 900000 }, { - "uuid": "d2298a48-92cb-4bdd-8c00-3eece983db45", - "title": "Get site data any number of ways:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/sites.js", - "file": "/test/sites.js", + "uuid": "ff5d68f5-83cb-4ffc-8a4f-337205f49dd8", + "title": "tests for /v2.0/data/datasets/{datasetid}/publications", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-publications-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-publications-test.js", "beforeHooks": [], "afterHooks": [], - "tests": [ - { - "title": "Get site by singular id & return same id:", - "fullTitle": "Get site data any number of ways: Get site by singular id & return same id:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/sites/12')\n .set('Accept', 'application/json')\n .end((err, res) => {\n if (err) return done(err);\n expect(res.body['data'][0]['siteid'] === 12 & Object.keys(res.body['data'][0]).length > 0);\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "1aa007cc-753b-4790-b11d-66881c5000ec", - "parentUUID": "d2298a48-92cb-4bdd-8c00-3eece983db45", - "isHook": false, - "skipped": false - }, - { - "title": "Get site by altitude:", - "fullTitle": "Get site data any number of ways: Get site by altitude:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/sites/?altmax=5000&altmin=3000')\n .set('Accept', 'application/json')\n .end((err, res) => {\n if (err) return done(err);\n expect(Object.keys(res.body['data'][0]).length > 0);\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "3efbe4d5-4eb1-474f-864c-0b143d566dc4", - "parentUUID": "d2298a48-92cb-4bdd-8c00-3eece983db45", - "isHook": false, - "skipped": false - }, - { - "title": "Break sites by flipping altitudes:", - "fullTitle": "Get site data any number of ways: Break sites by flipping altitudes:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/sites/?altmax=3000&altmin=5000')\n .set('Accept', 'application/json')\n .end((err, res) => {\n if (err) return done(err);\n expect(res.body.status === 'failure');\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "ea9c6fb9-724f-448e-aa89-70fe2ba4b790", - "parentUUID": "d2298a48-92cb-4bdd-8c00-3eece983db45", - "isHook": false, - "skipped": false - }, - { - "title": "Break sites by passing invalid siteid:", - "fullTitle": "Get site data any number of ways: Break sites by passing invalid siteid:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/sites/abcd')\n .set('Accept', 'application/json')\n .end((err, res) => {\n if (err) return done(err);\n expect(500, done);\n done();\n });", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "1972f3cb-6695-4a85-b2c6-d010024e917a", - "parentUUID": "d2298a48-92cb-4bdd-8c00-3eece983db45", - "isHook": false, - "skipped": false - }, + "tests": [], + "suites": [ { - "title": "Get site by contact information for multiple authors:", - "fullTitle": "Get site data any number of ways: Get site by contact information for multiple authors:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/contacts/12,13/sites')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length === 2;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "0c9dd1b4-0e08-40e5-b9e7-e31b1c63c015", - "parentUUID": "d2298a48-92cb-4bdd-8c00-3eece983db45", - "isHook": false, - "skipped": false + "uuid": "bf7eb424-967a-478d-af71-1778aba6808d", + "title": "tests for get", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-publications-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-publications-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should respond 200 for \"Publication\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/publications tests for get should respond 200 for \"Publication\"", + "timedOut": false, + "duration": 99, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/publications', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "c4cb98e9-cd26-4b15-be1a-0c9768529e0d", + "parentUUID": "bf7eb424-967a-478d-af71-1778aba6808d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c4cb98e9-cd26-4b15-be1a-0c9768529e0d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 99, + "root": false, + "rootEmpty": false, + "_timeout": 900000 } ], - "suites": [], "passes": [], - "failures": [ - "1aa007cc-753b-4790-b11d-66881c5000ec", - "3efbe4d5-4eb1-474f-864c-0b143d566dc4", - "ea9c6fb9-724f-448e-aa89-70fe2ba4b790", - "1972f3cb-6695-4a85-b2c6-d010024e917a", - "0c9dd1b4-0e08-40e5-b9e7-e31b1c63c015" - ], + "failures": [], "pending": [], "skipped": [], - "duration": 9, + "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 5000 + "_timeout": 900000 }, { - "uuid": "addec9df-d575-48b8-b40a-ecbf704fcf67", - "title": "tests for /v2.0/data/datasets_elc", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets_elc-test.js", - "file": "/test/v2.0-data-datasets_elc-test.js", + "uuid": "3e20f63c-2617-4156-bbfd-fccf355fa7a2", + "title": "tests for /v2.0/data/datasets/{datasetid}/sites", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-sites-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-sites-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "e3f88e9f-b605-4aca-99a3-dbb62f63e289", + "uuid": "041e5a46-e24f-4039-9cf7-b1eefe25c51b", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets_elc-test.js", - "file": "/test/v2.0-data-datasets_elc-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-sites-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-sites-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A Neotoma datasets object suitable for the EarthLife Consortium API.\"", - "fullTitle": "tests for /v2.0/data/datasets_elc tests for get should respond 200 for \"A Neotoma datasets object suitable for the EarthLife Consortium API.\"", + "title": "should respond 200 for \"Site\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/sites tests for get should respond 200 for \"Site\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 99, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets_elc', { \n 'qs': {\"siteid\":29644,\"contactid\":15710,\"datasettype\":\"Metabarcoding aeDNA\",\"altmin\": 10,\"altmax\": 100,\"loc\":\"{\\\"type\\\":\\\"Polygon\\\",\\\"crs\\\":{\\\"type\\\":\\\"name\\\",\\\"properties\\\":{\\\"name\\\":\\\"EPSG:4326\\\"}},\\\"coordinates\\\":[[[13.4,55.92],[13.5,55.92],[13.5,55.95],[13.4,55.95],[13.4,55.92]]]}\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":9015929},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "355c9263-425a-4bb6-b0ae-1444685739fb", - "parentUUID": "e3f88e9f-b605-4aca-99a3-dbb62f63e289", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/sites', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "3d113a3a-2394-4dc2-a8c7-b0d96196676e", + "parentUUID": "041e5a46-e24f-4039-9cf7-b1eefe25c51b", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "355c9263-425a-4bb6-b0ae-1444685739fb" + "passes": [ + "3d113a3a-2394-4dc2-a8c7-b0d96196676e" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 99, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3759,53 +4171,49 @@ "_timeout": 900000 }, { - "uuid": "6bb251fd-1b09-4d6b-89b6-ea6e90c4cb5c", - "title": "tests for /v2.0/apps/taphonomysystems", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taphonomysystems-test.js", - "file": "/test/v2.0-apps-taphonomysystems-test.js", + "uuid": "a530f0a9-b054-4d6b-af79-61387f3d3d6b", + "title": "tests for /v2.0/data/datasets/{datasetid}/taxa", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-taxa-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-taxa-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "7de89c84-37dd-4da8-a613-20de57a2ebdc", + "uuid": "938e36be-0555-4937-8975-2a5db5a141dc", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taphonomysystems-test.js", - "file": "/test/v2.0-apps-taphonomysystems-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-taxa-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-taxa-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A table of Neotoma collection types.\"", - "fullTitle": "tests for /v2.0/apps/taphonomysystems tests for get should respond 200 for \"A table of Neotoma collection types.\"", + "title": "should respond 200 for \"Taxa\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/taxa tests for get should respond 200 for \"Taxa\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 76, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/taphonomysystems', { \n 'qs': {\"datasettypeid\":16},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "f1816c41-f3e3-477b-bf42-039945fe48ad", - "parentUUID": "7de89c84-37dd-4da8-a613-20de57a2ebdc", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/taxa', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "096d21be-7aec-44d3-bce0-32f1657ce8f1", + "parentUUID": "938e36be-0555-4937-8975-2a5db5a141dc", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "f1816c41-f3e3-477b-bf42-039945fe48ad" + "passes": [ + "096d21be-7aec-44d3-bce0-32f1657ce8f1" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 76, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3821,53 +4229,49 @@ "_timeout": 900000 }, { - "uuid": "80d6a8cc-2c47-4860-b04f-db9a7cb4e91a", - "title": "tests for /v1.5/data/geopoliticalunits/{gpid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-geopoliticalunits-{gpid}-test.js", - "file": "/test/v1.5-data-geopoliticalunits-{gpid}-test.js", + "uuid": "5b6e19c7-3537-4e5e-8a49-c56822dbc4a7", + "title": "tests for /v2.0/data/datasets/{datasetid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "bf378672-5516-41eb-8dd3-23ea23ca0ed2", + "uuid": "a76f6e75-de61-4dc2-9dab-42a4d32ae4fe", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-geopoliticalunits-{gpid}-test.js", - "file": "/test/v1.5-data-geopoliticalunits-{gpid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of geopolitical units.\"", - "fullTitle": "tests for /v1.5/data/geopoliticalunits/{gpid} tests for get should respond 200 for \"An array of geopolitical units.\"", + "title": "should respond 200 for \"An array of datasets.\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid} tests for get should respond 200 for \"An array of datasets.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 1155, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/3327', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "1b1fbd1a-6647-4efb-9585-d8f805a843bb", - "parentUUID": "bf378672-5516-41eb-8dd3-23ea23ca0ed2", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "268a46dd-a3d3-4ab7-ad1c-32e1f2430207", + "parentUUID": "a76f6e75-de61-4dc2-9dab-42a4d32ae4fe", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "1b1fbd1a-6647-4efb-9585-d8f805a843bb" + "passes": [ + "268a46dd-a3d3-4ab7-ad1c-32e1f2430207" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 1155, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3883,53 +4287,49 @@ "_timeout": 900000 }, { - "uuid": "c44fd378-4541-4e79-aadd-06e48c0e63fd", - "title": "tests for /v2.0/data/sites/{siteid}/chronologies", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-chronologies-test.js", - "file": "/test/v2.0-data-sites-{siteid}-chronologies-test.js", + "uuid": "1090f999-5051-4723-9908-bd4573a07ea8", + "title": "tests for /v2.0/data/datasets_elc", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets_elc-test.js", + "file": "/test/v2.0-data-datasets_elc-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "36a5882f-2cc0-47f5-bdf0-2530c28d8358", + "uuid": "bf1abbce-4b38-4d4c-b9f9-48ead9851287", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-chronologies-test.js", - "file": "/test/v2.0-data-sites-{siteid}-chronologies-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets_elc-test.js", + "file": "/test/v2.0-data-datasets_elc-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"chronology\"", - "fullTitle": "tests for /v2.0/data/sites/{siteid}/chronologies tests for get should respond 200 for \"chronology\"", + "title": "should respond 200 for \"A Neotoma datasets object suitable for the EarthLife Consortium API.\"", + "fullTitle": "tests for /v2.0/data/datasets_elc tests for get should respond 200 for \"A Neotoma datasets object suitable for the EarthLife Consortium API.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 82, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/chronologies', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "c9830177-dd61-402b-bf24-697fb99d2b04", - "parentUUID": "36a5882f-2cc0-47f5-bdf0-2530c28d8358", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets_elc', { \n 'qs': {\"siteid\":36138,\"contactid\":14811,\"datasettype\":\"chironomid\",\"altmin\": 10,\"altmax\": 100,\"loc\":\"{\\\"type\\\":\\\"Polygon\\\",\\\"crs\\\":{\\\"type\\\":\\\"name\\\",\\\"properties\\\":{\\\"name\\\":\\\"EPSG:4326\\\"}},\\\"coordinates\\\":[[[13.4,55.92],[13.5,55.92],[13.5,55.95],[13.4,55.95],[13.4,55.92]]]}\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":22041623},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "1d8dc97d-abc8-4991-9888-b5232928abf7", + "parentUUID": "bf1abbce-4b38-4d4c-b9f9-48ead9851287", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "c9830177-dd61-402b-bf24-697fb99d2b04" + "passes": [ + "1d8dc97d-abc8-4991-9888-b5232928abf7" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 82, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3945,231 +4345,165 @@ "_timeout": 900000 }, { - "uuid": "3fa4a19d-1266-4794-8130-3b617eb9f789", - "title": "Get datasets any number of ways:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/datasets.js", - "file": "/test/datasets.js", + "uuid": "db78c501-219c-426c-b4f5-a874d0fa2d2e", + "title": "tests for /v2.0/data/datasets_elc/{datasetid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets_elc-{datasetid}-test.js", + "file": "/test/v2.0-data-datasets_elc-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], - "tests": [ - { - "title": "Asking for the datasets associated with Lake Tulane work:", - "fullTitle": "Get datasets any number of ways: Asking for the datasets associated with Lake Tulane work:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/sites/2570/datasets')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).includes('site');\n })\n .expect(function(res) {\n return res.body['data'][0].site.siteid === 2570;\n })\n .expect(function(res) {\n return Object.keys(res.body['data'][0]['site']['datasets'][0]).includes('datasetid');\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "12b58bfd-0083-47a3-b29f-addb8f64c5b4", - "parentUUID": "3fa4a19d-1266-4794-8130-3b617eb9f789", - "isHook": false, - "skipped": false - }, - { - "title": "Get dataset by singular id & return same id:", - "fullTitle": "Get datasets any number of ways: Get dataset by singular id & return same id:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets/12')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['siteid'] === 12;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "c5a4fd6a-280c-46a1-9124-4b3c1d6b53f3", - "parentUUID": "3fa4a19d-1266-4794-8130-3b617eb9f789", - "isHook": false, - "skipped": false - }, - { - "title": "Get dataset from siteid gives us siteids back and datasets:", - "fullTitle": "Get datasets any number of ways: Get dataset from siteid gives us siteids back and datasets:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/sites/123/datasets')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body['data'][0].site.siteid === 123;\n })\n .expect(function(res) {\n return res.body['data'][0].site.datasets.length > 0;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "0f95931a-bce9-4c15-8e35-14358b7e5b2d", - "parentUUID": "3fa4a19d-1266-4794-8130-3b617eb9f789", - "isHook": false, - "skipped": false - }, - { - "title": "Get dataset by comma separated ids & return same ids:", - "fullTitle": "Get datasets any number of ways: Get dataset by comma separated ids & return same ids:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets/?siteid=12,13,14')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data']).length > 0;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "34922ab4-7b9b-4707-887d-9d628d4d54c5", - "parentUUID": "3fa4a19d-1266-4794-8130-3b617eb9f789", - "isHook": false, - "skipped": false - }, - { - "title": "Returns all key elements of the object:", - "fullTitle": "Get datasets any number of ways: Returns all key elements of the object:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets/12')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data']).includes('site', 'dataset');\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "3b2a9209-8c81-4198-bb08-26de7d8e402e", - "parentUUID": "3fa4a19d-1266-4794-8130-3b617eb9f789", - "isHook": false, - "skipped": false - }, + "tests": [], + "suites": [ { - "title": "Limits work:", - "fullTitle": "Get datasets any number of ways: Limits work:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets/?altmax=3&limit=10')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data']).length == 10;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "72e2d8b8-9f8e-4e6d-bc65-aa45f155064e", - "parentUUID": "3fa4a19d-1266-4794-8130-3b617eb9f789", - "isHook": false, - "skipped": false - }, + "uuid": "fa9edafe-d20f-4fc0-bfd5-df2457b88496", + "title": "tests for get", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets_elc-{datasetid}-test.js", + "file": "/test/v2.0-data-datasets_elc-{datasetid}-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should respond 200 for \"A Neotoma datasets object suitable for the EarthLife Consortium API.\"", + "fullTitle": "tests for /v2.0/data/datasets_elc/{datasetid} tests for get should respond 200 for \"A Neotoma datasets object suitable for the EarthLife Consortium API.\"", + "timedOut": false, + "duration": 2638, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets_elc/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "db23f049-01ae-4faa-a8bc-c9ebd99e0176", + "parentUUID": "fa9edafe-d20f-4fc0-bfd5-df2457b88496", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "db23f049-01ae-4faa-a8bc-c9ebd99e0176" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2638, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "853f357b-0364-4113-a1fa-1f954175d852", + "title": "tests for /v2.0/data/dbtables", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-dbtables-test.js", + "file": "/test/v2.0-data-dbtables-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ { - "title": "Works with age validation:", - "fullTitle": "Get datasets any number of ways: Works with age validation:", - "timedOut": false, - "duration": 0, - "state": "pending", - "speed": null, - "pass": false, - "fail": false, - "pending": true, - "context": null, - "code": "", - "err": {}, - "uuid": "ab383ca2-424f-452c-ac1f-8a8457d2286a", - "parentUUID": "3fa4a19d-1266-4794-8130-3b617eb9f789", - "isHook": false, - "skipped": false + "uuid": "8eb71588-4c87-4a6a-b6eb-9270245aada3", + "title": "tests for get", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-dbtables-test.js", + "file": "/test/v2.0-data-dbtables-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should respond 200 for \"Returned table.\"", + "fullTitle": "tests for /v2.0/data/dbtables tests for get should respond 200 for \"Returned table.\"", + "timedOut": false, + "duration": 127, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/dbtables', { \n 'qs': {\"table\":\"aute non\",\"count\":true,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "0bbbcaa8-9714-4d3b-9b9c-312f656e4db8", + "parentUUID": "8eb71588-4c87-4a6a-b6eb-9270245aada3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0bbbcaa8-9714-4d3b-9b9c-312f656e4db8" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 127, + "root": false, + "rootEmpty": false, + "_timeout": 900000 } ], - "suites": [], "passes": [], - "failures": [ - "12b58bfd-0083-47a3-b29f-addb8f64c5b4", - "c5a4fd6a-280c-46a1-9124-4b3c1d6b53f3", - "0f95931a-bce9-4c15-8e35-14358b7e5b2d", - "34922ab4-7b9b-4707-887d-9d628d4d54c5", - "3b2a9209-8c81-4198-bb08-26de7d8e402e", - "72e2d8b8-9f8e-4e6d-bc65-aa45f155064e" - ], - "pending": [ - "ab383ca2-424f-452c-ac1f-8a8457d2286a" - ], + "failures": [], + "pending": [], "skipped": [], - "duration": 10, + "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 50000 + "_timeout": 900000 }, { - "uuid": "9cca5d90-aca8-4f2c-a666-066ffffef030", - "title": "tests for /v2.0/apps/authorpis", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-authorpis-test.js", - "file": "/test/v2.0-apps-authorpis-test.js", + "uuid": "4d52689e-edd3-4a94-8a37-b0a9be914a75", + "title": "tests for /v2.0/data/dbtables/{table}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-dbtables-{table}-test.js", + "file": "/test/v2.0-data-dbtables-{table}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "b725b3b3-8419-4fa0-8cc9-797e88340ca9", + "uuid": "f2e2155d-241a-4f70-8e57-8bd5ee74cec4", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-authorpis-test.js", - "file": "/test/v2.0-apps-authorpis-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-dbtables-{table}-test.js", + "file": "/test/v2.0-data-dbtables-{table}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A table of Neotoma collection types.\"", - "fullTitle": "tests for /v2.0/apps/authorpis tests for get should respond 200 for \"A table of Neotoma collection types.\"", + "title": "should respond 200 for \"Returned table.\"", + "fullTitle": "tests for /v2.0/data/dbtables/{table} tests for get should respond 200 for \"Returned table.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 67, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/authorpis', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "208805a6-7c79-4dfa-aff1-0b4d1fb378b5", - "parentUUID": "b725b3b3-8419-4fa0-8cc9-797e88340ca9", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/dbtables/aliquipveniam', { \n 'qs': {\"count\":false,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "6494936a-0656-4d3b-a339-5f9387c1be12", + "parentUUID": "f2e2155d-241a-4f70-8e57-8bd5ee74cec4", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "208805a6-7c79-4dfa-aff1-0b4d1fb378b5" + "passes": [ + "6494936a-0656-4d3b-a339-5f9387c1be12" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 67, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4185,332 +4519,110 @@ "_timeout": 900000 }, { - "uuid": "6cacc167-5f02-4b31-8e21-12b9dd805cbb", - "title": "Tests for Explorer App Services", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/explorerCalls.js", - "file": "/test/explorerCalls.js", + "uuid": "6495f381-c2f6-4a4c-bdfe-08609fa1206d", + "title": "tests for /v2.0/data/downloads/{datasetid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-downloads-{datasetid}-test.js", + "file": "/test/v2.0-data-downloads-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "ef74299d-e32b-4617-90d2-88ef718b6da1", + "uuid": "94aefd2a-72ec-4c8c-b0b5-9515e20a4261", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/explorerCalls.js", - "file": "/test/explorerCalls.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-downloads-{datasetid}-test.js", + "file": "/test/v2.0-data-downloads-{datasetid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for TaxaGroupTypes", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaxaGroupTypes", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('get', appServicesLocation + '/TaxaGroupTypes', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "9f3ad7da-ce4c-4f0d-a60f-ad3012d6f07a", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for TaphonomyTypes", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaphonomyTypes", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('get', appServicesLocation + '/TaphonomyTypes', {\n qs: {\n taphonomicSystemId: 1,\n },\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "c63e8ab6-cfb0-4464-b21b-d51f441677d9", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for TaphonomySystems", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaphonomySystems", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('get', appServicesLocation + '/TaphonomySystems', {\n qs: {\n datasetTypeId: 1,\n },\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "0912d0fa-adc4-4728-adf7-95f8e79871ed", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for ElementTypes", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for ElementTypes", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('get', appServicesLocation + '/ElementTypes', {\n qs: {\n taxagroupid: 1,\n },\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "23ebbb09-0318-4f31-8955-2bc886cbd58b", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for TaxaInDatasets (a slow service)", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaxaInDatasets (a slow service)", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('get', appServicesLocation + '/TaxaInDatasets', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "2a83ee12-0371-4571-baad-41dbc6639187", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for collectionTypes", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for collectionTypes", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('get', appServicesLocation + '/collectionTypes', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "d4bebf37-5867-4cd6-afb8-09007421c7f1", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for keywords", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for keywords", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('get', appServicesLocation + '/keywords', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "d4258c86-fbdf-4b2c-af4b-d6764ecead8a", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for authorpis", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for authorpis", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('get', appServicesLocation + '/authorpis', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "b058669d-7c04-4fda-b610-ec388a3513b8", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for DepositionalEnvironments", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for DepositionalEnvironments", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('get', appServicesLocation + '/DepositionalEnvironments', {\n qs: {idProperty: 1},\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "f5cb6842-1d22-48bb-a3fd-dc80a7324c7f", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for Search", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for Search", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('post', appServicesLocation + '/Search', {\n qs: {search: '{\"datasetTypeId\":21}',\n time: true},\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "4676b4f5-f245-4f50-aac0-79f24e1915dc", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for DatasetTypes", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for DatasetTypes", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "const response = request('get', appServicesLocation + '/DatasetTypes', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "94f9d8f0-015f-4da3-8b06-3f82346fcdd1", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for RelativeAges", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for RelativeAges", + "title": "should respond 200 for \"Returned download object.\"", + "fullTitle": "tests for /v2.0/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 2685, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "const response = request('get', appServicesLocation + '/RelativeAges', {\n qs: {agescaleid: 1},\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "105caa9f-3f3f-42e2-90d0-e1c995847d4e", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/downloads/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "460f8538-5a62-42c4-af4c-d86bd3266363", + "parentUUID": "94aefd2a-72ec-4c8c-b0b5-9515e20a4261", "isHook": false, "skipped": false - }, + } + ], + "suites": [], + "passes": [ + "460f8538-5a62-42c4-af4c-d86bd3266363" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2685, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "715b0654-d8eb-410f-bb34-7d7bee56cd35", + "title": "tests for /v2.0/data/frozen/{datasetid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-frozen-{datasetid}-test.js", + "file": "/test/v2.0-data-frozen-{datasetid}-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "de3dcd94-576e-4dff-b92d-e6b5dcb6c109", + "title": "tests for get", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-frozen-{datasetid}-test.js", + "file": "/test/v2.0-data-frozen-{datasetid}-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ { - "title": "should respond 200 for Geochronologies", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for Geochronologies", + "title": "should respond 200 for \"Returned download object.\"", + "fullTitle": "tests for /v2.0/data/frozen/{datasetid} tests for get should respond 200 for \"Returned download object.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 152, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "const response = request('get', appServicesLocation + '/Geochronologies', {\n qs: {datasetId: 1001},\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "58cf2171-303a-43f3-861a-148b6a1fd6da", - "parentUUID": "ef74299d-e32b-4617-90d2-88ef718b6da1", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/frozen/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "13703b3a-4ee6-4fef-b68d-7a306423eb24", + "parentUUID": "de3dcd94-576e-4dff-b92d-e6b5dcb6c109", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "9f3ad7da-ce4c-4f0d-a60f-ad3012d6f07a", - "c63e8ab6-cfb0-4464-b21b-d51f441677d9", - "0912d0fa-adc4-4728-adf7-95f8e79871ed", - "23ebbb09-0318-4f31-8955-2bc886cbd58b", - "2a83ee12-0371-4571-baad-41dbc6639187", - "d4bebf37-5867-4cd6-afb8-09007421c7f1", - "d4258c86-fbdf-4b2c-af4b-d6764ecead8a", - "b058669d-7c04-4fda-b610-ec388a3513b8", - "f5cb6842-1d22-48bb-a3fd-dc80a7324c7f", - "4676b4f5-f245-4f50-aac0-79f24e1915dc", - "94f9d8f0-015f-4da3-8b06-3f82346fcdd1", - "105caa9f-3f3f-42e2-90d0-e1c995847d4e", - "58cf2171-303a-43f3-861a-148b6a1fd6da" + "passes": [ + "13703b3a-4ee6-4fef-b68d-7a306423eb24" ], + "failures": [], "pending": [], "skipped": [], - "duration": 17, + "duration": 152, "root": false, "rootEmpty": false, - "_timeout": 12000 + "_timeout": 900000 } ], "passes": [], @@ -4520,56 +4632,52 @@ "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 12000 + "_timeout": 900000 }, { - "uuid": "8bc363b5-cdc2-4a41-9461-69e1cfe0e45a", - "title": "tests for /v2.0/data/taxa/{taxonid}/occurrences", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-{taxonid}-occurrences-test.js", - "file": "/test/v2.0-data-taxa-{taxonid}-occurrences-test.js", + "uuid": "38444560-5b17-496f-846b-96de8dfc46fa", + "title": "tests for /v2.0/data/geopoliticalunits", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-test.js", + "file": "/test/v2.0-data-geopoliticalunits-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "87476388-0d6d-40a5-b6af-490215e046db", + "uuid": "18f6ab24-0f5a-4410-959a-92e89a8dc0b4", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-{taxonid}-occurrences-test.js", - "file": "/test/v2.0-data-taxa-{taxonid}-occurrences-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-test.js", + "file": "/test/v2.0-data-geopoliticalunits-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"occurrence\"", - "fullTitle": "tests for /v2.0/data/taxa/{taxonid}/occurrences tests for get should respond 200 for \"occurrence\"", + "title": "should respond 200 for \"An array of geopolitical units.\"", + "fullTitle": "tests for /v2.0/data/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 69, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa/6066/occurrences', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "c4472143-0a0c-4377-8e81-c77f5390370c", - "parentUUID": "87476388-0d6d-40a5-b6af-490215e046db", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits', { \n 'qs': {\"gpid\":5392,\"gpname\":\"Canada\",\"rank\":2,\"lower\":true},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "a6a26408-0c6d-4839-879c-7841c2f40127", + "parentUUID": "18f6ab24-0f5a-4410-959a-92e89a8dc0b4", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "c4472143-0a0c-4377-8e81-c77f5390370c" + "passes": [ + "a6a26408-0c6d-4839-879c-7841c2f40127" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 69, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4585,53 +4693,49 @@ "_timeout": 900000 }, { - "uuid": "2fc4ba72-b0cf-45e3-8732-a34a357aa3c8", - "title": "tests for /v2.0/data/dbtables", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-dbtables-test.js", - "file": "/test/v2.0-data-dbtables-test.js", + "uuid": "a30d7c2c-d82d-43d0-bd0b-925edc5d30c9", + "title": "tests for /v2.0/data/geopoliticalunits/{gpid}/datasets", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js", + "file": "/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "9dae001f-c919-4605-94cb-3246bf2f6d21", - "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-dbtables-test.js", - "file": "/test/v2.0-data-dbtables-test.js", + "uuid": "883cbb93-f131-451c-a349-2cc982d4e314", + "title": "tests for get", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js", + "file": "/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returned table.\"", - "fullTitle": "tests for /v2.0/data/dbtables tests for get should respond 200 for \"Returned table.\"", + "title": "should respond 200 for \"An array of datasets.\"", + "fullTitle": "tests for /v2.0/data/geopoliticalunits/{gpid}/datasets tests for get should respond 200 for \"An array of datasets.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 105, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/dbtables', { \n 'qs': {\"table\":\"do\",\"count\":true,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "82fff36f-b251-4ce3-a666-d8425ea2bf9d", - "parentUUID": "9dae001f-c919-4605-94cb-3246bf2f6d21", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/2369/datasets', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "5d9c3eb9-64f9-496c-814f-0a9bcec2ad0a", + "parentUUID": "883cbb93-f131-451c-a349-2cc982d4e314", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "82fff36f-b251-4ce3-a666-d8425ea2bf9d" + "passes": [ + "5d9c3eb9-64f9-496c-814f-0a9bcec2ad0a" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 105, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4647,53 +4751,49 @@ "_timeout": 900000 }, { - "uuid": "ee8f5445-4a46-4270-8c59-c71f817b6df0", - "title": "tests for /v2.0/data/publications", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-publications-test.js", - "file": "/test/v2.0-data-publications-test.js", + "uuid": "55f99e2f-0cec-4c01-8f36-34a55975d349", + "title": "tests for /v2.0/data/geopoliticalunits/{gpid}/sites", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js", + "file": "/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "377c20bd-126e-4469-837c-a85fa85a3e9d", + "uuid": "4d71423d-2b74-4011-8006-12be91647322", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-publications-test.js", - "file": "/test/v2.0-data-publications-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js", + "file": "/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A list of publications.\"", - "fullTitle": "tests for /v2.0/data/publications tests for get should respond 200 for \"A list of publications.\"", + "title": "should respond 200 for \"An array of sites.\"", + "fullTitle": "tests for /v2.0/data/geopoliticalunits/{gpid}/sites tests for get should respond 200 for \"An array of sites.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 89, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/publications', { \n 'qs': {\"publicationid\":7921,\"datasetid\":34417823,\"siteid\":2115,\"familyname\":\"YqO\",\"pubtype\":\"Legacy\",\"year\":1721,\"search\":\"proident occaecat laborum\",\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "ba2d62f6-fa6b-4078-b296-5aaae5c3dfcb", - "parentUUID": "377c20bd-126e-4469-837c-a85fa85a3e9d", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/3926/sites', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "4f102dd6-3225-455f-9953-7514f30d98fa", + "parentUUID": "4d71423d-2b74-4011-8006-12be91647322", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "ba2d62f6-fa6b-4078-b296-5aaae5c3dfcb" + "passes": [ + "4f102dd6-3225-455f-9953-7514f30d98fa" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 89, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4709,53 +4809,49 @@ "_timeout": 900000 }, { - "uuid": "10170595-d7c0-4fdd-9444-da11b9f1a95a", - "title": "tests for /v2.0/apps/taxagrouptypes", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taxagrouptypes-test.js", - "file": "/test/v2.0-apps-taxagrouptypes-test.js", + "uuid": "93ad7e34-9f38-4ef1-8bac-4f07b3476e37", + "title": "tests for /v2.0/data/geopoliticalunits/{gpid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-test.js", + "file": "/test/v2.0-data-geopoliticalunits-{gpid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "c583bc99-ac54-4844-9b7f-6190341b33e9", + "uuid": "72c13342-f5ae-435d-9716-5c2f77186c0a", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taxagrouptypes-test.js", - "file": "/test/v2.0-apps-taxagrouptypes-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-test.js", + "file": "/test/v2.0-data-geopoliticalunits-{gpid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A table of Neotoma collection types.\"", - "fullTitle": "tests for /v2.0/apps/taxagrouptypes tests for get should respond 200 for \"A table of Neotoma collection types.\"", + "title": "should respond 200 for \"An array of geopolitical units.\"", + "fullTitle": "tests for /v2.0/data/geopoliticalunits/{gpid} tests for get should respond 200 for \"An array of geopolitical units.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 70, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/taxagrouptypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "caf86ed6-5901-4863-909e-e2b48a385c5b", - "parentUUID": "c583bc99-ac54-4844-9b7f-6190341b33e9", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/1971', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "963be712-197d-415d-9e45-0066d15fd608", + "parentUUID": "72c13342-f5ae-435d-9716-5c2f77186c0a", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "caf86ed6-5901-4863-909e-e2b48a385c5b" + "passes": [ + "963be712-197d-415d-9e45-0066d15fd608" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 70, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4771,320 +4867,107 @@ "_timeout": 900000 }, { - "uuid": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "title": "Get occurrence data any number of ways:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/occurrence.js", - "file": "/test/occurrence.js", + "uuid": "8e58c175-6a43-4d1d-875a-4d097b4f6943", + "title": "tests for /v2.0/data/occurrences", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-occurrences-test.js", + "file": "/test/v2.0-data-occurrences-test.js", "beforeHooks": [], "afterHooks": [], - "tests": [ - { - "title": "Get occurrence by singular id & return same id:", - "fullTitle": "Get occurrence data any number of ways: Get occurrence by singular id & return same id:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences/12')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "d001095f-1bbc-4b78-9b87-d2ad450b4b7e", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Get the Flyover test call:", - "fullTitle": "Get occurrence data any number of ways: Get the Flyover test call:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences?taxonname=rhinocerotidae,megacerops,moeritherium,ceratogaulus,gomphotherium,deinotherium,condylarthra,paraceratherium,mesonychia,pantodonta,hyaenodon,thylacosmilus,glyptodon,castoroides,toxodon,megatherium,arctodus,smilodon,mammuthus,mammut,coelodonta,megaloceras,gigantopithecus,phlegethontia,temnospondyli,lepospondyli,ichthyosauria,sauropterygia,mosasauroidea,pterosauromorpha,titanoboa,megalania,placodus,tanystropheidae,hyperodapedon,stagonolepis,scutosaurus,pareiasauria,archelon,stupendemys,protostega,placodermi,leedsichthys,onychodontiformes,acanthostega,ichthyostega,crassigyrinus,ornithosuchus,erpetosuchidae,protosuchus,dakosaurus,geosaurus,deinosuchus&lower=true&limit=999999&loc=POLYGON((-122.56 39.94,-115.21 41.96,-107.99 43.42,-100.51 44.41,-92.85 44.91,-83.49 44.84,-74.25 44.02,-70.19 43.38,-69.36 42.75,-69.02 41.76,-69.13 41.07,-69.5 40.47,-70.07 40.06,-70.75 39.9,-78.36 40.86,-85.79 41.33,-93.27 41.3,-100.68 40.78,-105.86 40.12,-111.42 39.12,-116.79 37.86,-122.28 36.29,-122.98 36.35,-123.61 36.67,-124.06 37.21,-124.27 37.88,-124.21 38.58,-123.89 39.2,-123.35 39.65,-122.56 39.94))')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "f8ffe092-f486-46f4-9683-b929d6d6beae", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Failing Canis test works:", - "fullTitle": "Get occurrence data any number of ways: Failing Canis test works:", - "timedOut": false, - "duration": 1, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "// This casuses timeout fails for some reason. It's frustrating.\napi.get('v2.0/data/occurrences?taxonname=Canis&lower=true&limit=999999')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "f2c200a3-c397-4c22-81b6-0b772ff06551", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Get occurrence by taxon:", - "fullTitle": "Get occurrence data any number of ways: Get occurrence by taxon:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/taxa/12/occurrences')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "06afed68-0012-44f2-8a9f-e2e525c0f588", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Break occurrences by flipping altitudes:", - "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping altitudes:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences/?altmax=3000&altmin=5000')\n .set('Accept', 'application/json')\n .expect(500);\ndone();", - "err": {}, - "uuid": "ba5f266f-507b-48d9-8171-927809894085", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Break occurrences by flipping ages:", - "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping ages:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences/?ageyoung=5000&ageold=3000')\n .set('Accept', 'application/json')\n .expect(500);\ndone();", - "err": {}, - "uuid": "a04d5b2a-01b8-4bd1-92fe-21bbfa74e82f", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Occurrences filter by age:", - "fullTitle": "Get occurrence data any number of ways: Occurrences filter by age:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences/?ageyoung=3000&ageold=5000')\n .set('Accept', 'application/json')\n .expect(function(res) {\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "87b9329a-14ab-4203-a3f1-8d9547b5f250", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Get occurrences with comma separated fields:", - "fullTitle": "Get occurrence data any number of ways: Get occurrences with comma separated fields:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences/' +\n '?siteid=12,13,14,15&taxonname=Betula&limit=200')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const allSite = res.body['data'];\n const siteids = [];\n for (let i = 0; i < allSite.length; i++) {\n siteids.push(allSite[i]['site']['siteid']);\n };\n const uniqueSites = Array.from(new Set(siteids)).sort(function(a, b) {\n return a - b;\n });\n return (uniqueSites.every((item) => [12, 13, 14, 15].includes(item)));\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "82dbd9e9-2b11-4362-a4b5-bdc91717b95c", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Get occurrences with comma separated taxa:", - "fullTitle": "Get occurrence data any number of ways: Get occurrences with comma separated taxa:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences/?taxonname=Picea,Abies&limit=25')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return (res.body.data.length > 0);\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "eb9940ca-58e5-4427-a361-87b2cf8e6821", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Get hierarchical occurrences with comma separated taxa:", - "fullTitle": "Get occurrence data any number of ways: Get hierarchical occurrences with comma separated taxa:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences/?taxonname=Picea,Abies&limit=25&lower=true')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return (res.body.data.length > 0);\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "d6abe570-ab6c-4903-afeb-eb9dcb0340ef", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Get occurrences returns lower taxa:", - "fullTitle": "Get occurrence data any number of ways: Get occurrences returns lower taxa:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences/?taxonname=Myrica&lower=true&limit=200')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const allTaxa = res.body['data'];\n const taxaids = [];\n for (let i = 0; i < allTaxa.length; i++) {\n taxaids.push(allTaxa[i]['sample']['taxonname']);\n };\n const uniqueTaxa = Array.from(new Set(taxaids)).sort();\n return uniqueTaxa.length > 1;\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "6a2ede1e-9491-4ce7-93a9-d9c079d81041", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Get occurrences with mammals and lower taxa works:", - "fullTitle": "Get occurrence data any number of ways: Get occurrences with mammals and lower taxa works:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences/?taxonname=Homo&lower=true&limit=25')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const allTaxa = res.body['data'];\n const taxaids = [];\n for (let i = 0; i < allTaxa.length; i++) {\n taxaids.push(allTaxa[i]['sample']['taxonname']);\n };\n const uniqueTaxa = Array.from(new Set(taxaids)).sort();\n return uniqueTaxa.length > 1 & allTaxa.length > 0;\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "9cf4e598-e1a8-4daa-b6e0-f65670fb28be", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false - }, - { - "title": "Get occurrences using taxon and age bounds:", - "fullTitle": "Get occurrence data any number of ways: Get occurrences using taxon and age bounds:", - "timedOut": false, - "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences/?ageyoung=2000&ageold=3000&taxonname=Pinus')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(200);\ndone();", - "err": {}, - "uuid": "64d5d55d-7074-40a3-9cad-0b77cc072934", - "parentUUID": "693cf590-94d9-411a-b1ea-1579c624eb1c", - "isHook": false, - "skipped": false + "tests": [], + "suites": [ + { + "uuid": "09de14d0-8206-456c-9463-595f08de4588", + "title": "tests for get", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-occurrences-test.js", + "file": "/test/v2.0-data-occurrences-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should respond 200 for \"occurrence\"", + "fullTitle": "tests for /v2.0/data/occurrences tests for get should respond 200 for \"occurrence\"", + "timedOut": false, + "duration": 87, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/occurrences', { \n 'qs': {\"taxonname\":\"ea ad amet\",\"taxonid\":16568,\"siteid\":36683,\"sitename\":\"minim ea nisi\",\"datasettype\":\"energy dispersive X-ray spectroscopy (EDS/EDX)\",\"altmin\": 10,\"altmax\": 100,\"loc\":\"{\\\"type\\\":\\\"Polygon\\\",\\\"crs\\\":{\\\"type\\\":\\\"name\\\",\\\"properties\\\":{\\\"name\\\":\\\"EPSG:4326\\\"}},\\\"coordinates\\\":[[[13.4,55.92],[13.5,55.92],[13.5,55.95],[13.4,55.95],[13.4,55.92]]]}\",\"ageof\":11712579,\"ageyoung\": 1000,\"ageold\": 10000,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "7046ac6d-4e91-4a40-a18c-5c5f9f404321", + "parentUUID": "09de14d0-8206-456c-9463-595f08de4588", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7046ac6d-4e91-4a40-a18c-5c5f9f404321" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 87, + "root": false, + "rootEmpty": false, + "_timeout": 900000 } ], - "suites": [], - "passes": [ - "d001095f-1bbc-4b78-9b87-d2ad450b4b7e", - "f8ffe092-f486-46f4-9683-b929d6d6beae", - "f2c200a3-c397-4c22-81b6-0b772ff06551", - "06afed68-0012-44f2-8a9f-e2e525c0f588", - "ba5f266f-507b-48d9-8171-927809894085", - "a04d5b2a-01b8-4bd1-92fe-21bbfa74e82f", - "87b9329a-14ab-4203-a3f1-8d9547b5f250", - "82dbd9e9-2b11-4362-a4b5-bdc91717b95c", - "eb9940ca-58e5-4427-a361-87b2cf8e6821", - "d6abe570-ab6c-4903-afeb-eb9dcb0340ef", - "6a2ede1e-9491-4ce7-93a9-d9c079d81041", - "9cf4e598-e1a8-4daa-b6e0-f65670fb28be", - "64d5d55d-7074-40a3-9cad-0b77cc072934" - ], + "passes": [], "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 30000 + "_timeout": 900000 }, { - "uuid": "5c96cdab-5cdf-4eeb-a091-7bdc9bcdf424", - "title": "tests for /v1.5/data/contacts/{contactid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-contacts-{contactid}-test.js", - "file": "/test/v1.5-data-contacts-{contactid}-test.js", + "uuid": "e6ac513f-ca84-40fa-a11f-91ebf00f1582", + "title": "tests for /v2.0/data/occurrences/{occurrenceid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-occurrences-{occurrenceid}-test.js", + "file": "/test/v2.0-data-occurrences-{occurrenceid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "078af4b6-d105-4a26-a8d3-0555c682b0ee", + "uuid": "2ae141e8-ec39-4e16-9125-d4de21678a1e", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-contacts-{contactid}-test.js", - "file": "/test/v1.5-data-contacts-{contactid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-occurrences-{occurrenceid}-test.js", + "file": "/test/v2.0-data-occurrences-{occurrenceid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Contact\"", - "fullTitle": "tests for /v1.5/data/contacts/{contactid} tests for get should respond 200 for \"Contact\"", + "title": "should respond 200 for \"occurrence\"", + "fullTitle": "tests for /v2.0/data/occurrences/{occurrenceid} tests for get should respond 200 for \"occurrence\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 77, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/data/contacts/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "4bbc574a-6066-4bce-a5c0-b33414501d0c", - "parentUUID": "078af4b6-d105-4a26-a8d3-0555c682b0ee", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/occurrences/500', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "ddcd0bc8-6c8e-48c2-a696-4170bab6b46a", + "parentUUID": "2ae141e8-ec39-4e16-9125-d4de21678a1e", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "4bbc574a-6066-4bce-a5c0-b33414501d0c" + "passes": [ + "ddcd0bc8-6c8e-48c2-a696-4170bab6b46a" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 77, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5100,53 +4983,49 @@ "_timeout": 900000 }, { - "uuid": "f79fb471-4594-4e40-b406-3d21e83aefe7", - "title": "tests for /v2.0/data/contacts/{contactid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-test.js", - "file": "/test/v2.0-data-contacts-{contactid}-test.js", + "uuid": "01da5fa2-a0b1-472b-a2ad-977a235cf341", + "title": "tests for /v2.0/data/pollen", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-pollen-test.js", + "file": "/test/v2.0-data-pollen-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "6036448f-f4ad-4946-b4eb-810c561040c0", + "uuid": "60367382-8fbc-413c-a1dc-ff3b58f7226d", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-test.js", - "file": "/test/v2.0-data-contacts-{contactid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-pollen-test.js", + "file": "/test/v2.0-data-pollen-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A Neotoma contacts object.\"", - "fullTitle": "tests for /v2.0/data/contacts/{contactid} tests for get should respond 200 for \"A Neotoma contacts object.\"", + "title": "should respond 200 for \"A record of all pollen samples in time/space for a particular taxon.\"", + "fullTitle": "tests for /v2.0/data/pollen tests for get should respond 200 for \"A record of all pollen samples in time/space for a particular taxon.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 2, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/3927', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "a30f2c3d-b1d9-4910-a78c-b8fd6ae4ae51", - "parentUUID": "6036448f-f4ad-4946-b4eb-810c561040c0", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/pollen', { \n 'qs': {\"taxonname\":\"ex fugiat enim\",\"taxonid\":45846,\"siteid\":28440,\"sitename\":\"occaecat\",\"datasettype\":\"loss-on-ignition\",\"altmin\": 10,\"altmax\": 100,\"loc\":\"{\\\"type\\\":\\\"Polygon\\\",\\\"crs\\\":{\\\"type\\\":\\\"name\\\",\\\"properties\\\":{\\\"name\\\":\\\"EPSG:4326\\\"}},\\\"coordinates\\\":[[[13.4,55.92],[13.5,55.92],[13.5,55.95],[13.4,55.95],[13.4,55.92]]]}\",\"ageof\":9015612,\"ageyoung\": 1000,\"ageold\": 10000,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "40277859-85c6-4115-a85c-409c02602d51", + "parentUUID": "60367382-8fbc-413c-a1dc-ff3b58f7226d", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "a30f2c3d-b1d9-4910-a78c-b8fd6ae4ae51" + "passes": [ + "40277859-85c6-4115-a85c-409c02602d51" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 2, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5162,50 +5041,46 @@ "_timeout": 900000 }, { - "uuid": "fcb78159-7ffb-4579-a8fe-d7f99a2ea685", - "title": "tests for /v2.0/data/aggregatedatasets/{aggdatasetid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js", - "file": "/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js", + "uuid": "d463a7b1-977a-41e1-bf47-eca56b691d41", + "title": "tests for /v2.0/data/pollen/{id}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-pollen-{id}-test.js", + "file": "/test/v2.0-data-pollen-{id}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "c76e1ace-2164-4641-9be9-bfcaddf4f9c8", + "uuid": "e961f9a9-78e8-4dd6-8529-b5c7068f9a94", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js", - "file": "/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-pollen-{id}-test.js", + "file": "/test/v2.0-data-pollen-{id}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of datasets.\"", - "fullTitle": "tests for /v2.0/data/aggregatedatasets/{aggdatasetid} tests for get should respond 200 for \"An array of datasets.\"", + "title": "should respond 200 for \"A record of all pollen samples in time/space for a particular taxon.\"", + "fullTitle": "tests for /v2.0/data/pollen/{id} tests for get should respond 200 for \"A record of all pollen samples in time/space for a particular taxon.\"", "timedOut": false, "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/aggregatedatasets/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "8405d7b9-5d35-405e-ab03-3ad129bc6807", - "parentUUID": "c76e1ace-2164-4641-9be9-bfcaddf4f9c8", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/pollen/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "6a5d1926-6e80-4276-b260-527d48aba674", + "parentUUID": "e961f9a9-78e8-4dd6-8529-b5c7068f9a94", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "8405d7b9-5d35-405e-ab03-3ad129bc6807" + "passes": [ + "6a5d1926-6e80-4276-b260-527d48aba674" ], + "failures": [], "pending": [], "skipped": [], "duration": 1, @@ -5224,53 +5099,49 @@ "_timeout": 900000 }, { - "uuid": "2fd462d7-0395-44fa-b59e-a9dc0b599c59", - "title": "tests for /v2.0/data/datasets/{datasetid}/chronologies", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-chronologies-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-chronologies-test.js", + "uuid": "5c979ae5-b7a5-4c27-a2a4-67d741efa0e0", + "title": "tests for /v2.0/data/publications", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-publications-test.js", + "file": "/test/v2.0-data-publications-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "7d47ce20-3d8a-42ba-a85d-90a82cd46aec", + "uuid": "76482370-b3a8-4fd8-81e4-f0f1154726f6", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-chronologies-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-chronologies-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-publications-test.js", + "file": "/test/v2.0-data-publications-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"chronology\"", - "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/chronologies tests for get should respond 200 for \"chronology\"", + "title": "should respond 200 for \"A list of publications.\"", + "fullTitle": "tests for /v2.0/data/publications tests for get should respond 200 for \"A list of publications.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 73, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/chronologies', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "b0ad9a57-b2fe-45e8-9434-45f2ecdb331a", - "parentUUID": "7d47ce20-3d8a-42ba-a85d-90a82cd46aec", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/publications', { \n 'qs': {\"publicationid\":4160,\"datasetid\":29192022,\"siteid\":14337,\"familyname\":\"lWFSgcHQt'd\",\"pubtype\":\"Website\",\"year\":1601,\"search\":\"esse dolor\",\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "4604d4cd-75e2-41b7-860f-d188ca8bbc83", + "parentUUID": "76482370-b3a8-4fd8-81e4-f0f1154726f6", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "b0ad9a57-b2fe-45e8-9434-45f2ecdb331a" + "passes": [ + "4604d4cd-75e2-41b7-860f-d188ca8bbc83" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 73, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5286,234 +5157,223 @@ "_timeout": 900000 }, { - "uuid": "8894211c-5ecf-4ab6-8a9a-4e0af86bb334", - "title": "Get publication data any number of ways:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/publications.js", - "file": "/test/publications.js", + "uuid": "68e9537f-1a29-4af5-b6f0-40581b07469b", + "title": "tests for /v2.0/data/publications/{publicationid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-publications-{publicationid}-test.js", + "file": "/test/v2.0-data-publications-{publicationid}-test.js", "beforeHooks": [], "afterHooks": [], - "tests": [ - { - "title": "Get publication by singular id & return same id:", - "fullTitle": "Get publication data any number of ways: Get publication by singular id & return same id:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/publications/12')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body.data[0].publication.publicationid === 12;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "121d7d84-fd45-4509-837f-a457d0eee8de", - "parentUUID": "8894211c-5ecf-4ab6-8a9a-4e0af86bb334", - "isHook": false, - "skipped": false - }, - { - "title": "Get publication by comma sepatarated ids:", - "fullTitle": "Get publication data any number of ways: Get publication by comma sepatarated ids:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/publications/12,13')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body.data.map((x) => x.publicationid) == [12, 13];\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "3fafa0a1-df23-4001-9a6f-e0c82873b7f6", - "parentUUID": "8894211c-5ecf-4ab6-8a9a-4e0af86bb334", - "isHook": false, - "skipped": false - }, - { - "title": "Get publication by querying author:", - "fullTitle": "Get publication data any number of ways: Get publication by querying author:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/publications?familyname=Grimm')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body.data.result.length > 0;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "6b04a35b-9ed4-43a5-bc10-389889900e9e", - "parentUUID": "8894211c-5ecf-4ab6-8a9a-4e0af86bb334", - "isHook": false, - "skipped": false - }, - { - "title": "Get publications using pubs with missing links:", - "fullTitle": "Get publication data any number of ways: Get publications using pubs with missing links:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/publications?publicationid=12,14,1412,99999')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body.data.result.length > 0;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "9fcf8c01-c0dc-437e-8250-33d0dc2ebdfa", - "parentUUID": "8894211c-5ecf-4ab6-8a9a-4e0af86bb334", - "isHook": false, - "skipped": false - }, - { - "title": "Get publication by site id:", - "fullTitle": "Get publication data any number of ways: Get publication by site id:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/sites/12/publications')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return res.body.data.length > 0;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "24d9c734-023b-4ed4-9664-4b0fc150154f", - "parentUUID": "8894211c-5ecf-4ab6-8a9a-4e0af86bb334", - "isHook": false, - "skipped": false - }, + "tests": [], + "suites": [ { - "title": "Get publication by site id finds pubs for all sites:", - "fullTitle": "Get publication data any number of ways: Get publication by site id finds pubs for all sites:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/sites/12,13,14,15/publications')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const flatten = (list) => list.reduce(\n (a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), [],\n );\n const sites = [12, 13, 14, 15];\n const siteids = flatten(res.body.data.map((x) => x.siteid));\n return sites.every((x) => siteids.includes(x));\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "f8b56bf4-338f-48cd-82b5-a6f89397a1cd", - "parentUUID": "8894211c-5ecf-4ab6-8a9a-4e0af86bb334", - "isHook": false, - "skipped": false - }, + "uuid": "a9134e00-8169-40b3-8784-aff0b4ace867", + "title": "tests for get", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-publications-{publicationid}-test.js", + "file": "/test/v2.0-data-publications-{publicationid}-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should respond 200 for \"A list of publications.\"", + "fullTitle": "tests for /v2.0/data/publications/{publicationid} tests for get should respond 200 for \"A list of publications.\"", + "timedOut": false, + "duration": 72, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/publications/1562', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "55c3641f-fc0e-4fbd-a78c-0120bf48406b", + "parentUUID": "a9134e00-8169-40b3-8784-aff0b4ace867", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "55c3641f-fc0e-4fbd-a78c-0120bf48406b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 72, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "b35932f0-bac4-4d58-a2c6-8ebc9022f6e5", + "title": "tests for /v2.0/data/sites", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-test.js", + "file": "/test/v2.0-data-sites-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ { - "title": "Get publication by dataset id finds pubs for all datasets:", - "fullTitle": "Get publication data any number of ways: Get publication by dataset id finds pubs for all datasets:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets/12,13,2201,6000/publications')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const flatten = (list) => list.reduce(\n (a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), [],\n );\n const datasets = [12, 6000, 13, 2201];\n const datasetids = flatten(res.body.data.map((x) => x.datasetid));\n return datasets.every((x) => datasetids.includes(x));\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "e1406f4c-0c06-4fd2-b39d-3ca7eafec21a", - "parentUUID": "8894211c-5ecf-4ab6-8a9a-4e0af86bb334", - "isHook": false, - "skipped": false + "uuid": "262661fb-b03b-40ca-b40b-a22ab486fda7", + "title": "tests for get", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-test.js", + "file": "/test/v2.0-data-sites-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should respond 200 for \"An array of sites.\"", + "fullTitle": "tests for /v2.0/data/sites tests for get should respond 200 for \"An array of sites.\"", + "timedOut": false, + "duration": 729, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites', { \n 'qs': {\"sitename\":\"laborum in ad\",\"database\":\"NDSU Insect Database\",\"datasettype\":\"specimen stable isotope\",\"altmin\": 10,\"altmax\": 100,\"loc\":\"{\\\"type\\\":\\\"Polygon\\\",\\\"crs\\\":{\\\"type\\\":\\\"name\\\",\\\"properties\\\":{\\\"name\\\":\\\"EPSG:4326\\\"}},\\\"coordinates\\\":[[[13.4,55.92],[13.5,55.92],[13.5,55.95],[13.4,55.95],[13.4,55.92]]]}\",\"siteid\":26029,\"datasetid\":17655811,\"doi\":\"10871090516/ZS\",\"gpid\":5392,\"keyword\":\"pre-European\",\"contactid\":8050,\"taxa\":\"commodo proident dolore ullamco\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":6043174,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "c5d3ef3e-7a37-49cb-adf3-d3278f0c234d", + "parentUUID": "262661fb-b03b-40ca-b40b-a22ab486fda7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c5d3ef3e-7a37-49cb-adf3-d3278f0c234d" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 729, + "root": false, + "rootEmpty": false, + "_timeout": 900000 } ], - "suites": [], "passes": [], - "failures": [ - "121d7d84-fd45-4509-837f-a457d0eee8de", - "3fafa0a1-df23-4001-9a6f-e0c82873b7f6", - "6b04a35b-9ed4-43a5-bc10-389889900e9e", - "9fcf8c01-c0dc-437e-8250-33d0dc2ebdfa", - "24d9c734-023b-4ed4-9664-4b0fc150154f", - "f8b56bf4-338f-48cd-82b5-a6f89397a1cd", - "e1406f4c-0c06-4fd2-b39d-3ca7eafec21a" + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "735aa674-aaaa-4b32-aefb-8e91a782c45f", + "title": "tests for /v2.0/data/sites/{siteid}/chronologies", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-chronologies-test.js", + "file": "/test/v2.0-data-sites-{siteid}-chronologies-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "06b7c17a-e89d-423f-8ce6-d162e3651742", + "title": "tests for get", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-chronologies-test.js", + "file": "/test/v2.0-data-sites-{siteid}-chronologies-test.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "should respond 200 for \"chronology\"", + "fullTitle": "tests for /v2.0/data/sites/{siteid}/chronologies tests for get should respond 200 for \"chronology\"", + "timedOut": false, + "duration": 205, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "pending": false, + "context": null, + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/chronologies', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "c7188cb4-af9b-4dad-8716-0f58ccd46d59", + "parentUUID": "06b7c17a-e89d-423f-8ce6-d162e3651742", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c7188cb4-af9b-4dad-8716-0f58ccd46d59" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 205, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } ], + "passes": [], + "failures": [], "pending": [], "skipped": [], - "duration": 7, + "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 15000 + "_timeout": 900000 }, { - "uuid": "18637256-0c3f-46d4-8b00-f8f66f9a6e36", - "title": "tests for /v2.0/data/summary/rawbymonth", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-rawbymonth-test.js", - "file": "/test/v2.0-data-summary-rawbymonth-test.js", + "uuid": "8a1b45a0-057e-423c-aeaa-a715f0bf4992", + "title": "tests for /v2.0/data/sites/{siteid}/contacts", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-contacts-test.js", + "file": "/test/v2.0-data-sites-{siteid}-contacts-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "e3853fbe-e6d5-44a6-85fc-e7237a47f1e7", + "uuid": "e98d24f4-0d5f-41c9-a4a5-9c871f2bedd4", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-rawbymonth-test.js", - "file": "/test/v2.0-data-summary-rawbymonth-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-contacts-test.js", + "file": "/test/v2.0-data-sites-{siteid}-contacts-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A count of the data objects added to Neotoma.\"", - "fullTitle": "tests for /v2.0/data/summary/rawbymonth tests for get should respond 200 for \"A count of the data objects added to Neotoma.\"", + "title": "should respond 200 for \"contact\"", + "fullTitle": "tests for /v2.0/data/sites/{siteid}/contacts tests for get should respond 200 for \"contact\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 113, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/summary/rawbymonth', { \n 'qs': {\"start\": 1,\"end\": 10},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "7633666e-6f65-4b4b-8d6e-99f0225272f6", - "parentUUID": "e3853fbe-e6d5-44a6-85fc-e7237a47f1e7", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/contacts', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "2b13fc67-c9fb-4887-86b0-667e3167244b", + "parentUUID": "e98d24f4-0d5f-41c9-a4a5-9c871f2bedd4", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "7633666e-6f65-4b4b-8d6e-99f0225272f6" + "passes": [ + "2b13fc67-c9fb-4887-86b0-667e3167244b" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 113, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5529,53 +5389,49 @@ "_timeout": 900000 }, { - "uuid": "d97f2550-8664-4700-883e-c877c0716de9", - "title": "tests for /v2.0/data/aedna/sequences/{datasetid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aedna-sequences-{datasetid}-test.js", - "file": "/test/v2.0-data-aedna-sequences-{datasetid}-test.js", + "uuid": "e30197ed-2666-4bd1-8a2d-278c47c989f6", + "title": "tests for /v2.0/data/sites/{siteid}/datasets", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-datasets-test.js", + "file": "/test/v2.0-data-sites-{siteid}-datasets-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "8518c180-b40a-49fa-9e69-e52de1c2158d", + "uuid": "9be61cf9-1afd-4972-9091-557f0cb3503b", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aedna-sequences-{datasetid}-test.js", - "file": "/test/v2.0-data-aedna-sequences-{datasetid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-datasets-test.js", + "file": "/test/v2.0-data-sites-{siteid}-datasets-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"aeDNA sequences grouped by taxon for the dataset.\"", - "fullTitle": "tests for /v2.0/data/aedna/sequences/{datasetid} tests for get should respond 200 for \"aeDNA sequences grouped by taxon for the dataset.\"", + "title": "should respond 200 for \"An array of datasets.\"", + "fullTitle": "tests for /v2.0/data/sites/{siteid}/datasets tests for get should respond 200 for \"An array of datasets.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 1150, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/aedna/sequences/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "c29f175a-f011-4cd8-948a-839280d9b242", - "parentUUID": "8518c180-b40a-49fa-9e69-e52de1c2158d", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/datasets', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "414154b1-c785-46ba-ada5-c90ccd6b19b2", + "parentUUID": "9be61cf9-1afd-4972-9091-557f0cb3503b", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "c29f175a-f011-4cd8-948a-839280d9b242" + "passes": [ + "414154b1-c785-46ba-ada5-c90ccd6b19b2" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 1150, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5591,53 +5447,49 @@ "_timeout": 900000 }, { - "uuid": "03a9c13f-0b0d-4747-b01b-c9b787d56e3f", - "title": "tests for /v2.0/data/contacts", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-test.js", - "file": "/test/v2.0-data-contacts-test.js", + "uuid": "2308c239-e6a9-4b46-ac40-70ab9a1c42cc", + "title": "tests for /v2.0/data/sites/{siteid}/datasets_elc", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-datasets_elc-test.js", + "file": "/test/v2.0-data-sites-{siteid}-datasets_elc-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "0143076e-f3cf-4d7d-b72e-019a6391a8b1", + "uuid": "5092ed78-0d13-4a64-8a59-19dde2076b6c", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-test.js", - "file": "/test/v2.0-data-contacts-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-datasets_elc-test.js", + "file": "/test/v2.0-data-sites-{siteid}-datasets_elc-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"contact\"", - "fullTitle": "tests for /v2.0/data/contacts tests for get should respond 200 for \"contact\"", + "title": "should respond 200 for \"An array of datasets.\"", + "fullTitle": "tests for /v2.0/data/sites/{siteid}/datasets_elc tests for get should respond 200 for \"An array of datasets.\"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 2434, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts', { \n 'qs': {\"contactid\":3142,\"familyname\":\" pb\",\"contactname\":\"tv\",\"contactstatus\":\"inactive\",\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "bd46ecfd-5ebc-4d16-9717-cb5ef907e9ff", - "parentUUID": "0143076e-f3cf-4d7d-b72e-019a6391a8b1", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/datasets_elc', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "4a91a58e-768f-48bc-974b-b8a17dec090a", + "parentUUID": "5092ed78-0d13-4a64-8a59-19dde2076b6c", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "bd46ecfd-5ebc-4d16-9717-cb5ef907e9ff" + "passes": [ + "4a91a58e-768f-48bc-974b-b8a17dec090a" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 2434, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5653,53 +5505,49 @@ "_timeout": 900000 }, { - "uuid": "c4293a42-b2b0-4e38-a748-9353939bb6d3", - "title": "tests for /v2.0/apps/constdb", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-test.js", - "file": "/test/v2.0-apps-constdb-test.js", + "uuid": "490b3fc5-9d2a-4338-a575-03dd47a1ec69", + "title": "tests for /v2.0/data/sites/{siteid}/geopoliticalunits", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-geopoliticalunits-test.js", + "file": "/test/v2.0-data-sites-{siteid}-geopoliticalunits-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "85206eec-6330-49c8-a310-5399ba98e164", + "uuid": "facb356e-bf88-4552-89f6-6f08091f6549", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-test.js", - "file": "/test/v2.0-apps-constdb-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-geopoliticalunits-test.js", + "file": "/test/v2.0-data-sites-{siteid}-geopoliticalunits-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returns metadata about each [constituent database](https://www.neotomadb.org/data/constituent-databases) in Neotoma, including Summary Information about dataset types within the database and the age spans of the records in the database. Constituent databases \"", - "fullTitle": "tests for /v2.0/apps/constdb tests for get should respond 200 for \"Returns metadata about each [constituent database](https://www.neotomadb.org/data/constituent-databases) in Neotoma, including Summary Information about dataset types within the database and the age spans of the records in the database. Constituent databases \"", + "title": "should respond 200 for \"An array of geopolitical units.\"", + "fullTitle": "tests for /v2.0/data/sites/{siteid}/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 76, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "fe00b028-bd87-4b8b-ae75-cde404307ba7", - "parentUUID": "85206eec-6330-49c8-a310-5399ba98e164", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/geopoliticalunits', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "50c75893-fef9-474e-bade-4cef2ed493cb", + "parentUUID": "facb356e-bf88-4552-89f6-6f08091f6549", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "fe00b028-bd87-4b8b-ae75-cde404307ba7" + "passes": [ + "50c75893-fef9-474e-bade-4cef2ed493cb" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 76, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5715,53 +5563,49 @@ "_timeout": 900000 }, { - "uuid": "a38243e3-0f6d-4ea6-9932-e37adde88c87", - "title": "tests for /v2.0/data/occurrences/{occurrenceid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-occurrences-{occurrenceid}-test.js", - "file": "/test/v2.0-data-occurrences-{occurrenceid}-test.js", + "uuid": "45ce5b25-b58a-474f-b0c2-6edfb1b6fcbd", + "title": "tests for /v2.0/data/sites/{siteid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-test.js", + "file": "/test/v2.0-data-sites-{siteid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "07e2b3c8-2d79-4487-ac83-96174a7b12fc", + "uuid": "00a31eb3-97f7-4f63-8af3-15ea65c58d5d", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-occurrences-{occurrenceid}-test.js", - "file": "/test/v2.0-data-occurrences-{occurrenceid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-test.js", + "file": "/test/v2.0-data-sites-{siteid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"occurrence\"", - "fullTitle": "tests for /v2.0/data/occurrences/{occurrenceid} tests for get should respond 200 for \"occurrence\"", + "title": "should respond 200 for \"An array of sites.\"", + "fullTitle": "tests for /v2.0/data/sites/{siteid} tests for get should respond 200 for \"An array of sites.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 84, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/occurrences/500', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "c9294e9b-a962-45c3-af8e-a094087ab4ff", - "parentUUID": "07e2b3c8-2d79-4487-ac83-96174a7b12fc", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "7f117412-6376-4137-bb69-1fc0a3cc67b2", + "parentUUID": "00a31eb3-97f7-4f63-8af3-15ea65c58d5d", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "c9294e9b-a962-45c3-af8e-a094087ab4ff" + "passes": [ + "7f117412-6376-4137-bb69-1fc0a3cc67b2" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 84, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5777,53 +5621,49 @@ "_timeout": 900000 }, { - "uuid": "3223231a-9f3c-4a8c-99c3-31b7036fffe0", - "title": "tests for /v2.0/data/speleothems/{collectionunitid}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-speleothems-{collectionunitid}-test.js", - "file": "/test/v2.0-data-speleothems-{collectionunitid}-test.js", + "uuid": "63f8ad0c-acf4-4c27-b49a-eb6cf8c5e827", + "title": "tests for /v2.0/data/spatial/faunal", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-faunal-test.js", + "file": "/test/v2.0-data-spatial-faunal-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "ae38c68d-0044-42c4-bdb9-1de7ccf3e36b", + "uuid": "2bc4ccaf-a7e3-4bd0-840d-e367cc5a3f24", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-speleothems-{collectionunitid}-test.js", - "file": "/test/v2.0-data-speleothems-{collectionunitid}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-faunal-test.js", + "file": "/test/v2.0-data-spatial-faunal-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Metadata associated with speleothems submitted through SISAL.\"", - "fullTitle": "tests for /v2.0/data/speleothems/{collectionunitid} tests for get should respond 200 for \"Metadata associated with speleothems submitted through SISAL.\"", + "title": "should respond 200 for \"An object containing all matched species names, identifiers and a GeoJSON polygon representing the UNIONed ranges for the selected species. All data is derived from:
* Mammal Diversity Database. (2020). Mammal Diversity Database (Version 1.2) [Data set]. Zenodo. DOI: [10.5281/zenodo.4139818](https://doi.org/10.5281/zenodo.4139818).
* Map of Life. (2021). Mammal range maps harmonised to the Mammals Diversity Database [Data set]. Map of Life. [10.48600/MOL-48VZ-P413](https://doi.org/10.48600/MOL-48VZ-P413) \"", + "fullTitle": "tests for /v2.0/data/spatial/faunal tests for get should respond 200 for \"An object containing all matched species names, identifiers and a GeoJSON polygon representing the UNIONed ranges for the selected species. All data is derived from:
* Mammal Diversity Database. (2020). Mammal Diversity Database (Version 1.2) [Data set]. Zenodo. DOI: [10.5281/zenodo.4139818](https://doi.org/10.5281/zenodo.4139818).
* Map of Life. (2021). Mammal range maps harmonised to the Mammals Diversity Database [Data set]. Map of Life. [10.48600/MOL-48VZ-P413](https://doi.org/10.48600/MOL-48VZ-P413) \"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 79, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/speleothems/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "4f9926f5-e2c0-443d-b3d7-69ccfa5ed8cf", - "parentUUID": "ae38c68d-0044-42c4-bdb9-1de7ccf3e36b", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/faunal', { \n 'qs': {\"sciname\":\"eu quis consectetur Excepteur\",\"proj\": 4326,\"prec\": 1000},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "9d28909a-feca-48dd-9aee-2347feeee4f0", + "parentUUID": "2bc4ccaf-a7e3-4bd0-840d-e367cc5a3f24", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "4f9926f5-e2c0-443d-b3d7-69ccfa5ed8cf" + "passes": [ + "9d28909a-feca-48dd-9aee-2347feeee4f0" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 79, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5839,53 +5679,49 @@ "_timeout": 900000 }, { - "uuid": "4586fb9e-aa93-46ce-ae35-33c0cacaf13e", - "title": "tests for /v2.0/data/aedna/taxa/{taxonid}/sequences", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aedna-taxa-{taxonid}-sequences-test.js", - "file": "/test/v2.0-data-aedna-taxa-{taxonid}-sequences-test.js", + "uuid": "5a49360f-482a-49e0-aa1f-834974f15395", + "title": "tests for /v2.0/data/spatial/icesheet", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-icesheet-test.js", + "file": "/test/v2.0-data-spatial-icesheet-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "4e941a2a-dc9a-413a-8208-2ed54d76b09e", + "uuid": "00eac448-f8ac-47f4-89da-6025d74e77b3", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-aedna-taxa-{taxonid}-sequences-test.js", - "file": "/test/v2.0-data-aedna-taxa-{taxonid}-sequences-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-icesheet-test.js", + "file": "/test/v2.0-data-spatial-icesheet-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of aeDNA sequences for the taxon.\"", - "fullTitle": "tests for /v2.0/data/aedna/taxa/{taxonid}/sequences tests for get should respond 200 for \"An array of aeDNA sequences for the taxon.\"", + "title": "should respond 200 for \"An object containing glacial extents for the selected time period (in **calibrated radiocarbon years**). \"", + "fullTitle": "tests for /v2.0/data/spatial/icesheet tests for get should respond 200 for \"An object containing glacial extents for the selected time period (in **calibrated radiocarbon years**). \"", "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 273, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/aedna/taxa/500/sequences', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "b09dd77d-2ec2-4602-bd10-3a71952c81c2", - "parentUUID": "4e941a2a-dc9a-413a-8208-2ed54d76b09e", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/icesheet', { \n 'qs': {\"age\":16520,\"proj\": 4326,\"prec\": 1000},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "ca2e4e7b-78f8-4c67-b9f8-2aa2889dd53a", + "parentUUID": "00eac448-f8ac-47f4-89da-6025d74e77b3", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "b09dd77d-2ec2-4602-bd10-3a71952c81c2" + "passes": [ + "ca2e4e7b-78f8-4c67-b9f8-2aa2889dd53a" ], + "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 273, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5901,53 +5737,49 @@ "_timeout": 900000 }, { - "uuid": "2bfb47a1-2850-43f3-b04c-afe1dd6777d8", - "title": "tests for /v1.5/apps/TaxaInDatasets", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-TaxaInDatasets-test.js", - "file": "/test/v1.5-apps-TaxaInDatasets-test.js", + "uuid": "7f2832a8-c101-4454-bde8-78d6d8e773b3", + "title": "tests for /v2.0/data/spatial/lakes", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-lakes-test.js", + "file": "/test/v2.0-data-spatial-lakes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "0a618027-f50f-479d-a0f9-80595873041b", + "uuid": "44f13b2e-bd6d-437f-8903-5c71e474b407", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-apps-TaxaInDatasets-test.js", - "file": "/test/v1.5-apps-TaxaInDatasets-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-lakes-test.js", + "file": "/test/v2.0-data-spatial-lakes-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of taxon identities with associated dataset IDs.\"", - "fullTitle": "tests for /v1.5/apps/TaxaInDatasets tests for get should respond 200 for \"An array of taxon identities with associated dataset IDs.\"", + "title": "should respond 200 for \"An object containing all matched lakes within some buffer distance of a site. Data derived from the [HydroLakes database](https://www.hydrosheds.org/products/hydrolakes):
* Messager, M.L., Lehner, B., Grill, G., Nedeva, I., Schmitt, O. (2016). Estimating the volume and age of water stored in global lakes using a geo-statistical approach. *Nature Communications*, 7: 13603. doi: [10.1038/ncomms13603](https://doi.org/10.1038/ncomms13603) \"", + "fullTitle": "tests for /v2.0/data/spatial/lakes tests for get should respond 200 for \"An object containing all matched lakes within some buffer distance of a site. Data derived from the [HydroLakes database](https://www.hydrosheds.org/products/hydrolakes):
* Messager, M.L., Lehner, B., Grill, G., Nedeva, I., Schmitt, O. (2016). Estimating the volume and age of water stored in global lakes using a geo-statistical approach. *Nature Communications*, 7: 13603. doi: [10.1038/ncomms13603](https://doi.org/10.1038/ncomms13603) \"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 137, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/apps/TaxaInDatasets', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "6adc859a-b99e-457e-9682-8b2d6450a8e3", - "parentUUID": "0a618027-f50f-479d-a0f9-80595873041b", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/lakes', { \n 'qs': {\"siteid\":28976,\"buffer\":6379,\"prec\": 1000,\"proj\": 4326},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "21d23676-19a3-46fd-a9c5-5a417910df14", + "parentUUID": "44f13b2e-bd6d-437f-8903-5c71e474b407", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "6adc859a-b99e-457e-9682-8b2d6450a8e3" + "passes": [ + "21d23676-19a3-46fd-a9c5-5a417910df14" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 137, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5963,53 +5795,49 @@ "_timeout": 900000 }, { - "uuid": "741b5e8e-d3f6-4a3d-b04b-2763683e027a", - "title": "tests for /v2.0/data/occurrences", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-occurrences-test.js", - "file": "/test/v2.0-data-occurrences-test.js", + "uuid": "7d93e2b6-3e7b-4f7a-ae9b-c9b514871f6a", + "title": "tests for /v2.0/data/speleothems/{collectionunitid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-speleothems-{collectionunitid}-test.js", + "file": "/test/v2.0-data-speleothems-{collectionunitid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "a1d13012-9a83-4746-a355-610fa78760af", + "uuid": "6ea80e6b-d26d-48ab-b1f1-f9beb49c4f48", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-occurrences-test.js", - "file": "/test/v2.0-data-occurrences-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-speleothems-{collectionunitid}-test.js", + "file": "/test/v2.0-data-speleothems-{collectionunitid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"occurrence\"", - "fullTitle": "tests for /v2.0/data/occurrences tests for get should respond 200 for \"occurrence\"", + "title": "should respond 200 for \"Metadata associated with speleothems submitted through SISAL.\"", + "fullTitle": "tests for /v2.0/data/speleothems/{collectionunitid} tests for get should respond 200 for \"Metadata associated with speleothems submitted through SISAL.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 104, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/occurrences', { \n 'qs': {\"taxonname\":\"in cupidatat\",\"taxonid\":44121,\"siteid\":3790,\"sitename\":\"deserunt adipisicing cupidatat\",\"datasettype\":\"ostracode\",\"altmin\": 10,\"altmax\": 100,\"loc\":\"{\\\"type\\\":\\\"Polygon\\\",\\\"crs\\\":{\\\"type\\\":\\\"name\\\",\\\"properties\\\":{\\\"name\\\":\\\"EPSG:4326\\\"}},\\\"coordinates\\\":[[[13.4,55.92],[13.5,55.92],[13.5,55.95],[13.4,55.95],[13.4,55.92]]]}\",\"ageof\":6376068,\"ageyoung\": 1000,\"ageold\": 10000,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "c916546e-c1e7-403e-9085-765732e79f88", - "parentUUID": "a1d13012-9a83-4746-a355-610fa78760af", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/speleothems/7038', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "5c12b1b3-a6ec-4685-88c3-7b91b1b118ae", + "parentUUID": "6ea80e6b-d26d-48ab-b1f1-f9beb49c4f48", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "c916546e-c1e7-403e-9085-765732e79f88" + "passes": [ + "5c12b1b3-a6ec-4685-88c3-7b91b1b118ae" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 104, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -6025,53 +5853,49 @@ "_timeout": 900000 }, { - "uuid": "e832d3d8-1a3c-4615-a1b5-68cc4f9050b1", - "title": "tests for /v2.0/apps/keywords", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-keywords-test.js", - "file": "/test/v2.0-apps-keywords-test.js", + "uuid": "63a0d30d-9d70-4b1d-a829-57c79a5e15b9", + "title": "tests for /v2.0/data/summary/dsdbmonth", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-dsdbmonth-test.js", + "file": "/test/v2.0-data-summary-dsdbmonth-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "94e7f6a8-0f23-4500-90fa-82fff7b9356d", + "uuid": "4f2bf7e7-2efb-473b-889f-d692bfe7bf88", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-keywords-test.js", - "file": "/test/v2.0-apps-keywords-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-dsdbmonth-test.js", + "file": "/test/v2.0-data-summary-dsdbmonth-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A list of all keywords used for analysis units in the database.\"", - "fullTitle": "tests for /v2.0/apps/keywords tests for get should respond 200 for \"A list of all keywords used for analysis units in the database.\"", + "title": "should respond 200 for \"A count of the datasets added by database for the requested period.\"", + "fullTitle": "tests for /v2.0/data/summary/dsdbmonth tests for get should respond 200 for \"A count of the datasets added by database for the requested period.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 236, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/keywords', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "c7558037-4817-47a3-b9be-7c1a5c7e3c0c", - "parentUUID": "94e7f6a8-0f23-4500-90fa-82fff7b9356d", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/summary/dsdbmonth', { \n 'qs': {\"start\": 1,\"end\": 10},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "fbfbc039-1670-48bb-96de-aba9cfd8148d", + "parentUUID": "4f2bf7e7-2efb-473b-889f-d692bfe7bf88", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "c7558037-4817-47a3-b9be-7c1a5c7e3c0c" + "passes": [ + "fbfbc039-1670-48bb-96de-aba9cfd8148d" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 236, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -6087,53 +5911,49 @@ "_timeout": 900000 }, { - "uuid": "711fd662-540d-4340-86a5-a76e4da176e2", - "title": "tests for /v2.0/data/geopoliticalunits/{gpid}/sites", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js", - "file": "/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js", + "uuid": "bd6dac1d-e18c-40d0-8a9e-86c3f437e3bf", + "title": "tests for /v2.0/data/summary/dstypemonth", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-dstypemonth-test.js", + "file": "/test/v2.0-data-summary-dstypemonth-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "2c2e3349-65c0-49f1-b764-5b57faf9c86f", + "uuid": "111e8b87-557d-49e8-a864-3a6768788e6a", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js", - "file": "/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-dstypemonth-test.js", + "file": "/test/v2.0-data-summary-dstypemonth-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of sites.\"", - "fullTitle": "tests for /v2.0/data/geopoliticalunits/{gpid}/sites tests for get should respond 200 for \"An array of sites.\"", + "title": "should respond 200 for \"A count of the datasets added by datasettype for the requested period.\"", + "fullTitle": "tests for /v2.0/data/summary/dstypemonth tests for get should respond 200 for \"A count of the datasets added by datasettype for the requested period.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 214, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/6605/sites', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "9c853749-cfba-4550-ab92-f52243f830bc", - "parentUUID": "2c2e3349-65c0-49f1-b764-5b57faf9c86f", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/summary/dstypemonth', { \n 'qs': {\"start\": 1,\"end\": 10},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "cc9dd1a3-8c8a-4524-9139-ef1f436d10b7", + "parentUUID": "111e8b87-557d-49e8-a864-3a6768788e6a", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "9c853749-cfba-4550-ab92-f52243f830bc" + "passes": [ + "cc9dd1a3-8c8a-4524-9139-ef1f436d10b7" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 214, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -6149,53 +5969,49 @@ "_timeout": 900000 }, { - "uuid": "19e9d290-ed26-4e90-886c-e4570e7776b6", - "title": "tests for /v1.5/dbtables/{table}", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-dbtables-{table}-test.js", - "file": "/test/v1.5-dbtables-{table}-test.js", + "uuid": "bdceb252-ce23-43d0-9bab-fc47e357c596", + "title": "tests for /v2.0/data/summary/rawbymonth", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-rawbymonth-test.js", + "file": "/test/v2.0-data-summary-rawbymonth-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "9c1fc9ad-3735-4c66-abe1-bfbd386350f7", + "uuid": "d3b63965-5aba-4578-afa4-7495fc334fb4", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-dbtables-{table}-test.js", - "file": "/test/v1.5-dbtables-{table}-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-summary-rawbymonth-test.js", + "file": "/test/v2.0-data-summary-rawbymonth-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Returned table.\"", - "fullTitle": "tests for /v1.5/dbtables/{table} tests for get should respond 200 for \"Returned table.\"", + "title": "should respond 200 for \"A count of the data objects added to Neotoma.\"", + "fullTitle": "tests for /v2.0/data/summary/rawbymonth tests for get should respond 200 for \"A count of the data objects added to Neotoma.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 12474, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/dbtables/geochrontypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "cfad2f06-5e69-49b4-8dfb-aaf510a2e065", - "parentUUID": "9c1fc9ad-3735-4c66-abe1-bfbd386350f7", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/summary/rawbymonth', { \n 'qs': {\"start\": 1,\"end\": 10},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "0ec17411-4d04-4754-b0f9-6186948df72f", + "parentUUID": "d3b63965-5aba-4578-afa4-7495fc334fb4", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "cfad2f06-5e69-49b4-8dfb-aaf510a2e065" + "passes": [ + "0ec17411-4d04-4754-b0f9-6186948df72f" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 12474, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -6211,254 +6027,49 @@ "_timeout": 900000 }, { - "uuid": "5a519466-ad83-415c-8b57-962a68eb13a8", - "title": "Get Neotoma data with geoJSON extents:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js", - "file": "/test/spatial.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "Get occurrence data using a simple geoJSON:", - "fullTitle": "Get Neotoma data with geoJSON extents: Get occurrence data using a simple geoJSON:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences?loc={\"type\":\"Polygon\",\"coordinates\":[[[-104.053249,41.001406],[-103.497447,41.001635],[-102.865784,41.001988],[-102.556789,41.002219],[-102.051614,41.002377],[-102.051725,40.537839],[-102.051744,40.003078],[-102.050422,39.646048],[-102.048449,39.303138],[-102.045388,38.813392],[-102.045324,38.453647],[-102.044644,38.045532],[-102.041574,37.680436],[-102.041974,37.352613],[-102.04224,36.993083],[-102.698142,36.995149],[-102.814616,37.000783],[-103.002199,37.000104],[-103.733247,36.998016],[-104.338833,36.993535],[-105.000554,36.993264],[-105.1208,36.995428],[-105.62747,36.995679],[-106.201469,36.994122],[-106.869796,36.992426],[-106.877292,37.000139],[-107.420913,37.000005],[-108.000623,37.000001],[-108.249358,36.999015],[-108.620309,36.999287],[-109.045223,36.999084],[-109.04581,37.374993],[-109.041865,37.530726],[-109.041058,37.907236],[-109.041762,38.16469],[-109.060062,38.275489],[-109.059541,38.719888],[-109.054189,38.874984],[-109.051512,39.126095],[-109.051363,39.497674],[-109.050615,39.87497],[-109.050946,40.444368],[-109.048044,40.619231],[-109.050076,41.000659],[-108.884138,41.000094],[-108.250649,41.000114],[-107.625624,41.002124],[-106.857773,41.002663],[-106.453859,41.002057],[-106.217573,40.997734],[-105.730421,40.996886],[-105.277138,40.998173],[-104.855273,40.998048],[-104.675999,41.000957],[-104.053249,41.001406]]]}')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "b5ea9a69-281f-4a0c-b79f-8d8aca539e82", - "parentUUID": "5a519466-ad83-415c-8b57-962a68eb13a8", - "isHook": false, - "skipped": false - }, - { - "title": "Get site data using a simple geoJSON:", - "fullTitle": "Get Neotoma data with geoJSON extents: Get site data using a simple geoJSON:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/sites?loc={\"type\":\"Polygon\",\"coordinates\":[[[-104.053249,41.001406],[-103.497447,41.001635],[-102.865784,41.001988],[-102.556789,41.002219],[-102.051614,41.002377],[-102.051725,40.537839],[-102.051744,40.003078],[-102.050422,39.646048],[-102.048449,39.303138],[-102.045388,38.813392],[-102.045324,38.453647],[-102.044644,38.045532],[-102.041574,37.680436],[-102.041974,37.352613],[-102.04224,36.993083],[-102.698142,36.995149],[-102.814616,37.000783],[-103.002199,37.000104],[-103.733247,36.998016],[-104.338833,36.993535],[-105.000554,36.993264],[-105.1208,36.995428],[-105.62747,36.995679],[-106.201469,36.994122],[-106.869796,36.992426],[-106.877292,37.000139],[-107.420913,37.000005],[-108.000623,37.000001],[-108.249358,36.999015],[-108.620309,36.999287],[-109.045223,36.999084],[-109.04581,37.374993],[-109.041865,37.530726],[-109.041058,37.907236],[-109.041762,38.16469],[-109.060062,38.275489],[-109.059541,38.719888],[-109.054189,38.874984],[-109.051512,39.126095],[-109.051363,39.497674],[-109.050615,39.87497],[-109.050946,40.444368],[-109.048044,40.619231],[-109.050076,41.000659],[-108.884138,41.000094],[-108.250649,41.000114],[-107.625624,41.002124],[-106.857773,41.002663],[-106.453859,41.002057],[-106.217573,40.997734],[-105.730421,40.996886],[-105.277138,40.998173],[-104.855273,40.998048],[-104.675999,41.000957],[-104.053249,41.001406]]]}')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "2c806c72-4497-47dc-a1c2-f77125d8135e", - "parentUUID": "5a519466-ad83-415c-8b57-962a68eb13a8", - "isHook": false, - "skipped": false - }, - { - "title": "Get dataset data using a simple geoJSON:", - "fullTitle": "Get Neotoma data with geoJSON extents: Get dataset data using a simple geoJSON:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets?loc={\"type\":\"Polygon\",\"coordinates\":[[[-104.053249,41.001406],[-103.497447,41.001635],[-102.865784,41.001988],[-102.556789,41.002219],[-102.051614,41.002377],[-102.051725,40.537839],[-102.051744,40.003078],[-102.050422,39.646048],[-102.048449,39.303138],[-102.045388,38.813392],[-102.045324,38.453647],[-102.044644,38.045532],[-102.041574,37.680436],[-102.041974,37.352613],[-102.04224,36.993083],[-102.698142,36.995149],[-102.814616,37.000783],[-103.002199,37.000104],[-103.733247,36.998016],[-104.338833,36.993535],[-105.000554,36.993264],[-105.1208,36.995428],[-105.62747,36.995679],[-106.201469,36.994122],[-106.869796,36.992426],[-106.877292,37.000139],[-107.420913,37.000005],[-108.000623,37.000001],[-108.249358,36.999015],[-108.620309,36.999287],[-109.045223,36.999084],[-109.04581,37.374993],[-109.041865,37.530726],[-109.041058,37.907236],[-109.041762,38.16469],[-109.060062,38.275489],[-109.059541,38.719888],[-109.054189,38.874984],[-109.051512,39.126095],[-109.051363,39.497674],[-109.050615,39.87497],[-109.050946,40.444368],[-109.048044,40.619231],[-109.050076,41.000659],[-108.884138,41.000094],[-108.250649,41.000114],[-107.625624,41.002124],[-106.857773,41.002663],[-106.453859,41.002057],[-106.217573,40.997734],[-105.730421,40.996886],[-105.277138,40.998173],[-104.855273,40.998048],[-104.675999,41.000957],[-104.053249,41.001406]]]}')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "0a73c63c-9f94-4bd5-98a6-c8253b55bb68", - "parentUUID": "5a519466-ad83-415c-8b57-962a68eb13a8", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "b5ea9a69-281f-4a0c-b79f-8d8aca539e82", - "2c806c72-4497-47dc-a1c2-f77125d8135e", - "0a73c63c-9f94-4bd5-98a6-c8253b55bb68" - ], - "pending": [], - "skipped": [], - "duration": 4, - "root": false, - "rootEmpty": false, - "_timeout": 15000 - }, - { - "uuid": "60232a7b-4517-40e2-96ad-18e905452030", - "title": "Get Neotoma data with WKT extents:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js", - "file": "/test/spatial.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "Get occurrence data using a simple WKT:", - "fullTitle": "Get Neotoma data with WKT extents: Get occurrence data using a simple WKT:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/occurrences?loc=POLYGON((-104.053249 41.001406,-103.497447 41.001635,-102.865784 41.001988,-102.556789 41.002219,-102.051614 41.002377,-102.051725 40.537839,-102.051744 40.003078,-102.050422 39.646048,-102.048449 39.303138,-102.045388 38.813392,-102.045324 38.453647,-102.044644 38.045532,-102.041574 37.680436,-102.041974 37.352613,-102.04224 36.993083,-102.698142 36.995149,-102.814616 37.000783,-103.002199 37.000104,-103.733247 36.998016,-104.338833 36.993535,-105.000554 36.993264,-105.1208 36.995428,-105.62747 36.995679,-106.201469 36.994122,-106.869796 36.992426,-106.877292 37.000139,-107.420913 37.000005,-108.000623 37.000001,-108.249358 36.999015,-108.620309 36.999287,-109.045223 36.999084,-109.04581 37.374993,-109.041865 37.530726,-109.041058 37.907236,-109.041762 38.16469,-109.060062 38.275489,-109.059541 38.719888,-109.054189 38.874984,-109.051512 39.126095,-109.051363 39.497674,-109.050615 39.87497,-109.050946 40.444368,-109.048044 40.619231,-109.050076 41.000659,-108.884138 41.000094,-108.250649 41.000114,-107.625624 41.002124,-106.857773 41.002663,-106.453859 41.002057,-106.217573 40.997734,-105.730421 40.996886,-105.277138 40.998173,-104.855273 40.998048,-104.675999 41.000957,-104.053249 41.001406))')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "45502f72-72d8-4a1c-986a-a38f0052177c", - "parentUUID": "60232a7b-4517-40e2-96ad-18e905452030", - "isHook": false, - "skipped": false - }, - { - "title": "Get site data using a simple WKT:", - "fullTitle": "Get Neotoma data with WKT extents: Get site data using a simple WKT:", - "timedOut": false, - "duration": 2, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/sites?loc=POLYGON((-104.053249 41.001406,-103.497447 41.001635,-102.865784 41.001988,-102.556789 41.002219,-102.051614 41.002377,-102.051725 40.537839,-102.051744 40.003078,-102.050422 39.646048,-102.048449 39.303138,-102.045388 38.813392,-102.045324 38.453647,-102.044644 38.045532,-102.041574 37.680436,-102.041974 37.352613,-102.04224 36.993083,-102.698142 36.995149,-102.814616 37.000783,-103.002199 37.000104,-103.733247 36.998016,-104.338833 36.993535,-105.000554 36.993264,-105.1208 36.995428,-105.62747 36.995679,-106.201469 36.994122,-106.869796 36.992426,-106.877292 37.000139,-107.420913 37.000005,-108.000623 37.000001,-108.249358 36.999015,-108.620309 36.999287,-109.045223 36.999084,-109.04581 37.374993,-109.041865 37.530726,-109.041058 37.907236,-109.041762 38.16469,-109.060062 38.275489,-109.059541 38.719888,-109.054189 38.874984,-109.051512 39.126095,-109.051363 39.497674,-109.050615 39.87497,-109.050946 40.444368,-109.048044 40.619231,-109.050076 41.000659,-108.884138 41.000094,-108.250649 41.000114,-107.625624 41.002124,-106.857773 41.002663,-106.453859 41.002057,-106.217573 40.997734,-105.730421 40.996886,-105.277138 40.998173,-104.855273 40.998048,-104.675999 41.000957,-104.053249 41.001406))')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "d556354c-578c-4f54-aa97-1e7afc71b284", - "parentUUID": "60232a7b-4517-40e2-96ad-18e905452030", - "isHook": false, - "skipped": false - }, - { - "title": "Get dataset data using a simple WKT:", - "fullTitle": "Get Neotoma data with WKT extents: Get dataset data using a simple WKT:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets?loc=POLYGON((-104.053249 41.001406,-103.497447 41.001635,-102.865784 41.001988,-102.556789 41.002219,-102.051614 41.002377,-102.051725 40.537839,-102.051744 40.003078,-102.050422 39.646048,-102.048449 39.303138,-102.045388 38.813392,-102.045324 38.453647,-102.044644 38.045532,-102.041574 37.680436,-102.041974 37.352613,-102.04224 36.993083,-102.698142 36.995149,-102.814616 37.000783,-103.002199 37.000104,-103.733247 36.998016,-104.338833 36.993535,-105.000554 36.993264,-105.1208 36.995428,-105.62747 36.995679,-106.201469 36.994122,-106.869796 36.992426,-106.877292 37.000139,-107.420913 37.000005,-108.000623 37.000001,-108.249358 36.999015,-108.620309 36.999287,-109.045223 36.999084,-109.04581 37.374993,-109.041865 37.530726,-109.041058 37.907236,-109.041762 38.16469,-109.060062 38.275489,-109.059541 38.719888,-109.054189 38.874984,-109.051512 39.126095,-109.051363 39.497674,-109.050615 39.87497,-109.050946 40.444368,-109.048044 40.619231,-109.050076 41.000659,-108.884138 41.000094,-108.250649 41.000114,-107.625624 41.002124,-106.857773 41.002663,-106.453859 41.002057,-106.217573 40.997734,-105.730421 40.996886,-105.277138 40.998173,-104.855273 40.998048,-104.675999 41.000957,-104.053249 41.001406))')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "085d5821-d3b7-45d5-853d-5803d53b3586", - "parentUUID": "60232a7b-4517-40e2-96ad-18e905452030", - "isHook": false, - "skipped": false - }, - { - "title": "Get dataset data using a simple WKT:", - "fullTitle": "Get Neotoma data with WKT extents: Get dataset data using a simple WKT:", - "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, - "pending": false, - "context": null, - "code": "api.get('v2.0/data/datasets?loc=POLYGON((139.8%20-33.7,%20150.1%20-33.7,%20150.1%20-39.1,%20139.8%20-39.1,%20139.8%20-33.7))')\n .set('Accept', 'application/json')\n .expect(function(res) {\n return Object.keys(res.body['data'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['occurrence'] === 12;\n })\n .expect(200, done);", - "err": { - "message": "AggregateError [ECONNREFUSED]: ", - "estack": "AggregateError [ECONNREFUSED]: \n at internalConnectMultiple (node:net:1139:18)\n at afterConnectMultiple (node:net:1712:7)", - "diff": null - }, - "uuid": "e30e40c3-438d-4c75-a40c-810757f62187", - "parentUUID": "60232a7b-4517-40e2-96ad-18e905452030", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [], - "failures": [ - "45502f72-72d8-4a1c-986a-a38f0052177c", - "d556354c-578c-4f54-aa97-1e7afc71b284", - "085d5821-d3b7-45d5-853d-5803d53b3586", - "e30e40c3-438d-4c75-a40c-810757f62187" - ], - "pending": [], - "skipped": [], - "duration": 5, - "root": false, - "rootEmpty": false, - "_timeout": 15000 - }, - { - "uuid": "f92d3277-aa1f-4cab-b25b-230d4ce27128", - "title": "tests for /v2.0/data/contacts/{contactid}/publications", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-publications-test.js", - "file": "/test/v2.0-data-contacts-{contactid}-publications-test.js", + "uuid": "de45fdf2-8e6a-423e-bbd1-ab6e6f3c4d23", + "title": "tests for /v2.0/data/taxa", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-test.js", + "file": "/test/v2.0-data-taxa-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "cfd72eae-f085-4734-ac57-caab89ea9fe3", + "uuid": "c8a900c4-29a9-46ab-a6a6-452652b4aa6f", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-publications-test.js", - "file": "/test/v2.0-data-contacts-{contactid}-publications-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-test.js", + "file": "/test/v2.0-data-taxa-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"An array of publications associated with the contact.\"", - "fullTitle": "tests for /v2.0/data/contacts/{contactid}/publications tests for get should respond 200 for \"An array of publications associated with the contact.\"", + "title": "should respond 200 for \"A taxon or array of taxa.\"", + "fullTitle": "tests for /v2.0/data/taxa tests for get should respond 200 for \"A taxon or array of taxa.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 283, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/5925/publications', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "9bf8dd7b-9bc4-4139-8abc-a29e09713253", - "parentUUID": "cfd72eae-f085-4734-ac57-caab89ea9fe3", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa', { \n 'qs': {\"taxonname\":\"fugiat irure aute mollit consectetur\",\"taxagroup\":\"Ut in in\",\"ecolgroup\":\"ullamco\",\"status\":true,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "5b28924c-8699-41c6-933d-cfca7656e87b", + "parentUUID": "c8a900c4-29a9-46ab-a6a6-452652b4aa6f", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "9bf8dd7b-9bc4-4139-8abc-a29e09713253" + "passes": [ + "5b28924c-8699-41c6-933d-cfca7656e87b" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 283, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -6474,53 +6085,49 @@ "_timeout": 900000 }, { - "uuid": "2e85efe5-cf56-4b18-8d8b-fcf1f252cd7e", - "title": "tests for /v2.0/data/datasets/{datasetid}/publications", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-publications-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-publications-test.js", + "uuid": "48976f1d-d264-47dd-b717-38b5594b117e", + "title": "tests for /v2.0/data/taxa/{taxonid}/occurrences", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-{taxonid}-occurrences-test.js", + "file": "/test/v2.0-data-taxa-{taxonid}-occurrences-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "5e3ddd29-dba3-41fe-8ee9-ca74d2aa635b", + "uuid": "a1c9c1a9-df58-45c2-9761-9e1476a2cf08", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-publications-test.js", - "file": "/test/v2.0-data-datasets-{datasetid}-publications-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-{taxonid}-occurrences-test.js", + "file": "/test/v2.0-data-taxa-{taxonid}-occurrences-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"Publication\"", - "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/publications tests for get should respond 200 for \"Publication\"", + "title": "should respond 200 for \"occurrence\"", + "fullTitle": "tests for /v2.0/data/taxa/{taxonid}/occurrences tests for get should respond 200 for \"occurrence\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 109, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/500/publications', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "741416ff-dee2-47bc-ab18-897458355302", - "parentUUID": "5e3ddd29-dba3-41fe-8ee9-ca74d2aa635b", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa/500/occurrences', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "bc394940-c413-4cab-af53-b1394ed1995a", + "parentUUID": "a1c9c1a9-df58-45c2-9761-9e1476a2cf08", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "741416ff-dee2-47bc-ab18-897458355302" + "passes": [ + "bc394940-c413-4cab-af53-b1394ed1995a" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 109, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -6536,53 +6143,49 @@ "_timeout": 900000 }, { - "uuid": "9c07907e-042e-4fb7-8368-bc2fc8adedc2", - "title": "tests for /v2.0/apps/datasettypes", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-datasettypes-test.js", - "file": "/test/v2.0-apps-datasettypes-test.js", + "uuid": "7789a475-6ab4-4a53-96e9-21db3ae4b175", + "title": "tests for /v2.0/data/taxa/{taxonid}", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-{taxonid}-test.js", + "file": "/test/v2.0-data-taxa-{taxonid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [], "suites": [ { - "uuid": "527ee25c-1261-4f67-93ae-b435a144fae6", + "uuid": "9b608ba4-3448-4dc4-9c3e-d87b42d7962b", "title": "tests for get", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-datasettypes-test.js", - "file": "/test/v2.0-apps-datasettypes-test.js", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-{taxonid}-test.js", + "file": "/test/v2.0-data-taxa-{taxonid}-test.js", "beforeHooks": [], "afterHooks": [], "tests": [ { - "title": "should respond 200 for \"A table of Neotoma collection types.\"", - "fullTitle": "tests for /v2.0/apps/datasettypes tests for get should respond 200 for \"A table of Neotoma collection types.\"", + "title": "should respond 200 for \"A taxon or array of taxa.\"", + "fullTitle": "tests for /v2.0/data/taxa/{taxonid} tests for get should respond 200 for \"A taxon or array of taxa.\"", "timedOut": false, - "duration": 1, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "duration": 71, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/datasettypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": { - "message": "TypeError: Cannot read properties of undefined (reading 'statusCode')", - "estack": "TypeError: Cannot read properties of undefined (reading 'statusCode')\n at Assertion. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/lib/assertions/statuscode.js:15:45)\n at ctx. (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai/lib/chai/utils/addMethod.js:41:25)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/chakram/node_modules/chai-as-promised/lib/chai-as-promised.js:308:26\n at _fulfilled (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:854:54)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:883:30\n at Promise.promise.promiseDispatch (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:816:13)\n at /Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:624:44\n at runSingle (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:137:13)\n at flush (/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/node_modules/q/q.js:125:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:85:11)", - "diff": null - }, - "uuid": "80357427-8ad4-4c8c-9815-33433feb03b6", - "parentUUID": "527ee25c-1261-4f67-93ae-b435a144fae6", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "78202602-a837-45ec-97a8-2c47a4c8c46c", + "parentUUID": "9b608ba4-3448-4dc4-9c3e-d87b42d7962b", "isHook": false, "skipped": false } ], "suites": [], - "passes": [], - "failures": [ - "80357427-8ad4-4c8c-9815-33433feb03b6" + "passes": [ + "78202602-a837-45ec-97a8-2c47a4c8c46c" ], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 diff --git a/runmochabatch.sh b/runmochabatch.sh index 72b79775..8e8f1147 100644 --- a/runmochabatch.sh +++ b/runmochabatch.sh @@ -10,6 +10,7 @@ This bash script uses Mocha (and associated packages) to run tests against the A Options: [none] run Mocha tests locally and build the reporter in ./public/tests.html -h display this help and exit + -l run the tests against the LOCAL DEV server at localhost:3005 (NODE_ENV=development) -d run the tests against the remove development server at api-dev.neotomadb.org -p run the tests against the remove production server at api.neotomadb.org @@ -17,7 +18,9 @@ HELP } run_mocha() { - # Only run v2.0 tests locally 'v2.0-*.js' — v1.5 endpoints are slow and trip chakram's default timeout + # Runs every suite under ./test — both the oatts-generated 'v*-test.js' files and the + # hand-written v1.5/v2.0 suites. Shuffled so ordering bugs surface. The v1.5 endpoints + # are slow, hence the long timeout in test/.mocharc.yml. find ./test -name '*.js' | shuf | xargs mocha --config=test/.mocharc.yml --reporter-options reportDir=public,reportFilename=tests } @@ -31,12 +34,15 @@ test=0 # Must be set BEFORE getopts because getopts skips its loop when no flags are passed. export APIPATH='http://localhost:3001/' - while getopts "hdpa" opt; do + while getopts "hdlpa" opt; do case $opt in h) show_help exit 0 ;; + l) + export APIPATH='http://localhost:3005/' + ;; d) export APIPATH='https://api-dev.neotomadb.org/' ;; diff --git a/v2.0/handlers/data_handlers.js b/v2.0/handlers/data_handlers.js index 8e2c6714..ecf3ca09 100755 --- a/v2.0/handlers/data_handlers.js +++ b/v2.0/handlers/data_handlers.js @@ -240,4 +240,14 @@ module.exports = { const aedna = require('../helpers/aedna/aedna.js'); aedna.sequencesbytaxonid(req, res, next); }, + // PROJECTS + projectsbydsid: function(req, res, next) { + const projects = require('../helpers/projects/projects.js'); + projects.projectsbydsid(req, res, next); + }, + // ASSAYS + assaysbydsid: function(req, res, next) { + const assays = require('../helpers/assays/assays.js'); + assays.assaysbydsid(req, res, next); + }, }; diff --git a/v2.0/helpers/aedna/sequences.sql b/v2.0/helpers/aedna/sequences.sql index eae75538..f18fea33 100644 --- a/v2.0/helpers/aedna/sequences.sql +++ b/v2.0/helpers/aedna/sequences.sql @@ -35,6 +35,7 @@ sequence_details AS ( SELECT sq.sequenceid, sq.sequence, + sq.asv, sq.primername, am.taxonid, am.model, @@ -65,6 +66,7 @@ FROM ( json_build_object( 'sequenceid', sd.sequenceid, 'sequence', sd.sequence, + 'asv', sd.asv, 'model', sd.model, 'primername', sd.primername, 'publicationdoi', sd.publicationdoi diff --git a/v2.0/helpers/aedna/sequencesbytaxon.sql b/v2.0/helpers/aedna/sequencesbytaxon.sql index 455be7f8..3d576a56 100644 --- a/v2.0/helpers/aedna/sequencesbytaxon.sql +++ b/v2.0/helpers/aedna/sequencesbytaxon.sql @@ -1,6 +1,7 @@ SELECT sq.sequenceid, sq.sequence, + sq.asv, am.model, sq.primername, pb.doi AS publicationdoi diff --git a/v2.0/helpers/assays/assays.js b/v2.0/helpers/assays/assays.js new file mode 100644 index 00000000..d2b95129 --- /dev/null +++ b/v2.0/helpers/assays/assays.js @@ -0,0 +1,53 @@ +'use strict'; + +const {sql} = require('../../../src/neotomaapi.js'); + +const assaysQuery = sql('../v2.0/helpers/assays/assaysbydataset.sql'); + +/** + * Return the aeDNA assays (and their libraries) linked to a dataset. + * @param {object} req An Express request object. + * @param {object} res An Express response object. + * @param {object} next An Express next object. + */ +function assaysbydsid(req, res, next) { + const db = req.app.locals.db; + const dsid = parseInt(req.params.datasetid); + + if (!dsid || isNaN(dsid)) { + return res.status(400).json({ + status: 'failure', + data: null, + message: 'A valid integer dataset ID is required.', + }); + } + + db.oneOrNone(assaysQuery, {datasetid: dsid}) + .then(function(data) { + res.status(200).json({ + status: 'success', + data: data ? data.result : {datasetid: dsid, assays: []}, + message: 'Retrieved aeDNA assays for dataset.', + }); + }) + .catch(function(err) { + // 42P01 is Postgres "undefined_table". The aeDNA tables are deployed ahead of + // this route on some hosts, so report "no assays" rather than a server error. + if (err.code === '42P01') { + console.warn('aeDNA assay tables are not deployed on this host; ' + + 'returning an empty assay set.'); + return res.status(200).json({ + status: 'success', + data: {datasetid: dsid, assays: []}, + message: 'aeDNA assay tables are not available on this host.', + }); + } + return res.status(500).json({ + status: 'failure', + message: err.message, + query: dsid, + }); + }); +} + +module.exports.assaysbydsid = assaysbydsid; diff --git a/v2.0/helpers/assays/assaysbydataset.sql b/v2.0/helpers/assays/assaysbydataset.sql new file mode 100644 index 00000000..fc0fe315 --- /dev/null +++ b/v2.0/helpers/assays/assaysbydataset.sql @@ -0,0 +1,44 @@ +SELECT json_build_object( + 'datasetid', ${datasetid}, + 'assays', COALESCE(json_agg(g.obj), '[]'::json) +) AS result +FROM ( + SELECT json_build_object( + 'assayid', a.assayid, + 'assayname', a.assayname, + 'assaytype', at.assaytype, + 'targettaxonomicassay', a.targettaxonomicassay, + 'targetgene', a.targetgene, + 'subfragment', a.subfragment, + 'ampliconsize', a.ampliconsize, + 'pcrprimerforward', a.pcrprimerforward, + 'pcrprimerreverse', a.pcrprimerreverse, + 'pcrprimernameforward', a.pcrprimernameforward, + 'pcrprimernamereverse', a.pcrprimernamereverse, + 'pcrprimerreferenceforward', a.pcrprimerreferenceforward, + 'pcrprimerreferencereverse', a.pcrprimerreferencereverse, + 'probeseq', a.probeseq, + 'proberef', a.proberef, + 'probereporter', a.probereporter, + 'probequencher', a.probequencher, + 'probeconc', a.probeconc, + 'libraries', COALESCE(( + SELECT json_agg(json_build_object( + 'libraryid', l.libraryid, + 'libid', l.libid, + 'seqrunid', l.seqrunid, + 'pcrplateid', l.pcrplateid, + 'barcodingpcrappr', l.barcodingpcrappr, + 'platform', l.platform, + 'instrument', l.instrument, + 'seqkit', l.seqkit, + 'libscreen', l.libscreen + )) + FROM ndb.aednalibraries l + WHERE l.assayid = a.assayid + ), '[]'::json) + ) AS obj + FROM ndb.aednaassays a + LEFT JOIN ndb.assaytypes at ON at.assaytypeid = a.assaytypeid + WHERE a.datasetid = ${datasetid} +) AS g; diff --git a/v2.0/helpers/projects/projects.js b/v2.0/helpers/projects/projects.js new file mode 100644 index 00000000..f56239b7 --- /dev/null +++ b/v2.0/helpers/projects/projects.js @@ -0,0 +1,42 @@ +'use strict'; + +const {sql} = require('../../../src/neotomaapi.js'); + +const projectsQuery = sql('../v2.0/helpers/projects/projectsbydataset.sql'); + +/** + * Return the projects (and their participants) linked to a dataset. + * @param {object} req An Express request object. + * @param {object} res An Express response object. + * @param {object} next An Express next object. + */ +function projectsbydsid(req, res, next) { + const db = req.app.locals.db; + const dsid = parseInt(req.params.datasetid); + + if (!dsid || isNaN(dsid)) { + return res.status(400).json({ + status: 'failure', + data: null, + message: 'A valid integer dataset ID is required.', + }); + } + + db.oneOrNone(projectsQuery, {datasetid: dsid}) + .then(function(data) { + res.status(200).json({ + status: 'success', + data: data ? data.result : {datasetid: dsid, projects: []}, + message: 'Retrieved projects for dataset.', + }); + }) + .catch(function(err) { + return res.status(500).json({ + status: 'failure', + message: err.message, + query: dsid, + }); + }); +} + +module.exports.projectsbydsid = projectsbydsid; diff --git a/v2.0/helpers/projects/projectsbydataset.sql b/v2.0/helpers/projects/projectsbydataset.sql new file mode 100644 index 00000000..f5e105a8 --- /dev/null +++ b/v2.0/helpers/projects/projectsbydataset.sql @@ -0,0 +1,30 @@ +SELECT json_build_object( + 'datasetid', ${datasetid}, + 'projects', COALESCE(json_agg( + json_build_object( + 'projectid', g.projectid, + 'projectname', g.projectname, + 'projectdescription', g.projectdescription, + 'participants', g.participants + ) + ), '[]'::json) +) AS result +FROM ( + SELECT + p.projectid, + p.projectname, + p.projectdescription, + COALESCE(json_agg( + json_build_object( + 'contactid', c.contactid, + 'contactname', c.contactname, + 'email', c.email + ) + ) FILTER (WHERE c.contactid IS NOT NULL), '[]'::json) AS participants + FROM ndb.projectdatasets pd + INNER JOIN ndb.projects p ON p.projectid = pd.projectid + LEFT JOIN ndb.projectparticipants pp ON pp.projectid = p.projectid + LEFT JOIN ndb.contacts c ON c.contactid = pp.contactid + WHERE pd.datasetid = ${datasetid} + GROUP BY p.projectid, p.projectname, p.projectdescription +) AS g; diff --git a/v2.0/helpers/sites/sitebyctid.sql b/v2.0/helpers/sites/sitebyctid.sql index ba9535ae..a4186e4f 100755 --- a/v2.0/helpers/sites/sitebyctid.sql +++ b/v2.0/helpers/sites/sitebyctid.sql @@ -4,7 +4,8 @@ SELECT ct.contactid, 'sitename', sts.sitename, 'sitedescription', sts.sitedescription, 'geography', ST_AsGeoJSON(sts.geog,5,2), - 'altitude', sts.altitude, + 'altitude', sts.altitude, + 'recdatecreated', sts.recdatecreated, 'collectionunits', bigq.collectionunit) AS sites FROM ap.querytable AS bigq INNER JOIN ndb.sites AS sts ON sts.siteid = bigq.siteid diff --git a/v2.0/helpers/sites/sitebydsid.sql b/v2.0/helpers/sites/sitebydsid.sql index 64d92732..eccb58c4 100755 --- a/v2.0/helpers/sites/sitebydsid.sql +++ b/v2.0/helpers/sites/sitebydsid.sql @@ -2,7 +2,8 @@ SELECT sts.siteid AS siteid, sts.sitename as sitename, sts.sitedescription AS sitedescription, ST_AsGeoJSON(sts.geog,5,2) as geography, - sts.altitude AS altitude, + sts.altitude AS altitude, + sts.recdatecreated AS recdatecreated, clu.collectionunitid as collectionunitid, clu.collunitname AS collectionunit, clu.handle AS handle, diff --git a/v2.0/helpers/sites/sitebygpid.sql b/v2.0/helpers/sites/sitebygpid.sql index 7fae84c4..4d43e6d5 100755 --- a/v2.0/helpers/sites/sitebygpid.sql +++ b/v2.0/helpers/sites/sitebygpid.sql @@ -41,6 +41,7 @@ SELECT 'siteid', sts.siteid AS siteid, 'sitedescription', sts.sitedescription, 'geography', ST_AsGeoJSON(sts.geog,5,2), 'altitude', sts.altitude, + 'recdatecreated', sts.recdatecreated, 'collectionunits', json_agg(cus.collectionunit)) AS sites FROM allgpu LEFT JOIN diff --git a/v2.0/helpers/sites/sitebyid.sql b/v2.0/helpers/sites/sitebyid.sql index 2260cb73..f636160d 100755 --- a/v2.0/helpers/sites/sitebyid.sql +++ b/v2.0/helpers/sites/sitebyid.sql @@ -20,6 +20,7 @@ SELECT sts.siteid, sts.altitude, ST_AsGeoJSON(sts.geog,5,2) AS geography, sts.sitedescription, + sts.recdatecreated, json_agg(collu.collectionunit) AS collectionunits FROM ndb.sites AS sts diff --git a/v2.0/helpers/sites/sitequeryfaster.sql b/v2.0/helpers/sites/sitequeryfaster.sql index 5868777b..ba900ea9 100644 --- a/v2.0/helpers/sites/sitequeryfaster.sql +++ b/v2.0/helpers/sites/sitequeryfaster.sql @@ -33,6 +33,7 @@ SELECT sts.siteid, sts.sitedescription AS sitedescription, ST_AsGeoJSON(sts.geog,5,2) as geography, sts.altitude AS altitude, + sts.recdatecreated AS recdatecreated, json_agg(DISTINCT cus.collectionunit) AS collectionunits FROM (SELECT * FROM collunit) AS cus diff --git a/v2.0/helpers/validation/newlogin.sql b/v2.0/helpers/validation/newlogin.sql index a0b89fb2..dab33cfd 100644 --- a/v2.0/helpers/validation/newlogin.sql +++ b/v2.0/helpers/validation/newlogin.sql @@ -1,3 +1,3 @@ INSERT INTO ap.orcidlogins (orcidid, userip, sessionuuid, expiresat, orcidname) -VALUES (${orcidid}, ${ipaddr}, gen_random_uuid(), now() + interval '5 days', ${orcidname}) -RETURNING sessionuuid; \ No newline at end of file +VALUES (${orcidid}, ${ipaddr}, gen_random_uuid(), now() + interval '7 days', ${orcidname}) +RETURNING sessionuuid, expiresat; \ No newline at end of file diff --git a/v2.0/helpers/validation/validateuser.js b/v2.0/helpers/validation/validateuser.js index 8516961e..d1fb1469 100644 --- a/v2.0/helpers/validation/validateuser.js +++ b/v2.0/helpers/validation/validateuser.js @@ -1,10 +1,13 @@ 'use strict'; -// This is the module to manage the cookie: -// The user will send a valid ORCID cookie -// We will validate the cookie -// We will send back a jwt token using our environment variable -// TOKEN_SECRET. -// The user token will expire in 1 week. +// This is the module that turns an ORCID token into a Neotoma session: +// The user sends the access token they received from the ORCID OAuth flow. +// We validate it by asking orcid.org/oauth/userinfo who it belongs to. +// If ORCID recognises it, we record a login in ap.orcidlogins, which mints an +// opaque session UUID (see newlogin.sql), and send that UUID back to the caller. +// The session UUID is the credential for every authenticated request afterwards, +// passed as `Authorization: Bearer ` and checked by sessionauth.js. +// Session lifetime is set in newlogin.sql — currently 1 week — and its expiry is +// returned alongside the UUID so clients don't have to guess. const {sql} = require('../../../src/neotomaapi.js'); diff --git a/v2.0/routes/data.js b/v2.0/routes/data.js index 820d3bae..50444008 100755 --- a/v2.0/routes/data.js +++ b/v2.0/routes/data.js @@ -34,6 +34,8 @@ router.get('/datasets/:datasetid/chronologies', handlers.chronologiesbydsid); router.get('/datasets/:datasetid/contacts', handlers.contactsbydataid); router.get('/datasets/:datasetid/doi', handlers.doibydsid); router.get('/datasets/:datasetid/lithology', handlers.lithologybydsid); +router.get('/datasets/:datasetid/assays', handlers.assaysbydsid); +router.get('/datasets/:datasetid/projects', handlers.projectsbydsid); router.get('/datasets/:datasetid/publications', handlers.publicationbydataset); router.get(['/dbtables/:table', '/dbtables'], handlers.dbtables);