From 9b37ea737212c3057b60aaa84ad1697bd8578f5b Mon Sep 17 00:00:00 2001 From: Socorro DominguezVidana Date: Wed, 13 May 2026 14:30:01 -0700 Subject: [PATCH 1/2] API-51 added allowed origin for apps --- public/tests.html | 2 +- public/tests.json | 5197 +++++++++-------- test/v1.5-data-contacts-{contactid}-test.js | 2 +- test/v1.5-data-geopoliticalunits-test.js | 2 +- ...v1.5-data-geopoliticalunits-{gpid}-test.js | 2 +- test/v2.0-apps-constdb-datasetages-test.js | 2 +- test/v2.0-apps-constdb-datasets-test.js | 2 +- test/v2.0-apps-constdb-datasetuploads-test.js | 2 +- test/v2.0-apps-depenvt-test.js | 2 +- test/v2.0-apps-taphonomysystems-test.js | 2 +- test/v2.0-data-chronologies-{chronid}-test.js | 2 +- test/v2.0-data-contacts-test.js | 2 +- ....0-data-contacts-{contactid}-sites-test.js | 2 +- test/v2.0-data-contacts-{contactid}-test.js | 2 +- test/v2.0-data-datasets-db-test.js | 2 +- test/v2.0-data-datasets-test.js | 2 +- test/v2.0-data-datasets_elc-test.js | 2 +- test/v2.0-data-dbtables-test.js | 2 +- test/v2.0-data-dbtables-{table}-test.js | 4 +- test/v2.0-data-geopoliticalunits-test.js | 2 +- ...-geopoliticalunits-{gpid}-datasets-test.js | 2 +- ...ata-geopoliticalunits-{gpid}-sites-test.js | 2 +- ...v2.0-data-geopoliticalunits-{gpid}-test.js | 2 +- test/v2.0-data-occurrences-test.js | 2 +- test/v2.0-data-pollen-test.js | 2 +- test/v2.0-data-pollen-{id}-test.js | 2 +- test/v2.0-data-publications-test.js | 2 +- ...-data-publications-{publicationid}-test.js | 2 +- test/v2.0-data-sites-test.js | 2 +- ...0-data-sites-{siteid}-chronologies-test.js | 2 +- .../v2.0-data-sites-{siteid}-datasets-test.js | 2 +- ...0-data-sites-{siteid}-datasets_elc-test.js | 2 +- test/v2.0-data-spatial-faunal-test.js | 2 +- test/v2.0-data-spatial-icesheet-test.js | 2 +- test/v2.0-data-spatial-lakes-test.js | 2 +- test/v2.0-data-taxa-test.js | 2 +- 36 files changed, 2637 insertions(+), 2632 deletions(-) diff --git a/public/tests.html b/public/tests.html index 73f3f4c..d26757d 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 2fc6f43..c42607e 100644 --- a/public/tests.json +++ b/public/tests.json @@ -2,14 +2,14 @@ "stats": { "suites": 157, "tests": 146, - "passes": 145, + "passes": 144, "pending": 1, - "failures": 0, - "start": "2026-05-11T22:30:29.477Z", - "end": "2026-05-11T22:32:40.178Z", - "duration": 130701, + "failures": 1, + "start": "2026-05-13T21:25:52.686Z", + "end": "2026-05-13T21:28:03.527Z", + "duration": 130841, "testsRegistered": 146, - "passPercent": 100, + "passPercent": 99.3103448275862, "pendingPercent": 0.684931506849315, "other": 0, "hasOther": false, @@ -18,7 +18,7 @@ }, "results": [ { - "uuid": "6c4e73f7-d18e-4aaa-9583-a20a61ae590d", + "uuid": "2f648b68-bef0-431a-8f77-02204d7206af", "title": "", "fullFile": "", "file": "", @@ -37,8 +37,8 @@ "context": null, "code": "checkForUnfulfilledExpectations.call(this);\nrecordedExpects = [];", "err": {}, - "uuid": "1da40e8c-be76-4bb9-8c85-6d85b5ca48e1", - "parentUUID": "6c4e73f7-d18e-4aaa-9583-a20a61ae590d", + "uuid": "37240f89-4506-4ac2-8987-7900e940e199", + "parentUUID": "2f648b68-bef0-431a-8f77-02204d7206af", "isHook": true, "skipped": false } @@ -46,49 +46,49 @@ "tests": [], "suites": [ { - "uuid": "d3eb79f4-4a72-4044-9f80-daec95a8438a", - "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": "5860a7a2-1454-434b-9b41-b05e55440e91", + "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": "88d2cddf-3aea-41fb-af41-7f0ce00b7f3f", + "uuid": "ba7b9b9a-487e-4d84-af2e-97d3ecab4788", "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-apps-collectiontypes-test.js", + "file": "/test/v2.0-apps-collectiontypes-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 \"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": 610, + "duration": 609, "state": "passed", "speed": "medium", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets_elc', { \n 'qs': {\"siteid\":2955,\"contactid\":12649,\"datasettype\":\"pollen surface sample\",\"altmin\":5054,\"altmax\":8850,\"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\":1475645,\"ageold\":6661213,\"ageof\":21496721},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "ca1fa063-c753-48ed-96c0-f4e9b413e928", - "parentUUID": "88d2cddf-3aea-41fb-af41-7f0ce00b7f3f", + "uuid": "e23f6616-a757-4ba1-abfd-b4734ef6c60c", + "parentUUID": "ba7b9b9a-487e-4d84-af2e-97d3ecab4788", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "ca1fa063-c753-48ed-96c0-f4e9b413e928" + "e23f6616-a757-4ba1-abfd-b4734ef6c60c" ], "failures": [], "pending": [], "skipped": [], - "duration": 610, + "duration": 609, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -104,49 +104,49 @@ "_timeout": 900000 }, { - "uuid": "e59eac14-7de4-4596-bfb3-16cda26a601a", - "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": "0ab4c031-2d00-4776-ad3b-2ea1d8d65480", + "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": "5976fea5-2918-423b-bd26-16dfd8430eb6", + "uuid": "ff3041e3-e47c-41ac-998e-d7df96c1db41", "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-contacts-{contactid}-test.js", + "file": "/test/v2.0-data-contacts-{contactid}-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 \"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": 71, + "duration": 78, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/89938284/publications', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/1563', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "a67d0e24-1a08-4738-a537-f4f50d01bb00", - "parentUUID": "5976fea5-2918-423b-bd26-16dfd8430eb6", + "uuid": "d45adf9d-bfe0-4b10-8bdb-5aab24f418c1", + "parentUUID": "ff3041e3-e47c-41ac-998e-d7df96c1db41", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "a67d0e24-1a08-4738-a537-f4f50d01bb00" + "d45adf9d-bfe0-4b10-8bdb-5aab24f418c1" ], "failures": [], "pending": [], "skipped": [], - "duration": 71, + "duration": 78, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -162,203 +162,49 @@ "_timeout": 900000 }, { - "uuid": "238f5601-ebbb-43e0-903d-5fbd50cf2b5e", - "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": "562a930f-c517-4934-9329-c952f531fc94", - "parentUUID": "238f5601-ebbb-43e0-903d-5fbd50cf2b5e", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "562a930f-c517-4934-9329-c952f531fc94" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 5000 - }, - { - "uuid": "c756763c-5d91-4fad-a585-679eb5759070", - "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": 87, - "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": "c60b26ba-b0cb-48e7-8af6-3100542284b7", - "parentUUID": "c756763c-5d91-4fad-a585-679eb5759070", - "isHook": false, - "skipped": false - }, - { - "title": "Get site by altitude:", - "fullTitle": "Get site data any number of ways: Get site by altitude:", - "timedOut": false, - "duration": 1284, - "state": "passed", - "speed": "slow", - "pass": true, - "fail": false, - "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": {}, - "uuid": "d813102e-95ff-40e0-828c-e0b9951a0ea7", - "parentUUID": "c756763c-5d91-4fad-a585-679eb5759070", - "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": "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": "10fd83d5-f2ca-4b6e-aeeb-eeb8443310ce", - "parentUUID": "c756763c-5d91-4fad-a585-679eb5759070", - "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": 71, - "state": "passed", - "speed": "fast", - "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": "69e69ff8-c72b-411b-ac5c-367476547241", - "parentUUID": "c756763c-5d91-4fad-a585-679eb5759070", - "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": 144, - "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": "dfe7d9b2-1490-4602-b3f5-cc8352970d6e", - "parentUUID": "c756763c-5d91-4fad-a585-679eb5759070", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "c60b26ba-b0cb-48e7-8af6-3100542284b7", - "d813102e-95ff-40e0-828c-e0b9951a0ea7", - "10fd83d5-f2ca-4b6e-aeeb-eeb8443310ce", - "69e69ff8-c72b-411b-ac5c-367476547241", - "dfe7d9b2-1490-4602-b3f5-cc8352970d6e" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 1588, - "root": false, - "rootEmpty": false, - "_timeout": 5000 - }, - { - "uuid": "ef8cf4e2-04ec-4a8e-8c26-37f1753a6e6f", - "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": "e2abae61-c7bb-49d4-8763-9edbdd826660", + "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": "f919e262-5233-4107-b500-77a28bc53728", + "uuid": "a2bb1336-047f-43fa-9815-c79cb4ff8f60", "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-spatial-lakes-test.js", + "file": "/test/v2.0-data-spatial-lakes-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 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": 81, + "duration": 100, "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\":2771,\"datasetid\":5243471,\"siteid\":33926,\"familyname\":\"PbkSzxq\",\"pubtype\":\"Legacy\",\"year\":1973,\"search\":\"dolor sed consequat proident nisi\",\"limit\":2826,\"offset\":52603467},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/lakes', { \n 'qs': {\"siteid\":43280,\"buffer\":1148,\"prec\": 1000,\"proj\": 4326},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "7aeb7eee-cd9a-439f-b334-3ccda13b1866", - "parentUUID": "f919e262-5233-4107-b500-77a28bc53728", + "uuid": "c4db80f3-f8d6-4de1-b361-7660d093859d", + "parentUUID": "a2bb1336-047f-43fa-9815-c79cb4ff8f60", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "7aeb7eee-cd9a-439f-b334-3ccda13b1866" + "c4db80f3-f8d6-4de1-b361-7660d093859d" ], "failures": [], "pending": [], "skipped": [], - "duration": 81, + "duration": 100, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -374,49 +220,49 @@ "_timeout": 900000 }, { - "uuid": "0544abb1-9d22-4e5a-a8d6-8686d66ac86b", - "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", + "uuid": "2d9685d5-0b5d-4729-a631-dea014925c23", + "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": "3c3551e0-e3f5-4416-9981-29c522289a0c", + "uuid": "2df0fc1f-5ddf-4ace-ba91-2a7c78686862", "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", + "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 download object.\"", - "fullTitle": "tests for /v2.0/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"", + "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": 86, + "duration": 117, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/downloads/65919985', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": {}, - "uuid": "9c95725f-44f0-4295-855b-8fddcac7672a", - "parentUUID": "3c3551e0-e3f5-4416-9981-29c522289a0c", + "uuid": "b11f62fa-32f2-4f75-ac31-2c88ae3697b3", + "parentUUID": "2df0fc1f-5ddf-4ace-ba91-2a7c78686862", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "9c95725f-44f0-4295-855b-8fddcac7672a" + "b11f62fa-32f2-4f75-ac31-2c88ae3697b3" ], "failures": [], "pending": [], "skipped": [], - "duration": 86, + "duration": 117, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -432,49 +278,49 @@ "_timeout": 900000 }, { - "uuid": "28df18e5-3322-4ab8-badf-413f3add30a9", - "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": "d11dcfa9-7f80-4a62-829e-9e83e3843ec3", + "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": "8adafcf2-7af0-4f78-857d-98ace1f00b37", + "uuid": "5148fa99-e776-42a6-89f0-2a94ff48d181", "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-publications-test.js", + "file": "/test/v2.0-data-publications-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 \"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, + "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/pollen', { \n 'qs': {\"taxonname\":\"sunt\",\"taxonid\":46220,\"siteid\":2781,\"sitename\":\"deserunt eiusmod quis pariatur veniam\",\"datasettype\":\"plant macrofossil\",\"altmin\": 10,\"altmax\":4344,\"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\":9134502,\"ageyoung\":22988199,\"ageold\":2080845,\"limit\":7032,\"offset\":68196321},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/publications', { \n 'qs': {\"publicationid\":11248,\"datasetid\":25838920,\"siteid\":43901,\"familyname\":\"YhlWFYaSz \",\"pubtype\":\"Journal Article\",\"year\":1866,\"search\":\"elit Duis sit aliqua in\",\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "cc7d130a-f699-4f24-aff3-a28555274e6a", - "parentUUID": "8adafcf2-7af0-4f78-857d-98ace1f00b37", + "uuid": "01512566-024e-42b5-842b-1567f781d988", + "parentUUID": "5148fa99-e776-42a6-89f0-2a94ff48d181", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "cc7d130a-f699-4f24-aff3-a28555274e6a" + "01512566-024e-42b5-842b-1567f781d988" ], "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 84, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -490,49 +336,49 @@ "_timeout": 900000 }, { - "uuid": "5d4e250e-f1d7-4474-af16-5cb542175815", - "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": "f499e430-7b64-456e-88b9-ea2696dfd159", + "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": "d6b2f8d4-083d-40a4-b8a9-8ead10c469a0", + "uuid": "d349ceca-878a-42a7-a058-79b45f50acec", "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}-sites-test.js", + "file": "/test/v2.0-data-geopoliticalunits-{gpid}-sites-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 sites.\"", + "fullTitle": "tests for /v2.0/data/geopoliticalunits/{gpid}/sites tests for get should respond 200 for \"An array of sites.\"", "timedOut": false, - "duration": 133, + "duration": 498, "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/1486/sites', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "8526eb23-1cae-4615-ac1b-b8f371cc23cc", - "parentUUID": "d6b2f8d4-083d-40a4-b8a9-8ead10c469a0", + "uuid": "e4344d67-0e88-4c0b-9089-98d7c5879eef", + "parentUUID": "d349ceca-878a-42a7-a058-79b45f50acec", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "8526eb23-1cae-4615-ac1b-b8f371cc23cc" + "e4344d67-0e88-4c0b-9089-98d7c5879eef" ], "failures": [], "pending": [], "skipped": [], - "duration": 133, + "duration": 498, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -548,49 +394,49 @@ "_timeout": 900000 }, { - "uuid": "d4c11508-7e58-4eb7-8aff-c7816cd2c920", - "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": "dda16a12-d9bf-4d79-b5a4-729bf314714f", + "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": "23b227a2-34d3-459e-a173-e2ba22e7b789", + "uuid": "8b1aae24-1fd5-452e-bd04-e86844c3a7b0", "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-datasets-test.js", + "file": "/test/v2.0-data-datasets-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 \"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": 1716, + "duration": 170, "state": "passed", - "speed": "slow", + "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets', { \n 'qs': {\"sitename\":\"aliqua qui esse consequat non\",\"database\":\"Neotoma Biomarker Database\",\"datasettype\":\"vertebrate fauna\",\"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\":43461,\"datasetid\":52178796,\"doi\":\"10|6878/77/.X\",\"gpid\":5392,\"keyword\":\"modern\",\"contactid\":5305,\"taxa\":\"id labore\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":22158311,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "a7aab7e7-698f-4db9-a292-84b2027fecd3", - "parentUUID": "23b227a2-34d3-459e-a173-e2ba22e7b789", + "uuid": "86b1f8e7-6ffb-4c3a-81f0-971cdb92b381", + "parentUUID": "8b1aae24-1fd5-452e-bd04-e86844c3a7b0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "a7aab7e7-698f-4db9-a292-84b2027fecd3" + "86b1f8e7-6ffb-4c3a-81f0-971cdb92b381" ], "failures": [], "pending": [], "skipped": [], - "duration": 1716, + "duration": 170, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -606,49 +452,49 @@ "_timeout": 900000 }, { - "uuid": "3617d592-9ad8-4240-9f85-db5c5ec26a49", - "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": "589ac670-e133-4d46-bf5e-f66774c67540", + "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": "da7af6d4-c602-42a8-9d81-91ebf3c7b552", + "uuid": "a35f76e1-606e-483d-b2b1-08e683bc16c3", "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/v2.0-data-summary-rawbymonth-test.js", + "file": "/test/v2.0-data-summary-rawbymonth-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 \"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": 68, + "duration": 13182, "state": "passed", - "speed": "fast", + "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/publications/11897', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "ca03ad21-2e48-42d0-b826-c3243ea14134", - "parentUUID": "da7af6d4-c602-42a8-9d81-91ebf3c7b552", + "uuid": "544a8ed6-61c9-4152-9d74-6a308ae83bcf", + "parentUUID": "a35f76e1-606e-483d-b2b1-08e683bc16c3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "ca03ad21-2e48-42d0-b826-c3243ea14134" + "544a8ed6-61c9-4152-9d74-6a308ae83bcf" ], "failures": [], "pending": [], "skipped": [], - "duration": 68, + "duration": 13182, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -664,49 +510,49 @@ "_timeout": 900000 }, { - "uuid": "71d0e4e8-1c18-49ae-bf27-9c3d68dbf41e", - "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": "99e3f8a7-acab-4aaf-8490-94d7e1efb853", + "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": [], "suites": [ { - "uuid": "ee7af3f4-a905-455e-b8a2-ff78b0479d3b", + "uuid": "796ac194-b130-4413-826c-25e631280a38", "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-publications-{publicationid}-test.js", + "file": "/test/v2.0-data-publications-{publicationid}-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 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": 69, + "duration": 79, "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();", + "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": {}, - "uuid": "456efcf9-fb91-41a5-964c-6149ad48a8d5", - "parentUUID": "ee7af3f4-a905-455e-b8a2-ff78b0479d3b", + "uuid": "3b40f976-b28a-44d8-a268-20bc3b3878a9", + "parentUUID": "796ac194-b130-4413-826c-25e631280a38", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "456efcf9-fb91-41a5-964c-6149ad48a8d5" + "3b40f976-b28a-44d8-a268-20bc3b3878a9" ], "failures": [], "pending": [], "skipped": [], - "duration": 69, + "duration": 79, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -722,280 +568,52 @@ "_timeout": 900000 }, { - "uuid": "9509b4d9-2b78-42dc-8274-6188af7e75d1", - "title": "Tests for Explorer App Services", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/explorerCalls.js", - "file": "/test/explorerCalls.js", + "uuid": "bc3f474f-3bf4-4e12-bd09-7baf06eb6a0f", + "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": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", + "uuid": "8c65182a-6011-4056-92ba-c31bbed06059", "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-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 TaxaGroupTypes", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaxaGroupTypes", - "timedOut": false, - "duration": 110, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "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": {}, - "uuid": "f4b7aa75-955e-4631-9419-84e08378e73e", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": 3, - "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": "83aa9228-bd1e-458e-bef5-7f998ddcb491", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": 73, - "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": "49681a8e-10c0-4466-b0c5-4af264a399c5", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": 74, - "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": "f4efcbd9-3187-4f13-866f-66be1463e1fe", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": 5028, - "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": "8fb651c7-8358-46b5-a0c2-a58caf69c8ff", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": "a4062708-acc7-4f02-ae83-8e2b9e6d5691", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": "1ea32a6b-a73b-438e-b3e0-5686b290d554", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": 572, - "state": "passed", - "speed": "medium", - "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": "424f8be0-c814-4127-a3b4-631211a1cb4f", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": "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": "52389675-2512-4832-920a-7e7e6253bb7e", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": 2, - "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": "a42e173e-8b7d-479a-85af-dbff5659473a", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": 151, - "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": "0334950d-8135-458d-bbf2-ffbc63eb869d", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "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": 136, - "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": "a68af96d-9980-4419-b1d3-eb1697bffe80", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", - "isHook": false, - "skipped": false - }, - { - "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 \"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": 1, + "duration": 84, "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/8091/datasets_elc', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "e5d14142-8b49-400e-ae1f-69f990a861ca", - "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284", + "uuid": "74f4c90c-250f-4512-8ce6-98e7d042a5eb", + "parentUUID": "8c65182a-6011-4056-92ba-c31bbed06059", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "f4b7aa75-955e-4631-9419-84e08378e73e", - "83aa9228-bd1e-458e-bef5-7f998ddcb491", - "49681a8e-10c0-4466-b0c5-4af264a399c5", - "f4efcbd9-3187-4f13-866f-66be1463e1fe", - "8fb651c7-8358-46b5-a0c2-a58caf69c8ff", - "a4062708-acc7-4f02-ae83-8e2b9e6d5691", - "1ea32a6b-a73b-438e-b3e0-5686b290d554", - "424f8be0-c814-4127-a3b4-631211a1cb4f", - "52389675-2512-4832-920a-7e7e6253bb7e", - "a42e173e-8b7d-479a-85af-dbff5659473a", - "0334950d-8135-458d-bbf2-ffbc63eb869d", - "a68af96d-9980-4419-b1d3-eb1697bffe80", - "e5d14142-8b49-400e-ae1f-69f990a861ca" + "74f4c90c-250f-4512-8ce6-98e7d042a5eb" ], "failures": [], "pending": [], "skipped": [], - "duration": 6288, + "duration": 84, "root": false, "rootEmpty": false, - "_timeout": 12000 + "_timeout": 900000 } ], "passes": [], @@ -1005,52 +623,52 @@ "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 12000 + "_timeout": 900000 }, { - "uuid": "4c8f5adf-c36e-41f7-b939-d89e74023d03", - "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": "03338ab2-3e13-4889-b684-a6c6405a53d7", + "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": "176fc265-27de-45f2-ae3a-dcee9cf409c4", + "uuid": "db2decc9-3060-45bf-a54a-2226ece1b4ff", "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-data-datasets_elc-test.js", + "file": "/test/v2.0-data-datasets_elc-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 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": 83, + "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/datasets/62131936/sites', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets_elc', { \n 'qs': {\"siteid\":34170,\"contactid\":948,\"datasettype\":\"microcharcoal\",\"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\":10605188},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "43193649-b594-486c-8668-0a8a75c6f647", - "parentUUID": "176fc265-27de-45f2-ae3a-dcee9cf409c4", + "uuid": "cf40750c-c3b6-4f56-b44e-a2a105d28bd7", + "parentUUID": "db2decc9-3060-45bf-a54a-2226ece1b4ff", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "43193649-b594-486c-8668-0a8a75c6f647" + "cf40750c-c3b6-4f56-b44e-a2a105d28bd7" ], "failures": [], "pending": [], "skipped": [], - "duration": 83, + "duration": 82, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1066,49 +684,49 @@ "_timeout": 900000 }, { - "uuid": "fbbd5c8b-91fe-46ef-a764-faf61bdb8f92", - "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": "fac71bbe-3ffa-4655-a84d-bc0d06118054", + "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": "1ff67ce4-e8d8-4f03-9c94-7041ce07cf2d", + "uuid": "13022a4f-5a6f-494c-89d6-cddd36dd8801", "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", + "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 datasets.\"", - "fullTitle": "tests for /v2.0/data/sites/{siteid}/datasets_elc tests for get should respond 200 for \"An array of datasets.\"", + "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": 3116, + "duration": 76, "state": "passed", - "speed": "slow", + "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/30330/datasets_elc', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/depenvt', { \n 'qs': {\"siteid\":13692,\"datasetid\":30254140,\"collectionunitid\":61409},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "f6df063b-cc04-418d-bb0f-60e40752b476", - "parentUUID": "1ff67ce4-e8d8-4f03-9c94-7041ce07cf2d", + "uuid": "dc7d964e-d47b-4334-8adf-a868257f9e16", + "parentUUID": "13022a4f-5a6f-494c-89d6-cddd36dd8801", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "f6df063b-cc04-418d-bb0f-60e40752b476" + "dc7d964e-d47b-4334-8adf-a868257f9e16" ], "failures": [], "pending": [], "skipped": [], - "duration": 3116, + "duration": 76, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1124,49 +742,49 @@ "_timeout": 900000 }, { - "uuid": "166c7bf7-4e85-406c-8768-4d80aa4ecf47", - "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": "b3bbf824-4603-45ca-9ea4-af6c3820e1bb", + "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": "814ff459-eede-4f1d-b8f4-76d0d9966e72", + "uuid": "0e4d91a3-9362-4671-94ce-a865a94a5a55", "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/v1.5-data-contacts-{contactid}-test.js", + "file": "/test/v1.5-data-contacts-{contactid}-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 \"Contact\"", + "fullTitle": "tests for /v1.5/data/contacts/{contactid} tests for get should respond 200 for \"Contact\"", "timedOut": false, - "duration": 99, + "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/taxa/38219/occurrences', { \n 'qs': {\"limit\":1224,\"offset\":49084421},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "0dd4d02d-10d6-4597-92a9-7df2cf0a7dd4", - "parentUUID": "814ff459-eede-4f1d-b8f4-76d0d9966e72", + "uuid": "5357fe6b-1c25-45c2-b2c0-b006a8620b19", + "parentUUID": "0e4d91a3-9362-4671-94ce-a865a94a5a55", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "0dd4d02d-10d6-4597-92a9-7df2cf0a7dd4" + "5357fe6b-1c25-45c2-b2c0-b006a8620b19" ], "failures": [], "pending": [], "skipped": [], - "duration": 99, + "duration": 74, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1182,107 +800,145 @@ "_timeout": 900000 }, { - "uuid": "b3454f95-ff90-4ee8-a2a1-5d60dd4f5aec", - "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": "70db9fd7-9980-44d5-ba18-a52f68a4b507", + "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": "527195a6-1df3-44dc-9cc5-95f7b7a439cf", - "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", - "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.\"", - "timedOut": false, - "duration": 169, - "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\":\"velit cillum dolore\",\"database\":\"Neotoma Testate Amoebae Database\",\"datasettype\":\"Metabarcoding aeDNA\",\"altmin\":-11,\"altmax\":4430,\"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\":25263,\"datasetid\":89369678,\"doi\":\"10&07743/TRAA1JL\",\"gpid\":5392,\"keyword\":null,\"contactid\":20739,\"taxa\":\"aliqua\",\"ageyoung\":9053694,\"ageold\":12079913,\"ageof\":17409358,\"limit\":6602,\"offset\":99417193},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": {}, - "uuid": "0023a129-5b56-4bfd-bb18-f778e6d34e36", - "parentUUID": "527195a6-1df3-44dc-9cc5-95f7b7a439cf", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "0023a129-5b56-4bfd-bb18-f778e6d34e36" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 169, - "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": 96, + "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": "53d661f2-c094-47f8-9565-2fe6f4aedc66", + "parentUUID": "70db9fd7-9980-44d5-ba18-a52f68a4b507", + "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": 78, + "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": "8280b7ca-caad-4932-9a95-995301fae42b", + "parentUUID": "70db9fd7-9980-44d5-ba18-a52f68a4b507", + "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": 74, + "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": "0782f05f-9805-46a7-99a7-561e8dbd0458", + "parentUUID": "70db9fd7-9980-44d5-ba18-a52f68a4b507", + "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": 71, + "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": "0cbf612c-e6ca-4ad9-b9eb-cb3a42275f2b", + "parentUUID": "70db9fd7-9980-44d5-ba18-a52f68a4b507", + "isHook": false, + "skipped": false } ], - "passes": [], + "suites": [], + "passes": [ + "53d661f2-c094-47f8-9565-2fe6f4aedc66", + "8280b7ca-caad-4932-9a95-995301fae42b", + "0782f05f-9805-46a7-99a7-561e8dbd0458", + "0cbf612c-e6ca-4ad9-b9eb-cb3a42275f2b" + ], "failures": [], "pending": [], "skipped": [], - "duration": 0, + "duration": 319, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 5000 }, { - "uuid": "33cc85f3-70b9-49b7-8929-3dfd97687bf9", - "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": "420fa922-c092-4d97-8192-ca902d48caf8", + "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": "f7326cff-bf34-4674-9cdd-e126eafe43f6", + "uuid": "a43809cd-9ae1-4fff-b6ff-29cc4c04e158", "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-aggregatedatasets-{aggdatasetid}-test.js", + "file": "/test/v2.0-data-aggregatedatasets-{aggdatasetid}-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 \"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": 70, + "duration": 81, "state": "passed", "speed": "fast", "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();", + "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": "8e66dca7-d4a4-4370-94a3-a72da2d7d2db", - "parentUUID": "f7326cff-bf34-4674-9cdd-e126eafe43f6", + "uuid": "809fd4f6-e83c-488d-adb1-623cbfd25331", + "parentUUID": "a43809cd-9ae1-4fff-b6ff-29cc4c04e158", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "8e66dca7-d4a4-4370-94a3-a72da2d7d2db" + "809fd4f6-e83c-488d-adb1-623cbfd25331" ], "failures": [], "pending": [], "skipped": [], - "duration": 70, + "duration": 81, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1298,49 +954,49 @@ "_timeout": 900000 }, { - "uuid": "547ee510-256f-4907-b1ba-4cb929ee9ece", - "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": "164fd695-b76b-46f7-ac83-e5965401e1c9", + "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": "aeeedb15-59b0-4fa2-953b-67feab1a8a62", + "uuid": "79dec423-3550-4461-aacb-1f566a8a84d4", "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-apps-taphonomysystems-test.js", + "file": "/test/v2.0-apps-taphonomysystems-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 \"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": 97, + "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/occurrences', { \n 'qs': {\"taxonname\":\"nulla aliqua qui incididunt ut\",\"taxonid\":14497,\"siteid\":23218,\"sitename\":\"proident incididunt\",\"datasettype\":\"biomarker\",\"altmin\": 10,\"altmax\":6217,\"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\":15746562,\"ageyoung\":141780,\"ageold\":763042,\"limit\":5063,\"offset\":38456224},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/taphonomysystems', { \n 'qs': {\"datasettypeid\":1},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "039c7aec-0c70-47f7-9550-a22f0180a13a", - "parentUUID": "aeeedb15-59b0-4fa2-953b-67feab1a8a62", + "uuid": "5a98974a-306a-426f-8fe9-9bdc6dc560f1", + "parentUUID": "79dec423-3550-4461-aacb-1f566a8a84d4", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "039c7aec-0c70-47f7-9550-a22f0180a13a" + "5a98974a-306a-426f-8fe9-9bdc6dc560f1" ], "failures": [], "pending": [], "skipped": [], - "duration": 97, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1356,107 +1012,222 @@ "_timeout": 900000 }, { - "uuid": "b27089fe-bb16-44d9-b04c-03c06c9ec7bf", - "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": "b95fdaad-4185-40d3-bce7-dcff52205fcb", + "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": [], - "suites": [ + "tests": [ { - "uuid": "bfe7f86f-0a80-43e9-af23-10ab8b501523", - "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", - "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.\"", - "timedOut": false, - "duration": 3075, - "state": "passed", - "speed": "slow", - "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": {}, - "uuid": "9f288836-326a-479d-be75-ce2c0049950f", - "parentUUID": "bfe7f86f-0a80-43e9-af23-10ab8b501523", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "9f288836-326a-479d-be75-ce2c0049950f" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 3075, - "root": false, - "rootEmpty": false, - "_timeout": 900000 + "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": 260, + "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": "ba59f1ef-b697-4977-b37d-72dbb4fb0654", + "parentUUID": "b95fdaad-4185-40d3-bce7-dcff52205fcb", + "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": 4170, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "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": {}, + "uuid": "f06a59b0-de39-48e1-9334-065c7d172208", + "parentUUID": "b95fdaad-4185-40d3-bce7-dcff52205fcb", + "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": 14042, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "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": {}, + "uuid": "621ff397-8cfb-4c18-ba2e-91d38428e6ee", + "parentUUID": "b95fdaad-4185-40d3-bce7-dcff52205fcb", + "isHook": false, + "skipped": false } ], - "passes": [], + "suites": [], + "passes": [ + "ba59f1ef-b697-4977-b37d-72dbb4fb0654", + "f06a59b0-de39-48e1-9334-065c7d172208", + "621ff397-8cfb-4c18-ba2e-91d38428e6ee" + ], "failures": [], "pending": [], "skipped": [], - "duration": 0, + "duration": 18472, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 15000 }, { - "uuid": "f9db5cdd-751d-486d-bcc2-fcc73183c17b", - "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": "1bf7cc03-f24f-47aa-a351-a12cde99172d", + "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": 263, + "state": "passed", + "speed": "fast", + "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": "86f4038c-ecb3-49af-8796-ecf35af78287", + "parentUUID": "1bf7cc03-f24f-47aa-a351-a12cde99172d", + "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": 262, + "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": "2fcc59a7-403f-44b4-a555-6ce12ded2234", + "parentUUID": "1bf7cc03-f24f-47aa-a351-a12cde99172d", + "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": 191, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "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": {}, + "uuid": "a76be318-314c-4ce1-a39a-003a4a311dd4", + "parentUUID": "1bf7cc03-f24f-47aa-a351-a12cde99172d", + "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": 170, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "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": {}, + "uuid": "b199d85d-b0e7-4f3d-b1aa-e5b27dec1959", + "parentUUID": "1bf7cc03-f24f-47aa-a351-a12cde99172d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "86f4038c-ecb3-49af-8796-ecf35af78287", + "2fcc59a7-403f-44b4-a555-6ce12ded2234", + "a76be318-314c-4ce1-a39a-003a4a311dd4", + "b199d85d-b0e7-4f3d-b1aa-e5b27dec1959" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 886, + "root": false, + "rootEmpty": false, + "_timeout": 15000 + }, + { + "uuid": "6ccfcbee-2a3f-4930-809f-50eaef378d50", + "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": "5f2f6cce-5a4e-4027-b644-c5063cb64c77", + "uuid": "b596ede7-07ff-471b-bc86-fdf5c0ba6d07", "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-apps-datasettypes-test.js", + "file": "/test/v2.0-apps-datasettypes-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 \"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": 2255, + "duration": 123, "state": "passed", - "speed": "slow", + "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();", + "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": "547a2a26-a17f-47be-809d-d8ed3b7bee9f", - "parentUUID": "5f2f6cce-5a4e-4027-b644-c5063cb64c77", + "uuid": "16bd56fd-f476-4bd7-ad48-0af2a7722944", + "parentUUID": "b596ede7-07ff-471b-bc86-fdf5c0ba6d07", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "547a2a26-a17f-47be-809d-d8ed3b7bee9f" + "16bd56fd-f476-4bd7-ad48-0af2a7722944" ], "failures": [], "pending": [], "skipped": [], - "duration": 2255, + "duration": 123, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1472,49 +1243,49 @@ "_timeout": 900000 }, { - "uuid": "64d662d6-6ea6-4e89-8e55-3f9fba35c8d1", - "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": "e2881ffe-dc33-4578-9c86-dbbe86ff9557", + "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": "3e744724-7d10-49b7-8206-4ee5d3eb0a85", + "uuid": "b6a525ad-8001-403f-aca2-c1fa5cdcbaa5", "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/v1.5-data-downloads-{datasetid}-test.js", + "file": "/test/v1.5-data-downloads-{datasetid}-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 \"Returned download object.\"", + "fullTitle": "tests for /v1.5/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"", "timedOut": false, - "duration": 69, + "duration": 641, "state": "passed", - "speed": "fast", + "speed": "medium", "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();", + "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": "c62bc7f8-f7d5-4462-98ce-dcaa3bd14a3e", - "parentUUID": "3e744724-7d10-49b7-8206-4ee5d3eb0a85", + "uuid": "73ba9c2c-6e00-428f-9168-f9d5bb585140", + "parentUUID": "b6a525ad-8001-403f-aca2-c1fa5cdcbaa5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "c62bc7f8-f7d5-4462-98ce-dcaa3bd14a3e" + "73ba9c2c-6e00-428f-9168-f9d5bb585140" ], "failures": [], "pending": [], "skipped": [], - "duration": 69, + "duration": 641, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1530,49 +1301,49 @@ "_timeout": 900000 }, { - "uuid": "ea859d74-b054-4b9e-b123-b59595e0fa50", - "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": "48464691-7d8f-426e-b140-bbb6e0190f6f", + "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": "4c1018ec-c536-4d1c-87f9-766b644d17c1", + "uuid": "6fbabe25-9bc7-47ba-a7d8-af6be3bc2de8", "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", + "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 \"DOI\"", - "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/doi tests for get should respond 200 for \"DOI\"", + "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": 69, + "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/datasets/6541274/doi', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/dbtables/incididuntDuissitullamcoofficia', { \n 'qs': {\"count\":true,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "f0981086-40b6-407b-996c-d9904acc79c1", - "parentUUID": "4c1018ec-c536-4d1c-87f9-766b644d17c1", + "uuid": "9e8de351-c6ba-4f8b-9825-7cb7546c4e61", + "parentUUID": "6fbabe25-9bc7-47ba-a7d8-af6be3bc2de8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "f0981086-40b6-407b-996c-d9904acc79c1" + "9e8de351-c6ba-4f8b-9825-7cb7546c4e61" ], "failures": [], "pending": [], "skipped": [], - "duration": 69, + "duration": 79, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1588,49 +1359,169 @@ "_timeout": 900000 }, { - "uuid": "bc3a43fd-374b-4339-a1bf-0ed69b05943c", - "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": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "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": 88, + "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": "c3b39275-c918-42d5-8b8e-d759f26e45eb", + "parentUUID": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "isHook": false, + "skipped": false + }, + { + "title": "Get site by altitude:", + "fullTitle": "Get site data any number of ways: Get site by altitude:", + "timedOut": true, + "duration": 5002, + "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": "653daed1-a963-4fda-94f5-64eca3ffcb8b", + "parentUUID": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "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": 7, + "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": "8dae60d7-79a6-45b1-8c6e-4d4a832996a8", + "parentUUID": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "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": 552, + "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": "6798216a-1665-495a-8785-7affed0fbf86", + "parentUUID": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "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": 213, + "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": "481f33f3-c4dd-40b6-b5e0-3beb40515729", + "parentUUID": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c3b39275-c918-42d5-8b8e-d759f26e45eb", + "8dae60d7-79a6-45b1-8c6e-4d4a832996a8", + "6798216a-1665-495a-8785-7affed0fbf86", + "481f33f3-c4dd-40b6-b5e0-3beb40515729" + ], + "failures": [ + "653daed1-a963-4fda-94f5-64eca3ffcb8b" + ], + "pending": [], + "skipped": [], + "duration": 5862, + "root": false, + "rootEmpty": false, + "_timeout": 5000 + }, + { + "uuid": "4f5c1d43-3802-4c67-a266-0eaeb223635f", + "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": "244a06ad-85cd-4012-a66c-837834eddf42", + "uuid": "79ed948a-4bd3-40dd-9f80-802cd600694d", "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", + "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 \"An array of sites.\"", - "fullTitle": "tests for /v2.0/data/sites/{siteid} tests for get should respond 200 for \"An array of sites.\"", + "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": 85, + "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/sites/30362', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "e52c3477-8cf8-460b-a37e-2e5509cfa606", - "parentUUID": "244a06ad-85cd-4012-a66c-837834eddf42", + "uuid": "af7d5a81-5f01-4c24-add0-f36a4ada3bba", + "parentUUID": "79ed948a-4bd3-40dd-9f80-802cd600694d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "e52c3477-8cf8-460b-a37e-2e5509cfa606" + "af7d5a81-5f01-4c24-add0-f36a4ada3bba" ], "failures": [], "pending": [], "skipped": [], - "duration": 85, + "duration": 127, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1646,49 +1537,49 @@ "_timeout": 900000 }, { - "uuid": "57bf6375-364d-464a-9bd8-ad5f34cfcaa4", - "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": "4ac4336b-68e3-4b71-a985-0ea42e51be2a", + "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": [ { - "uuid": "9f00c9b9-156e-4bcb-94f0-33eef76722c7", + "uuid": "bc9e4fc2-c618-4f09-bb32-1d90003997e0", "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-sites-test.js", + "file": "/test/v2.0-data-sites-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 \"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": 2, + "duration": 753, "state": "passed", - "speed": "fast", + "speed": "medium", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/pollen/1580', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites', { \n 'qs': {\"sitename\":\"adipisicing non\",\"database\":\"Neotoma Midden Database\",\"datasettype\":\"diatom\",\"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\":47233,\"datasetid\":43001185,\"doi\":\"10W6058/Y.UJO2\",\"gpid\":5392,\"keyword\":\"modern\",\"contactid\":18443,\"taxa\":\"sed ullamco culpa laborum\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":12270010,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "6096ec71-545f-4174-920e-dce149a8de0a", - "parentUUID": "9f00c9b9-156e-4bcb-94f0-33eef76722c7", + "uuid": "a4fc7cac-f192-467b-bd0e-12fc4556406c", + "parentUUID": "bc9e4fc2-c618-4f09-bb32-1d90003997e0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "6096ec71-545f-4174-920e-dce149a8de0a" + "a4fc7cac-f192-467b-bd0e-12fc4556406c" ], "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 753, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1704,49 +1595,49 @@ "_timeout": 900000 }, { - "uuid": "d8f88bb5-3022-4ed2-92fa-811979847d68", - "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": "05c9ac9e-1b0b-48f4-9b84-424eea5070f5", + "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": "96f9f83d-bff5-478d-b110-6614d555590b", + "uuid": "ccc850d0-15da-4c13-9758-f830bdfe5784", "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-data-summary-dstypemonth-test.js", + "file": "/test/v2.0-data-summary-dstypemonth-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 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": 202, + "duration": 223, "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();", + "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": "d2b22457-3a7e-4535-8e79-23812031a586", - "parentUUID": "96f9f83d-bff5-478d-b110-6614d555590b", + "uuid": "ceeb9693-bb72-46d9-b910-004dd8911bb4", + "parentUUID": "ccc850d0-15da-4c13-9758-f830bdfe5784", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "d2b22457-3a7e-4535-8e79-23812031a586" + "ceeb9693-bb72-46d9-b910-004dd8911bb4" ], "failures": [], "pending": [], "skipped": [], - "duration": 202, + "duration": 223, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1762,49 +1653,49 @@ "_timeout": 900000 }, { - "uuid": "7eb7405c-b587-4e7d-a0a4-1ee928d20453", - "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": "d3117d44-dea6-444c-90ed-8d9afe55183f", + "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": "6d6d8fd2-891c-4036-872d-4df1b348e400", + "uuid": "5b42ccbe-7197-4200-a16e-94d7f2703409", "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-datasets-{datasetid}-sites-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-sites-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 \"Site\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/sites tests for get should respond 200 for \"Site\"", "timedOut": false, - "duration": 93, + "duration": 86, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/4617/sites', { \n 'qs': {\"limit\":6170,\"offset\":69096509},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "984f3bdc-cda5-404a-9d72-e4ee345c41fb", - "parentUUID": "6d6d8fd2-891c-4036-872d-4df1b348e400", + "uuid": "f2f953ea-2358-46fe-b0ee-c2bc8cf627ae", + "parentUUID": "5b42ccbe-7197-4200-a16e-94d7f2703409", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "984f3bdc-cda5-404a-9d72-e4ee345c41fb" + "f2f953ea-2358-46fe-b0ee-c2bc8cf627ae" ], "failures": [], "pending": [], "skipped": [], - "duration": 93, + "duration": 86, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1820,49 +1711,49 @@ "_timeout": 900000 }, { - "uuid": "bd9ae635-4616-4d03-a432-724efea417f3", - "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": "e123fe85-5b5b-471f-ac6d-cabd88d86023", + "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": "ed0b6ec4-c83a-49ab-9d52-8182ac855894", + "uuid": "9536716b-93d0-4a21-8270-30de56defdae", "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-apps-taxagrouptypes-test.js", + "file": "/test/v2.0-apps-taxagrouptypes-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 \"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": 13630, + "duration": 125, "state": "passed", - "speed": "slow", + "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\":11},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "dad89b85-3b95-4d58-8cbe-c483c9e25a76", - "parentUUID": "ed0b6ec4-c83a-49ab-9d52-8182ac855894", + "uuid": "6cee11b4-e567-4e2b-b2f3-ec716683128b", + "parentUUID": "9536716b-93d0-4a21-8270-30de56defdae", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "dad89b85-3b95-4d58-8cbe-c483c9e25a76" + "6cee11b4-e567-4e2b-b2f3-ec716683128b" ], "failures": [], "pending": [], "skipped": [], - "duration": 13630, + "duration": 125, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1878,49 +1769,49 @@ "_timeout": 900000 }, { - "uuid": "669d3e0a-c39e-46c0-a784-2510968312b7", - "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": "4394e655-3a4f-4112-809d-2f6e38c9ba50", + "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": "40e3af24-fce9-4ab9-a0cd-29ff343fa89d", + "uuid": "6bf76d70-ee61-4a3d-a36c-ff12eb0da569", "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-chronologies-{chronid}-test.js", + "file": "/test/v2.0-data-chronologies-{chronid}-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 \"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": 76, + "duration": 171, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "23d7c9db-5eb8-4efe-9098-7af2eceaadc2", - "parentUUID": "40e3af24-fce9-4ab9-a0cd-29ff343fa89d", + "uuid": "d1323d45-ade6-4e3c-bd36-1c096d32fe97", + "parentUUID": "6bf76d70-ee61-4a3d-a36c-ff12eb0da569", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "23d7c9db-5eb8-4efe-9098-7af2eceaadc2" + "d1323d45-ade6-4e3c-bd36-1c096d32fe97" ], "failures": [], "pending": [], "skipped": [], - "duration": 76, + "duration": 171, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1936,49 +1827,49 @@ "_timeout": 900000 }, { - "uuid": "c4bd0ba1-11c3-44a4-bbc9-0fb8a1a9b8d1", - "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": "7be064ac-9f5e-4fcf-b83c-da362abd61d0", + "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": "d557c0ad-f92f-4e4c-9f44-e5cac7a3d817", + "uuid": "8e7e6f94-c002-4d4c-936c-7df214f2d768", "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-datasets-{datasetid}-lithology-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-lithology-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 \"Lithology\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/lithology tests for get should respond 200 for \"Lithology\"", "timedOut": false, - "duration": 70, + "duration": 80, "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();", + "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": "6b32937d-4868-4140-9e15-e23c960508a8", - "parentUUID": "d557c0ad-f92f-4e4c-9f44-e5cac7a3d817", + "uuid": "9488c0a1-7423-44d8-8e70-7b3e27f9a754", + "parentUUID": "8e7e6f94-c002-4d4c-936c-7df214f2d768", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "6b32937d-4868-4140-9e15-e23c960508a8" + "9488c0a1-7423-44d8-8e70-7b3e27f9a754" ], "failures": [], "pending": [], "skipped": [], - "duration": 70, + "duration": 80, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1994,49 +1885,49 @@ "_timeout": 900000 }, { - "uuid": "dd6d232a-15a6-4d21-9209-dce099884574", - "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": "9538e5fd-2e33-4ae7-bdfa-1f782dc1d37d", + "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": [], "suites": [ { - "uuid": "d5e5b824-86d1-48f7-a08d-fef67bbfecb3", + "uuid": "6117eee5-ea94-4fe1-992d-1f6dd5ce1669", "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-occurrences-test.js", + "file": "/test/v2.0-data-occurrences-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 \"occurrence\"", + "fullTitle": "tests for /v2.0/data/occurrences tests for get should respond 200 for \"occurrence\"", "timedOut": false, - "duration": 381, + "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/spatial/icesheet', { \n 'qs': {\"age\":4221,\"proj\":3857,\"prec\":721.3013029865915},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/occurrences', { \n 'qs': {\"taxonname\":\"aliquip eiusmod\",\"taxonid\":7890,\"siteid\":16610,\"sitename\":\"officia dolore cupidatat eu ea\",\"datasettype\":\"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]]]}\",\"ageof\":10193875,\"ageyoung\": 1000,\"ageold\": 10000,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "aee4071e-ea82-42b3-80a9-a87ac03c4b66", - "parentUUID": "d5e5b824-86d1-48f7-a08d-fef67bbfecb3", + "uuid": "a9707a41-1a83-4b02-a490-79af8c456836", + "parentUUID": "6117eee5-ea94-4fe1-992d-1f6dd5ce1669", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "aee4071e-ea82-42b3-80a9-a87ac03c4b66" + "a9707a41-1a83-4b02-a490-79af8c456836" ], "failures": [], "pending": [], "skipped": [], - "duration": 381, + "duration": 104, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2052,49 +1943,127 @@ "_timeout": 900000 }, { - "uuid": "20f5a74b-91d3-476f-ab42-9df8d21e45e2", - "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": "d8214e70-3966-47ea-9339-6ea8e756df7c", + "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": "a92c155a-56fc-44df-ae61-072a631953c7", + "parentUUID": "d8214e70-3966-47ea-9339-6ea8e756df7c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "a92c155a-56fc-44df-ae61-072a631953c7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 5000 + }, + { + "uuid": "4f8dd2df-0632-4dde-9f71-eac27896130b", + "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": 6, + "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": "c80ea9fc-3504-4c80-87e8-438be39670ef", + "parentUUID": "4f8dd2df-0632-4dde-9f71-eac27896130b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c80ea9fc-3504-4c80-87e8-438be39670ef" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 6, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "7570228e-9baa-4b8b-aae3-5a51bcd93ee4", + "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": "477a39d8-75be-444b-984f-e569606bf4a0", + "uuid": "af59e1a0-db6f-416d-8421-e350019b5565", "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-apps-constdb-datasetuploads-test.js", + "file": "/test/v2.0-apps-constdb-datasetuploads-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 \"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": 167, + "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/taxa', { \n 'qs': {\"taxonname\":\"consectetur sit Lorem\",\"taxagroup\":\"ea nulla aute tempor\",\"ecolgroup\":\"nulla eu consequat sunt\",\"status\":1,\"limit\":2611,\"offset\":58687158},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetuploads', { \n 'qs': {\"dbid\":12},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "c0d326a7-c12d-4b20-9444-bda961f52bde", - "parentUUID": "477a39d8-75be-444b-984f-e569606bf4a0", + "uuid": "787a6ad0-0782-4b26-9aa1-e2ddfe5ad9bb", + "parentUUID": "af59e1a0-db6f-416d-8421-e350019b5565", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "c0d326a7-c12d-4b20-9444-bda961f52bde" + "787a6ad0-0782-4b26-9aa1-e2ddfe5ad9bb" ], "failures": [], "pending": [], "skipped": [], - "duration": 167, + "duration": 104, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2110,49 +2079,49 @@ "_timeout": 900000 }, { - "uuid": "d82b0219-cc07-41b2-b63d-e9400a5d308f", - "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": "6c085342-3b4b-429d-b5b2-5213e58e9eba", + "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": "0d4c25d7-cabd-4e81-be05-b1f83bfd3ba6", + "uuid": "4be67b02-8a4d-4d65-bae8-d38b9e771df2", "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/v2.0-data-taxa-test.js", + "file": "/test/v2.0-data-taxa-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 \"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": 71, + "duration": 163, "state": "passed", "speed": "fast", "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa', { \n 'qs': {\"taxonname\":\"Excepteur irure\",\"taxagroup\":\"Ut aute ea et dolore\",\"ecolgroup\":\"in nulla eu\",\"status\":0,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "ba8280a2-3929-4626-b24e-8cbc85655353", - "parentUUID": "0d4c25d7-cabd-4e81-be05-b1f83bfd3ba6", + "uuid": "6abec881-9e0d-4e42-aef1-e55f2d3edf9a", + "parentUUID": "4be67b02-8a4d-4d65-bae8-d38b9e771df2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "ba8280a2-3929-4626-b24e-8cbc85655353" + "6abec881-9e0d-4e42-aef1-e55f2d3edf9a" ], "failures": [], "pending": [], "skipped": [], - "duration": 71, + "duration": 163, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2168,49 +2137,49 @@ "_timeout": 900000 }, { - "uuid": "3bc719e2-1a2c-4484-8906-02873ea70aa5", - "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": "9ff32943-5ade-4ad0-8b38-24c33764dfe3", + "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": "41608679-ac64-4aa6-ba54-bcce8f0ffa12", + "uuid": "2207e21a-ddf0-4f2d-ad82-eedf9d6b82ba", "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/v1.5-data-datasets-{datasetid}-test.js", + "file": "/test/v1.5-data-datasets-{datasetid}-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 \"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": 648, + "duration": 3293, "state": "passed", - "speed": "medium", + "speed": "slow", "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();", + "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": "a834fea9-e152-497e-968c-c7725f30c60c", - "parentUUID": "41608679-ac64-4aa6-ba54-bcce8f0ffa12", + "uuid": "7bab0ab2-c393-4031-bbde-5daf665476ca", + "parentUUID": "2207e21a-ddf0-4f2d-ad82-eedf9d6b82ba", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "a834fea9-e152-497e-968c-c7725f30c60c" + "7bab0ab2-c393-4031-bbde-5daf665476ca" ], "failures": [], "pending": [], "skipped": [], - "duration": 648, + "duration": 3293, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2226,49 +2195,49 @@ "_timeout": 900000 }, { - "uuid": "00a12f4b-133e-4607-8a10-00ae90bb19db", - "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": "b5dd3e9b-52ef-418c-a784-1b6aa06f120f", + "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": "3a7af812-fc50-4a83-8903-0ad0f0d2574c", + "uuid": "e5af9a56-84ed-42cb-bd22-c704cdd03abe", "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-datasets-{datasetid}-taxa-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-taxa-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 \"Taxa\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/taxa tests for get should respond 200 for \"Taxa\"", "timedOut": false, - "duration": 82, + "duration": 86, "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\":\"amet ad labore commodo\",\"proj\":3857,\"prec\":18.365115590120922},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "20982b05-d738-4bc2-9921-e6b8f2e38f68", - "parentUUID": "3a7af812-fc50-4a83-8903-0ad0f0d2574c", + "uuid": "5d29d3a2-201a-4f43-8d10-bb32e5b5a422", + "parentUUID": "e5af9a56-84ed-42cb-bd22-c704cdd03abe", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "20982b05-d738-4bc2-9921-e6b8f2e38f68" + "5d29d3a2-201a-4f43-8d10-bb32e5b5a422" ], "failures": [], "pending": [], "skipped": [], - "duration": 82, + "duration": 86, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2284,49 +2253,49 @@ "_timeout": 900000 }, { - "uuid": "edf0a6e8-d218-46a9-8ec0-18bcfae0cc73", - "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": "4d8bb10f-9f11-45c6-9d28-cdf7d251c33b", + "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": [ { - "uuid": "eb26b263-ae87-40d7-b236-19d3f8c5f88d", + "uuid": "1b231294-6eb6-4554-a169-75f53bedf613", "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-dbtables-test.js", + "file": "/test/v2.0-data-dbtables-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 \"Returned table.\"", + "fullTitle": "tests for /v2.0/data/dbtables tests for get should respond 200 for \"Returned table.\"", "timedOut": false, - "duration": 36093, + "duration": 71, "state": "passed", - "speed": "slow", + "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/dbtables', { \n 'qs': {\"table\":\"adipisicing ipsum dolor\",\"count\":true,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "087c444b-978a-4083-aa67-9c60c054459f", - "parentUUID": "eb26b263-ae87-40d7-b236-19d3f8c5f88d", + "uuid": "34405eef-bfb3-442d-b672-8b6bef53f2f3", + "parentUUID": "1b231294-6eb6-4554-a169-75f53bedf613", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "087c444b-978a-4083-aa67-9c60c054459f" + "34405eef-bfb3-442d-b672-8b6bef53f2f3" ], "failures": [], "pending": [], "skipped": [], - "duration": 36093, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2342,49 +2311,49 @@ "_timeout": 900000 }, { - "uuid": "4894bc11-6719-4dd3-9782-f912be9f78ae", - "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": "52548b41-f7cf-4623-99f8-9099a3a9d91a", + "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": "4c3fab65-4cd5-4886-ad1a-3a0fef9d6b57", + "uuid": "063e4b6c-3b7c-4792-a2dd-23e36e63d4e0", "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-spatial-icesheet-test.js", + "file": "/test/v2.0-data-spatial-icesheet-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 \"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": 163, + "duration": 231, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/12837/sites', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/icesheet', { \n 'qs': {\"age\":13023,\"proj\": 4326,\"prec\": 1000},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "b9e06b8f-78a5-4725-99fe-acbd290e483e", - "parentUUID": "4c3fab65-4cd5-4886-ad1a-3a0fef9d6b57", + "uuid": "00ae8bc8-91c8-4725-807c-e7f0e6240ddf", + "parentUUID": "063e4b6c-3b7c-4792-a2dd-23e36e63d4e0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "b9e06b8f-78a5-4725-99fe-acbd290e483e" + "00ae8bc8-91c8-4725-807c-e7f0e6240ddf" ], "failures": [], "pending": [], "skipped": [], - "duration": 163, + "duration": 231, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2400,49 +2369,49 @@ "_timeout": 900000 }, { - "uuid": "6fde3175-41c2-474b-955b-18d7297298ed", - "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": "71de5192-4be2-4779-87e3-726f41c3a8c1", + "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": "1d82a3f7-9deb-4f9c-99b7-e0d2076f3bf7", + "uuid": "0f195834-9a91-4d0e-9128-ba88ba7e7937", "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-data-pollen-{id}-test.js", + "file": "/test/v2.0-data-pollen-{id}-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 \"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": 76, + "duration": 5, "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/98902659', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "0f1d9b55-f5ce-4947-b170-4ee930a5a390", - "parentUUID": "1d82a3f7-9deb-4f9c-99b7-e0d2076f3bf7", + "uuid": "a1a2f582-50e6-4018-bd16-4d3113911337", + "parentUUID": "0f195834-9a91-4d0e-9128-ba88ba7e7937", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "0f1d9b55-f5ce-4947-b170-4ee930a5a390" + "a1a2f582-50e6-4018-bd16-4d3113911337" ], "failures": [], "pending": [], "skipped": [], - "duration": 76, + "duration": 5, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2458,202 +2427,107 @@ "_timeout": 900000 }, { - "uuid": "651a86c1-c107-4146-bb90-7e4b635d2c2f", - "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": "25d8356f-cd99-4b04-834f-e34fc2e11d8d", + "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": "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": 101, - "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": "6101068a-1e06-49e4-8af2-1a07b3fb3ec0", - "parentUUID": "651a86c1-c107-4146-bb90-7e4b635d2c2f", - "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": 82, - "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": "fd9d2cef-569c-4aff-a4ef-24e7b516569f", - "parentUUID": "651a86c1-c107-4146-bb90-7e4b635d2c2f", - "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": 279, - "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": "d8303eef-722e-4921-8f24-dc2f76a20fbf", - "parentUUID": "651a86c1-c107-4146-bb90-7e4b635d2c2f", - "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": 81, - "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": "1cfe7a8a-f9ee-4722-bdd2-d7447479bbdb", - "parentUUID": "651a86c1-c107-4146-bb90-7e4b635d2c2f", - "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": 75, - "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": "abb9d6ec-3c93-4f4d-b2f7-bbe120dbea61", - "parentUUID": "651a86c1-c107-4146-bb90-7e4b635d2c2f", - "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": 76, - "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": "cdda7f00-5505-4657-b69f-ef76b6715f23", - "parentUUID": "651a86c1-c107-4146-bb90-7e4b635d2c2f", - "isHook": false, - "skipped": false - }, + "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": 81, - "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": "48e8f1b4-ce06-4bb8-a821-52b0e0bd1a65", - "parentUUID": "651a86c1-c107-4146-bb90-7e4b635d2c2f", - "isHook": false, - "skipped": false + "uuid": "d2ef45c0-e7b9-4081-893e-35f3bb7fdfbd", + "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": 5325, + "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": "efbd7a52-7401-4e70-8397-dfd440e97af7", + "parentUUID": "d2ef45c0-e7b9-4081-893e-35f3bb7fdfbd", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "efbd7a52-7401-4e70-8397-dfd440e97af7" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5325, + "root": false, + "rootEmpty": false, + "_timeout": 900000 } ], - "suites": [], - "passes": [ - "6101068a-1e06-49e4-8af2-1a07b3fb3ec0", - "fd9d2cef-569c-4aff-a4ef-24e7b516569f", - "d8303eef-722e-4921-8f24-dc2f76a20fbf", - "1cfe7a8a-f9ee-4722-bdd2-d7447479bbdb", - "abb9d6ec-3c93-4f4d-b2f7-bbe120dbea61", - "cdda7f00-5505-4657-b69f-ef76b6715f23", - "48e8f1b4-ce06-4bb8-a821-52b0e0bd1a65" - ], + "passes": [], "failures": [], "pending": [], "skipped": [], - "duration": 775, + "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 15000 + "_timeout": 900000 }, { - "uuid": "3fd454d6-3867-4069-a9b6-88f23f007945", - "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": "b6bf884f-23c7-4dbd-ba06-50f7d890b395", + "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": "dd6029bd-e1b1-4a4c-a65e-de0a743ba827", + "uuid": "de691e5a-d807-4528-ad92-344645126113", "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-apps-depositionalenvironments-root-test.js", + "file": "/test/v2.0-apps-depositionalenvironments-root-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 \"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": 90, + "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/depenvt', { \n 'qs': {\"siteid\":38751,\"datasetid\":88819447,\"collectionunitid\":56392},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "abf13907-41e0-4f42-ab1b-163886904ab5", - "parentUUID": "dd6029bd-e1b1-4a4c-a65e-de0a743ba827", + "uuid": "b807566b-266a-4043-8cc6-c45438047868", + "parentUUID": "de691e5a-d807-4528-ad92-344645126113", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "abf13907-41e0-4f42-ab1b-163886904ab5" + "b807566b-266a-4043-8cc6-c45438047868" ], "failures": [], "pending": [], "skipped": [], - "duration": 90, + "duration": 70, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2669,49 +2543,49 @@ "_timeout": 900000 }, { - "uuid": "0b2a3eaa-7345-4f02-9393-f0af6f0a88af", - "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": "d952330a-cd68-430d-9d86-cc99b90f25b6", + "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": "f149f92f-a079-40a4-aadf-915ae1eb1b5f", + "uuid": "3095ab6c-070f-448a-8dd0-fb555b9cbd75", "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/v1.5-dbtables-{table}-test.js", + "file": "/test/v1.5-dbtables-{table}-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 \"Returned table.\"", + "fullTitle": "tests for /v1.5/dbtables/{table} tests for get should respond 200 for \"Returned table.\"", "timedOut": false, - "duration": 100, + "duration": 68, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/28048893/chronologies', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "f385699d-b077-48ae-a930-13dc9932d794", - "parentUUID": "f149f92f-a079-40a4-aadf-915ae1eb1b5f", + "uuid": "e5bfe42d-50a5-4782-90af-f88aabd8ac39", + "parentUUID": "3095ab6c-070f-448a-8dd0-fb555b9cbd75", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "f385699d-b077-48ae-a930-13dc9932d794" + "e5bfe42d-50a5-4782-90af-f88aabd8ac39" ], "failures": [], "pending": [], "skipped": [], - "duration": 100, + "duration": 68, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2727,221 +2601,49 @@ "_timeout": 900000 }, { - "uuid": "79d63182-b1dc-4412-99a7-bbb0b5882e53", - "title": "Get contact data:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/contacts.js", - "file": "/test/contacts.js", + "uuid": "4b059ea3-b59b-4d88-b79f-825b87a128c5", + "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": [ + "tests": [], + "suites": [ { - "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": 84, - "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": "dca39bf4-74ae-4a97-8d35-2926ec74ebb5", - "parentUUID": "79d63182-b1dc-4412-99a7-bbb0b5882e53", - "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": 79, - "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": "43100463-baa1-46e3-9d7c-c862a40d6456", - "parentUUID": "79d63182-b1dc-4412-99a7-bbb0b5882e53", - "isHook": false, - "skipped": false - }, - { - "title": "Contact queries should be case insensitive:", - "fullTitle": "Get contact data: Contact queries should be case insensitive:", - "timedOut": false, - "duration": 72, - "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": "5b6c27bd-1fee-44fa-8d4d-89ca99420fba", - "parentUUID": "79d63182-b1dc-4412-99a7-bbb0b5882e53", - "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": 70, - "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": "a0094715-b87e-4225-9fd8-7d07862a493f", - "parentUUID": "79d63182-b1dc-4412-99a7-bbb0b5882e53", - "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": 68, - "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": "3f9233d0-5f03-4d0e-89ff-124ac9861774", - "parentUUID": "79d63182-b1dc-4412-99a7-bbb0b5882e53", - "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": 68, - "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": "e3491d9e-756f-4ba0-9e96-954ebc11f3c9", - "parentUUID": "79d63182-b1dc-4412-99a7-bbb0b5882e53", - "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": 67, - "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": "ab892cfd-e5a1-4177-aa89-893a49313612", - "parentUUID": "79d63182-b1dc-4412-99a7-bbb0b5882e53", - "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": 68, - "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": "6716a440-cf01-4ec8-9248-87b73d801d2e", - "parentUUID": "79d63182-b1dc-4412-99a7-bbb0b5882e53", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "dca39bf4-74ae-4a97-8d35-2926ec74ebb5", - "43100463-baa1-46e3-9d7c-c862a40d6456", - "5b6c27bd-1fee-44fa-8d4d-89ca99420fba", - "a0094715-b87e-4225-9fd8-7d07862a493f", - "3f9233d0-5f03-4d0e-89ff-124ac9861774", - "e3491d9e-756f-4ba0-9e96-954ebc11f3c9", - "ab892cfd-e5a1-4177-aa89-893a49313612", - "6716a440-cf01-4ec8-9248-87b73d801d2e" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 576, - "root": false, - "rootEmpty": false, - "_timeout": 5000 - }, - { - "uuid": "e74cbd8d-bd9b-4a08-935c-3cac24e34fc2", - "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": "5f780873-9ec0-44a1-a70e-35fc53a7394c", + "uuid": "95e84808-3688-491a-acb7-5b777c3cf9be", "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-pollen-test.js", + "file": "/test/v2.0-data-pollen-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 \"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": 71, + "duration": 1, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa/35627', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/pollen', { \n 'qs': {\"taxonname\":\"esse ut dolore labore\",\"taxonid\":32590,\"siteid\":30859,\"sitename\":\"sit\",\"datasettype\":\"geochronologic\",\"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\":15225459,\"ageyoung\": 1000,\"ageold\": 10000,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "5b0c6d7b-9ef8-4bcc-b8ce-03e797431192", - "parentUUID": "5f780873-9ec0-44a1-a70e-35fc53a7394c", + "uuid": "32441374-e6a5-48ac-a3d2-4515ad78de43", + "parentUUID": "95e84808-3688-491a-acb7-5b777c3cf9be", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "5b0c6d7b-9ef8-4bcc-b8ce-03e797431192" + "32441374-e6a5-48ac-a3d2-4515ad78de43" ], "failures": [], "pending": [], "skipped": [], - "duration": 71, + "duration": 1, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2957,49 +2659,49 @@ "_timeout": 900000 }, { - "uuid": "d6c74964-b499-4dfa-9c54-6f6559d03c9d", - "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": "eee7e3b8-e072-49bf-83da-f53fa137c5f0", + "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": "ac2a3841-cfd5-4f6d-a85f-a430eff255e9", + "uuid": "d51edb1a-fefb-423e-bcfd-e08c5e28424d", "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/v2.0-apps-constdb-datasetages-test.js", + "file": "/test/v2.0-apps-constdb-datasetages-test.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 \"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": 78, + "duration": 17651, "state": "passed", - "speed": "fast", + "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/98922306/lithology', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetages', { \n 'qs': {\"dbid\":3},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "c4521981-1936-4fb7-8cf7-82576ba14163", - "parentUUID": "ac2a3841-cfd5-4f6d-a85f-a430eff255e9", + "uuid": "77cdd208-5ad3-4221-9aac-dbff877be662", + "parentUUID": "d51edb1a-fefb-423e-bcfd-e08c5e28424d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "c4521981-1936-4fb7-8cf7-82576ba14163" + "77cdd208-5ad3-4221-9aac-dbff877be662" ], "failures": [], "pending": [], "skipped": [], - "duration": 78, + "duration": 17651, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3015,49 +2717,49 @@ "_timeout": 900000 }, { - "uuid": "209ef907-d903-450e-a8e0-490bc53bd771", - "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": "4773d85f-e4cc-47b1-9ea2-6dee037c2df8", + "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": "7061bd3e-a001-4006-9e69-c8ca0bfb3b0f", + "uuid": "985dc8aa-771b-45de-adda-9727f5449a6c", "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-taxa-{taxonid}-occurrences-test.js", + "file": "/test/v2.0-data-taxa-{taxonid}-occurrences-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 \"occurrence\"", + "fullTitle": "tests for /v2.0/data/taxa/{taxonid}/occurrences tests for get should respond 200 for \"occurrence\"", "timedOut": false, - "duration": 85, + "duration": 103, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/4287/chronologies', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "b1bb31a7-5efd-49da-8781-e5ce7216bb85", - "parentUUID": "7061bd3e-a001-4006-9e69-c8ca0bfb3b0f", + "uuid": "adde0ac2-90c7-498a-8717-ef836ce89af8", + "parentUUID": "985dc8aa-771b-45de-adda-9727f5449a6c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "b1bb31a7-5efd-49da-8781-e5ce7216bb85" + "adde0ac2-90c7-498a-8717-ef836ce89af8" ], "failures": [], "pending": [], "skipped": [], - "duration": 85, + "duration": 103, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3073,49 +2775,49 @@ "_timeout": 900000 }, { - "uuid": "19eb45f7-38d0-4b0e-8ec0-d328ba220111", - "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": "3fc91b22-524e-43eb-815d-fd00158a4be9", + "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": "c246792b-ff56-47bc-87f8-e07343b6e392", + "uuid": "6618e46e-5db3-4021-a7b7-b8fdf6e2cce7", "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-apps-keywords-test.js", + "file": "/test/v2.0-apps-keywords-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 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": 71, + "duration": 66, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/frozen/18750323', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "540d06a3-624f-4119-b356-74b29932939c", - "parentUUID": "c246792b-ff56-47bc-87f8-e07343b6e392", + "uuid": "2441bec7-32ba-463b-b4b9-385ddfce78eb", + "parentUUID": "6618e46e-5db3-4021-a7b7-b8fdf6e2cce7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "540d06a3-624f-4119-b356-74b29932939c" + "2441bec7-32ba-463b-b4b9-385ddfce78eb" ], "failures": [], "pending": [], "skipped": [], - "duration": 71, + "duration": 66, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3131,49 +2833,49 @@ "_timeout": 900000 }, { - "uuid": "77ffe579-2e83-401b-bc01-0c4b79a3e317", - "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": "0c0792ac-2aff-4b74-ae21-2ec807758b2f", + "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": "effc45bd-d4a8-4c54-ba95-49d65a43cea1", + "uuid": "10aec296-7fde-41f6-a36b-8b8d8baac7b1", "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-apps-constdb-test.js", + "file": "/test/v2.0-apps-constdb-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 \"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": 73, + "duration": 37083, "state": "passed", - "speed": "fast", + "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/dbtables/nisiExcepteuranimullamcopariatur', { \n 'qs': {\"count\":true,\"limit\":1742,\"offset\":57207610},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "c5b90b5f-a935-40e7-b4d2-b65a4f3963e5", - "parentUUID": "effc45bd-d4a8-4c54-ba95-49d65a43cea1", + "uuid": "9e17d191-91b2-4394-8cb0-b87fdc4bbf58", + "parentUUID": "10aec296-7fde-41f6-a36b-8b8d8baac7b1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "c5b90b5f-a935-40e7-b4d2-b65a4f3963e5" + "9e17d191-91b2-4394-8cb0-b87fdc4bbf58" ], "failures": [], "pending": [], "skipped": [], - "duration": 73, + "duration": 37083, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3189,49 +2891,49 @@ "_timeout": 900000 }, { - "uuid": "5cd17ff5-4e4c-4437-93cd-a6fdb45cc4bf", - "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": "5f411864-d50e-4067-b87f-354a8c93ec55", + "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": [], "suites": [ { - "uuid": "38faa981-1064-4023-bdfe-f1b405a70cc8", + "uuid": "599873b8-eb72-4565-81ea-4c024e53996e", "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/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 \"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 \"Publication\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/publications tests for get should respond 200 for \"Publication\"", "timedOut": false, - "duration": 72, + "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/geopoliticalunits/595', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "082887b0-4fb7-417c-9a20-4abee1095b57", - "parentUUID": "38faa981-1064-4023-bdfe-f1b405a70cc8", + "uuid": "16ffdd81-ff80-40a7-b7d6-4af2e3b2af2a", + "parentUUID": "599873b8-eb72-4565-81ea-4c024e53996e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "082887b0-4fb7-417c-9a20-4abee1095b57" + "16ffdd81-ff80-40a7-b7d6-4af2e3b2af2a" ], "failures": [], "pending": [], "skipped": [], - "duration": 72, + "duration": 87, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3247,49 +2949,49 @@ "_timeout": 900000 }, { - "uuid": "aa73ba4c-0ff2-4eff-87ba-7077be9d59de", - "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": "7e6d2e3b-d9ab-4a74-8a31-4f491226ed27", + "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": "4fedf4d7-6441-4cf7-9e79-fae4ff01d3e8", + "uuid": "cfae48e0-ab37-459f-a6cf-ae3394f45ce1", "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/v1.5-apps-DatasetTypes-test.js", + "file": "/test/v1.5-apps-DatasetTypes-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 \"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": 71, + "duration": 90, "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\":7},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "3e04a7be-d9ed-4084-a315-ae60adcad35c", - "parentUUID": "4fedf4d7-6441-4cf7-9e79-fae4ff01d3e8", + "uuid": "eeb60763-d807-4f9f-a145-7eaacb2b4cad", + "parentUUID": "cfae48e0-ab37-459f-a6cf-ae3394f45ce1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "3e04a7be-d9ed-4084-a315-ae60adcad35c" + "eeb60763-d807-4f9f-a145-7eaacb2b4cad" ], "failures": [], "pending": [], "skipped": [], - "duration": 71, + "duration": 90, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3305,165 +3007,49 @@ "_timeout": 900000 }, { - "uuid": "ebae7c0b-1762-4a05-a505-350bb31982d9", - "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": "6ec8fb09-5a83-4289-a6cc-cd3c725eb3d5", - "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", - "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.\"", - "timedOut": false, - "duration": 158, - "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\":1,\"lower\":true},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": {}, - "uuid": "25ee5a90-e278-4fad-9a4e-747020b3a9b2", - "parentUUID": "6ec8fb09-5a83-4289-a6cc-cd3c725eb3d5", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "25ee5a90-e278-4fad-9a4e-747020b3a9b2" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 158, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "5ea1ae4b-1346-4a93-9e5b-d20ab2292a1a", - "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": "c804a1ae-8610-4c15-a93f-e410a163149a", + "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": "f31bf9a2-3793-4b66-9328-62fcdb7798e5", + "uuid": "b4f0c3f6-acd0-45fc-b732-11b37ac0db14", "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-sites-{siteid}-datasets-test.js", + "file": "/test/v2.0-data-sites-{siteid}-datasets-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.\"", + "fullTitle": "tests for /v2.0/data/sites/{siteid}/datasets tests for get should respond 200 for \"An array of datasets.\"", "timedOut": false, - "duration": 80, + "duration": 138, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/aggregatedatasets/21500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": {}, - "uuid": "485611d8-1def-49ed-92ec-9041c23ff194", - "parentUUID": "f31bf9a2-3793-4b66-9328-62fcdb7798e5", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "485611d8-1def-49ed-92ec-9041c23ff194" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 80, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "bc9bb11d-8cdc-4e6d-b9a8-d8c9793e993c", - "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": "07b093ac-0f4c-4c99-b77c-a4a36cbde983", - "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", - "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\"", - "timedOut": false, - "duration": 16252, - "state": "passed", - "speed": "slow", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/db', { \n 'qs': {\"limit\":283,\"offset\":29305430,\"database\":\"Holocene Perspective on Peatland Biogeochemistry\"},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "393a3e5b-11aa-4c02-a958-9a7e2f62c326", - "parentUUID": "07b093ac-0f4c-4c99-b77c-a4a36cbde983", + "uuid": "8c90492e-fb49-433d-8f7a-0025905a6f5e", + "parentUUID": "b4f0c3f6-acd0-45fc-b732-11b37ac0db14", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "393a3e5b-11aa-4c02-a958-9a7e2f62c326" + "8c90492e-fb49-433d-8f7a-0025905a6f5e" ], "failures": [], "pending": [], "skipped": [], - "duration": 16252, + "duration": 138, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3479,49 +3065,49 @@ "_timeout": 900000 }, { - "uuid": "f57ba3f8-1eba-476f-a6a8-ca9c3cfbf178", - "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": "1053b221-2dde-49e9-be2b-3c50a54c3f38", + "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": "c6f48312-3514-4c1b-84ad-27753ae112f0", + "uuid": "fec0e582-8b8f-4404-9d74-a23419b2417a", "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/v2.0-data-occurrences-{occurrenceid}-test.js", + "file": "/test/v2.0-data-occurrences-{occurrenceid}-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 \"occurrence\"", + "fullTitle": "tests for /v2.0/data/occurrences/{occurrenceid} tests for get should respond 200 for \"occurrence\"", "timedOut": false, - "duration": 1738, + "duration": 78, "state": "passed", - "speed": "slow", + "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/8600/datasets', { \n 'qs': {\"limit\":6011,\"offset\":93719849},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "13d5f13a-58a8-45f9-b8dc-f413451fe0e4", - "parentUUID": "c6f48312-3514-4c1b-84ad-27753ae112f0", + "uuid": "c0b668fb-f9fc-4b82-99c9-fdb1a34682d5", + "parentUUID": "fec0e582-8b8f-4404-9d74-a23419b2417a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "13d5f13a-58a8-45f9-b8dc-f413451fe0e4" + "c0b668fb-f9fc-4b82-99c9-fdb1a34682d5" ], "failures": [], "pending": [], "skipped": [], - "duration": 1738, + "duration": 78, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3537,49 +3123,49 @@ "_timeout": 900000 }, { - "uuid": "310ec252-e901-4709-a595-cbbc9cfd3810", - "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": "c4b2ed7f-3c79-4d61-822d-ea375124867e", + "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": "39041d87-3e21-4c9c-9145-9cf430e9150b", + "uuid": "c91ffba9-2b2e-4994-989e-26f101c4d53e", "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-data-datasets-{datasetid}-chronologies-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-chronologies-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 \"chronology\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/chronologies tests for get should respond 200 for \"chronology\"", "timedOut": false, - "duration": 209, + "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/summary/dstypemonth', { \n 'qs': {\"start\":0,\"end\":1},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "5a3f0c17-8b0c-40d1-b09d-0f97b91d45a2", - "parentUUID": "39041d87-3e21-4c9c-9145-9cf430e9150b", + "uuid": "535cbe96-912b-46a2-aa86-e5eca74ff6f9", + "parentUUID": "c91ffba9-2b2e-4994-989e-26f101c4d53e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "5a3f0c17-8b0c-40d1-b09d-0f97b91d45a2" + "535cbe96-912b-46a2-aa86-e5eca74ff6f9" ], "failures": [], "pending": [], "skipped": [], - "duration": 209, + "duration": 84, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3595,49 +3181,49 @@ "_timeout": 900000 }, { - "uuid": "81ad40cd-39eb-4663-ae1a-e18ebdf9e833", - "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": "8e31dc4d-40b1-4949-80d6-f2e59edefc4c", + "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": "237e5bfe-a44b-4e88-b5b6-2366c2ebaa43", + "uuid": "27dd8429-1da9-4429-a627-f71e87428d97", "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", + "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 \"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) \"", + "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": 82, + "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/spatial/lakes', { \n 'qs': {\"siteid\":12365,\"buffer\":8162,\"prec\":928.7451462526202,\"proj\":3857},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasets', { \n 'qs': {\"dbid\":8},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "84bc14b7-3fc8-497e-8166-fe1e382b56d2", - "parentUUID": "237e5bfe-a44b-4e88-b5b6-2366c2ebaa43", + "uuid": "7a1309ab-6f1b-44a9-844c-1a75f8c6b96e", + "parentUUID": "27dd8429-1da9-4429-a627-f71e87428d97", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "84bc14b7-3fc8-497e-8166-fe1e382b56d2" + "7a1309ab-6f1b-44a9-844c-1a75f8c6b96e" ], "failures": [], "pending": [], "skipped": [], - "duration": 82, + "duration": 70, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3653,49 +3239,49 @@ "_timeout": 900000 }, { - "uuid": "ace24cfe-56b7-4ef2-a768-59b7e30a38e4", - "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": "a184713a-7cb9-4199-bad4-d8c059ec0bff", + "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": "89a42fe4-a83d-4ba7-b84f-76c6c3dbbe7c", + "uuid": "ba66c63f-2163-4dd8-ab56-5868f7179bd5", "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-contacts-{contactid}-sites-test.js", + "file": "/test/v2.0-data-contacts-{contactid}-sites-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 \"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": 103, + "duration": 98, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/32837/datasets', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/500/sites', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "2cb25604-9802-44f5-8aeb-a09cedf79cea", - "parentUUID": "89a42fe4-a83d-4ba7-b84f-76c6c3dbbe7c", + "uuid": "be210353-c26a-4791-8382-87097d9308df", + "parentUUID": "ba66c63f-2163-4dd8-ab56-5868f7179bd5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "2cb25604-9802-44f5-8aeb-a09cedf79cea" + "be210353-c26a-4791-8382-87097d9308df" ], "failures": [], "pending": [], "skipped": [], - "duration": 103, + "duration": 98, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3711,221 +3297,374 @@ "_timeout": 900000 }, { - "uuid": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354", - "title": "Get taxon data:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js", - "file": "/test/taxa.js", + "uuid": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", + "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": "v2.0: An empty query returns the first 25 taxa.", - "fullTitle": "Get taxon data: v2.0: An empty query returns the first 25 taxa.", + "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": 101, + "duration": 73, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "api.get('v2.0/data/taxa/')\n .set('Accept', 'application/json')\n .expect(200, done);", + "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": "ec2a25a3-d7a7-4147-83d8-0f92cd5c5bf0", - "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354", + "uuid": "0e134da9-96f0-4787-831d-6db952bb0e1a", + "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", "isHook": false, "skipped": false }, { - "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:", + "title": "Get publication by comma sepatarated ids:", + "fullTitle": "Get publication data any number of ways: Get publication by comma sepatarated ids:", "timedOut": false, - "duration": 78, + "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 });", + "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": "67ee0da2-f238-4990-846c-a5beae956c05", - "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354", + "uuid": "be1b8c77-71e0-4149-9b6a-103120ae57bc", + "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", "isHook": false, "skipped": false }, { - "title": "v2.0: Taxon queries should be case insensitive:", - "fullTitle": "Get taxon data: v2.0: Taxon queries should be case insensitive:", + "title": "Get publication by querying author:", + "fullTitle": "Get publication data any number of ways: Get publication by querying author:", "timedOut": false, - "duration": 144, + "duration": 270, "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 });", + "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": "80faef20-6512-452e-afff-9851f6fe2ea3", - "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354", + "uuid": "c40b10f0-ae0a-4dee-b99e-1b3d3391fcd0", + "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", "isHook": false, "skipped": false }, { - "title": "v2.0: Taxon queries should accept comma separated lists:", - "fullTitle": "Get taxon data: v2.0: Taxon queries should accept comma separated lists:", + "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": 148, + "duration": 71, "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 });", + "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": "e76a0e22-c939-4e52-9f19-d933f9b2325d", - "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354", + "uuid": "b56eac6d-4bb1-474c-bbb2-0c6a5df174ec", + "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", "isHook": false, "skipped": false }, { - "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:", + "title": "Get publication by site id:", + "fullTitle": "Get publication data any number of ways: Get publication by site id:", "timedOut": false, - "duration": 256, + "duration": 72, "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 });", + "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": "9a827c78-dc0c-401e-9613-7866a304f0e9", - "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354", + "uuid": "6374fec6-bf96-4d09-bbde-7e5240a00973", + "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", "isHook": false, "skipped": false }, { - "title": "v2.0: Taxon queries should accept `*` as a wildcard:", - "fullTitle": "Get taxon data: v2.0: Taxon queries should accept `*` as a wildcard:", + "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": 149, + "duration": 76, "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": {}, - "uuid": "3ec26ade-0d7d-46d0-9ad4-491c6e8eac5a", - "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354", - "isHook": false, - "skipped": false - }, - { - "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": 721, - "state": "passed", - "speed": "medium", - "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 });", + "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": "2b6438dc-6ba7-426f-8b88-19014e6a448b", - "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354", + "uuid": "0d8d0f0b-da8a-4a3b-9343-05e9745ac60c", + "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", "isHook": false, "skipped": false }, { - "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:", + "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": 592, + "duration": 77, "state": "passed", - "speed": "medium", + "speed": "fast", "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 });", + "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": "1b5c2030-cc85-4611-87da-cc0dcc87b1c5", - "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354", + "uuid": "0a1e1513-17f4-46ad-92bf-9b6096dd5df7", + "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "ec2a25a3-d7a7-4147-83d8-0f92cd5c5bf0", - "67ee0da2-f238-4990-846c-a5beae956c05", - "80faef20-6512-452e-afff-9851f6fe2ea3", - "e76a0e22-c939-4e52-9f19-d933f9b2325d", - "9a827c78-dc0c-401e-9613-7866a304f0e9", - "3ec26ade-0d7d-46d0-9ad4-491c6e8eac5a", - "2b6438dc-6ba7-426f-8b88-19014e6a448b", - "1b5c2030-cc85-4611-87da-cc0dcc87b1c5" + "0e134da9-96f0-4787-831d-6db952bb0e1a", + "be1b8c77-71e0-4149-9b6a-103120ae57bc", + "c40b10f0-ae0a-4dee-b99e-1b3d3391fcd0", + "b56eac6d-4bb1-474c-bbb2-0c6a5df174ec", + "6374fec6-bf96-4d09-bbde-7e5240a00973", + "0d8d0f0b-da8a-4a3b-9343-05e9745ac60c", + "0a1e1513-17f4-46ad-92bf-9b6096dd5df7" ], "failures": [], "pending": [], "skipped": [], - "duration": 2189, + "duration": 711, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 15000 }, { - "uuid": "65469ef2-c751-4907-8cd0-71707825cb34", - "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": [], + "uuid": "eabfec1f-4ced-46a5-b787-e6793bf9c964", + "title": "Get taxon data:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js", + "file": "/test/taxa.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "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": 91, + "state": "passed", + "speed": "fast", + "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": {}, + "uuid": "6f92e78d-a773-4dba-9cc8-6d950bdc0baf", + "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", + "isHook": false, + "skipped": false + }, + { + "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": 69, + "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": {}, + "uuid": "9bd05b07-1aca-4377-828b-96d976264f25", + "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", + "isHook": false, + "skipped": false + }, + { + "title": "v2.0: Taxon queries should be case insensitive:", + "fullTitle": "Get taxon data: v2.0: Taxon queries should be case insensitive:", + "timedOut": false, + "duration": 139, + "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": {}, + "uuid": "e47d3912-c527-4ba4-a256-62402849a889", + "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", + "isHook": false, + "skipped": false + }, + { + "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": 141, + "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": {}, + "uuid": "45c7d81e-be09-4e47-9994-a32355e56f91", + "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", + "isHook": false, + "skipped": false + }, + { + "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": 270, + "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": {}, + "uuid": "3e9efce9-92d5-43d0-a467-f87e7198d8c5", + "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", + "isHook": false, + "skipped": false + }, + { + "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": 145, + "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": {}, + "uuid": "c29090ff-4777-49be-ad97-d6b6c35820a4", + "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", + "isHook": false, + "skipped": false + }, + { + "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": 776, + "state": "passed", + "speed": "medium", + "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": {}, + "uuid": "ce45fef5-c9b4-4472-acc6-e73184c7e532", + "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", + "isHook": false, + "skipped": false + }, + { + "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": 567, + "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": {}, + "uuid": "1e29261f-6690-4d42-a623-60baccc864cb", + "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6f92e78d-a773-4dba-9cc8-6d950bdc0baf", + "9bd05b07-1aca-4377-828b-96d976264f25", + "e47d3912-c527-4ba4-a256-62402849a889", + "45c7d81e-be09-4e47-9994-a32355e56f91", + "3e9efce9-92d5-43d0-a467-f87e7198d8c5", + "c29090ff-4777-49be-ad97-d6b6c35820a4", + "ce45fef5-c9b4-4472-acc6-e73184c7e532", + "1e29261f-6690-4d42-a623-60baccc864cb" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2198, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "39cfe2ec-cb78-4b7b-aefc-ee789cad71c5", + "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": "d341e8bb-2294-44ed-bab1-2ef2d4a03497", + "uuid": "14ddf9e7-2751-4043-adac-5c1086158947", "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/v1.5-data-sites-{siteid}-test.js", + "file": "/test/v1.5-data-sites-{siteid}-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 \"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": 93, + "duration": 85, "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();", + "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": "50ae73f8-103c-4bc7-b58a-7e89e8d1e43c", - "parentUUID": "d341e8bb-2294-44ed-bab1-2ef2d4a03497", + "uuid": "f951c749-c853-4861-8da3-2844d5068809", + "parentUUID": "14ddf9e7-2751-4043-adac-5c1086158947", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "50ae73f8-103c-4bc7-b58a-7e89e8d1e43c" + "f951c749-c853-4861-8da3-2844d5068809" ], "failures": [], "pending": [], "skipped": [], - "duration": 93, + "duration": 85, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3941,49 +3680,49 @@ "_timeout": 900000 }, { - "uuid": "49b72643-ccf3-4125-9c8a-c7353509b73e", - "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": "a7581fe8-a3ff-4560-8b39-840a4e84b076", + "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": "3d3f29bf-8464-445a-8a78-4174160c01d2", + "uuid": "ad8bcea8-bf36-4cdf-8379-8ad478c40c88", "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/v2.0-data-summary-dsdbmonth-test.js", + "file": "/test/v2.0-data-summary-dsdbmonth-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 \"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": 92, + "duration": 213, "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();", + "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": "571c6216-7841-4ef5-9970-6b5fc6524276", - "parentUUID": "3d3f29bf-8464-445a-8a78-4174160c01d2", + "uuid": "fea4651f-a34d-4949-8fad-51733ef60e8a", + "parentUUID": "ad8bcea8-bf36-4cdf-8379-8ad478c40c88", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "571c6216-7841-4ef5-9970-6b5fc6524276" + "fea4651f-a34d-4949-8fad-51733ef60e8a" ], "failures": [], "pending": [], "skipped": [], - "duration": 92, + "duration": 213, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3999,49 +3738,49 @@ "_timeout": 900000 }, { - "uuid": "db54e0a6-6a3d-415e-820c-c5127ea1d740", - "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": "96f29cb4-55f7-4043-a0cd-b76fe5a43887", + "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": "e5900ac6-2bd5-45ea-98d8-ef3b60b2b3fe", + "uuid": "7b9e050e-5c11-4999-9462-39004e9f3af6", "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-frozen-{datasetid}-test.js", + "file": "/test/v2.0-data-frozen-{datasetid}-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 \"Returned download object.\"", + "fullTitle": "tests for /v2.0/data/frozen/{datasetid} tests for get should respond 200 for \"Returned download object.\"", "timedOut": false, - "duration": 72, + "duration": 167, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/16865', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "da7f8342-e2cc-4f7f-99cc-2e72dc07b748", - "parentUUID": "e5900ac6-2bd5-45ea-98d8-ef3b60b2b3fe", + "uuid": "801a85f7-7175-472c-89ab-53aeb86fe243", + "parentUUID": "7b9e050e-5c11-4999-9462-39004e9f3af6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "da7f8342-e2cc-4f7f-99cc-2e72dc07b748" + "801a85f7-7175-472c-89ab-53aeb86fe243" ], "failures": [], "pending": [], "skipped": [], - "duration": 72, + "duration": 167, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4057,49 +3796,49 @@ "_timeout": 900000 }, { - "uuid": "bb24bf4a-b626-4cb2-ac73-d3eb361ef509", - "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": "038160bf-5b3a-4db6-ba65-670902c4abc6", + "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": "cc648f17-b69a-4941-adc3-a466c4220f33", + "uuid": "702ef4ec-e0bc-4d68-a844-bb474f431045", "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/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 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 \"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": 12196, + "duration": 75, "state": "passed", - "speed": "slow", + "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\":0,\"end\":1},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/6807', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "0cf3fd2f-8508-452e-8dbe-821b51ee0424", - "parentUUID": "cc648f17-b69a-4941-adc3-a466c4220f33", + "uuid": "1f714d69-a5ef-45b7-b6e6-49381812988c", + "parentUUID": "702ef4ec-e0bc-4d68-a844-bb474f431045", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "0cf3fd2f-8508-452e-8dbe-821b51ee0424" + "1f714d69-a5ef-45b7-b6e6-49381812988c" ], "failures": [], "pending": [], "skipped": [], - "duration": 12196, + "duration": 75, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4115,49 +3854,49 @@ "_timeout": 900000 }, { - "uuid": "e9f0259a-4b7a-4660-9ee0-3fa1f07eb560", - "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": "4b7f701e-d953-4ef1-9297-da60e02157cc", + "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": "ccbe9bc8-4bf1-4ae4-8612-3fb1416b14f8", + "uuid": "7541aaf6-3adf-4adb-a5c8-37d9ad972d1a", "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/v2.0-data-downloads-{datasetid}-test.js", + "file": "/test/v2.0-data-downloads-{datasetid}-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 \"Returned download object.\"", + "fullTitle": "tests for /v2.0/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"", "timedOut": false, - "duration": 731, + "duration": 3104, "state": "passed", - "speed": "medium", + "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites', { \n 'qs': {\"sitename\":\"dolor adipisicing pariatur\",\"database\":\"Japanese Pollen Database\",\"datasettype\":\"cladocera\",\"altmin\": 10,\"altmax\":3463,\"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\":16865,\"datasetid\":55195853,\"doi\":\"10w999224/2QO\",\"gpid\":5392,\"keyword\":\"beyond radiocarbon\",\"contactid\":6980,\"taxa\":\"aute\",\"ageyoung\":8654962,\"ageold\":22331618,\"ageof\":7914886,\"limit\":5940,\"offset\":71247476},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "e079c1af-ec07-444a-a043-72c9beef339f", - "parentUUID": "ccbe9bc8-4bf1-4ae4-8612-3fb1416b14f8", + "uuid": "9053eb0a-5c11-4c80-9587-99c0d9273ac9", + "parentUUID": "7541aaf6-3adf-4adb-a5c8-37d9ad972d1a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "e079c1af-ec07-444a-a043-72c9beef339f" + "9053eb0a-5c11-4c80-9587-99c0d9273ac9" ], "failures": [], "pending": [], "skipped": [], - "duration": 731, + "duration": 3104, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4173,49 +3912,49 @@ "_timeout": 900000 }, { - "uuid": "90682610-ba59-4de2-8454-f464e334761f", - "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": "3c184572-5d20-4f92-82eb-ae430c14a3ba", + "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": "1e356e37-c63e-4ec7-b2fc-f79e6cd054d3", + "uuid": "67391b1b-8fe5-482c-a717-be5df4ef7ee8", "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-apps-taxaindatasets-test.js", + "file": "/test/v2.0-apps-taxaindatasets-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 \"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": 116, + "duration": 5079, "state": "passed", - "speed": "fast", + "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/occurrences/5083105', { \n 'qs': {\"limit\":7347,\"offset\":43286578},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "2d5dfbd8-ced8-48d4-ad55-1b4422476a79", - "parentUUID": "1e356e37-c63e-4ec7-b2fc-f79e6cd054d3", + "uuid": "d0895b28-7240-4c23-a506-6cbcd888a4b0", + "parentUUID": "67391b1b-8fe5-482c-a717-be5df4ef7ee8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "2d5dfbd8-ced8-48d4-ad55-1b4422476a79" + "d0895b28-7240-4c23-a506-6cbcd888a4b0" ], "failures": [], "pending": [], "skipped": [], - "duration": 116, + "duration": 5079, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4231,49 +3970,49 @@ "_timeout": 900000 }, { - "uuid": "0bd140e3-6976-468a-ae32-ef4e4cdce728", - "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": "6ec0cfc2-ab20-4100-a2f2-e3027350240e", + "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": "6523623e-be58-464f-abb7-287840d20928", + "uuid": "d86aee92-501d-4764-9383-5cb6a631b1ae", "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/v2.0-data-sites-{siteid}-test.js", + "file": "/test/v2.0-data-sites-{siteid}-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 sites.\"", + "fullTitle": "tests for /v2.0/data/sites/{siteid} tests for get should respond 200 for \"An array of sites.\"", "timedOut": false, - "duration": 104, + "duration": 86, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/chronologies/10567', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "24687d7e-2426-42e9-b2e1-fe7a2833eb67", - "parentUUID": "6523623e-be58-464f-abb7-287840d20928", + "uuid": "2bb02e2e-c5cc-4fd4-8c9f-7382730a35f2", + "parentUUID": "d86aee92-501d-4764-9383-5cb6a631b1ae", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "24687d7e-2426-42e9-b2e1-fe7a2833eb67" + "2bb02e2e-c5cc-4fd4-8c9f-7382730a35f2" ], "failures": [], "pending": [], "skipped": [], - "duration": 104, + "duration": 86, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4289,145 +4028,49 @@ "_timeout": 900000 }, { - "uuid": "a9c186da-179a-4186-b246-c82ae3a6b047", - "title": "Get geopolitical data:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/geopolitical.js", - "file": "/test/geopolitical.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": 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": "d3029b2c-0dc7-42c0-9e3b-a7bdb37589e6", - "parentUUID": "a9c186da-179a-4186-b246-c82ae3a6b047", - "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": 70, - "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": "7d0c2dbc-ade4-47d5-8607-18fe58ccaad2", - "parentUUID": "a9c186da-179a-4186-b246-c82ae3a6b047", - "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": 68, - "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": "df7045b4-6740-4540-84e8-3029e1399efb", - "parentUUID": "a9c186da-179a-4186-b246-c82ae3a6b047", - "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": 69, - "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": "b1a6706c-1e67-4670-8285-1942c412cc1e", - "parentUUID": "a9c186da-179a-4186-b246-c82ae3a6b047", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "d3029b2c-0dc7-42c0-9e3b-a7bdb37589e6", - "7d0c2dbc-ade4-47d5-8607-18fe58ccaad2", - "df7045b4-6740-4540-84e8-3029e1399efb", - "b1a6706c-1e67-4670-8285-1942c412cc1e" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 283, - "root": false, - "rootEmpty": false, - "_timeout": 5000 - }, - { - "uuid": "5ac4ed0d-c64e-4393-96b3-892ca5cbef2f", - "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": "d80316be-4026-428f-9f02-4a10421776a8", + "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": "eb478fb7-7f87-4645-81cd-644611bf8286", + "uuid": "359f32d1-7830-4302-b075-13e9b943a31f", "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/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 \"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 \"contact\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/contacts tests for get should respond 200 for \"contact\"", "timedOut": false, - "duration": 72, + "duration": 68, "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\":8},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "a5b83735-5954-4443-b10f-de7d63786715", - "parentUUID": "eb478fb7-7f87-4645-81cd-644611bf8286", + "uuid": "589ad4b4-e51b-460e-a8b4-e78d9514e05e", + "parentUUID": "359f32d1-7830-4302-b075-13e9b943a31f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "a5b83735-5954-4443-b10f-de7d63786715" + "589ad4b4-e51b-460e-a8b4-e78d9514e05e" ], "failures": [], "pending": [], "skipped": [], - "duration": 72, + "duration": 68, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4443,316 +4086,377 @@ "_timeout": 900000 }, { - "uuid": "a11a1880-23ce-49a1-805b-00fb631b1f26", - "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": "55440428-d2d6-434e-95f6-958100aadcf4", + "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": [ { - "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": 1, - "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": "f2480f8b-c7e1-464c-946c-8c23d2784f30", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", - "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": "b1efed38-166a-4396-aa8e-6bf7f5dc7da0", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", - "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": "230c640d-aaa4-4154-a1b0-3f9c0e9716a2", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", - "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": "c2e16189-3204-4bf1-a5c8-5b7cd38bb48f", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", - "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": "4df233c8-3d40-41c5-bcfa-d1dfc71e410e", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", - "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": "e71866d1-be34-404c-b877-28cbdc268d1d", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", - "isHook": false, - "skipped": false - }, - { - "title": "Occurrences filter by age:", - "fullTitle": "Get occurrence data any number of ways: Occurrences filter by age:", + "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": 0, + "duration": 109, "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();", + "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": "35698b2b-efe6-4754-ad87-dbceeeaa1f6a", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", + "uuid": "0f01e06a-2df0-4d55-8467-351a4f8ba523", + "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", "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:", + "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": 0, + "duration": 113, "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();", + "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": "5edf9e82-7f2e-4221-9645-57160fc7597b", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", + "uuid": "848cd244-f1c4-46ff-946d-26162322ced5", + "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", "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:", + "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": 0, + "duration": 88, "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();", + "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": "5477fa9e-7f16-454a-a597-6a0d701efa44", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", + "uuid": "1422cc5a-72d0-4fb3-ac97-974e6e2bd57a", + "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", "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:", + "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": 0, + "duration": 137, "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();", + "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": "fed5eeb9-b947-4c8f-86cc-b385224c0f60", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", + "uuid": "dc8fd38d-4875-47f0-bffc-01119c5e6e10", + "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", "isHook": false, "skipped": false }, { - "title": "Get occurrences returns lower taxa:", - "fullTitle": "Get occurrence data any number of ways: Get occurrences returns lower taxa:", + "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": 0, + "duration": 7, "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();", + "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": "82f45421-cb17-4986-b23b-3f51ea1fbd97", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", + "uuid": "4c370fc5-e434-4000-88b6-261c3189f53b", + "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", "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:", + "title": "Limits work:", + "fullTitle": "Get datasets any number of ways: Limits work:", "timedOut": false, - "duration": 0, + "duration": 264, "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();", + "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": "78c338fd-080f-49c6-8596-2872f9bbfff9", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", + "uuid": "f4d4d87e-a24b-4262-a718-b57c4246c964", + "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", "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:", + "title": "Works with age validation:", + "fullTitle": "Get datasets any number of ways: Works with age validation:", "timedOut": false, "duration": 0, - "state": "passed", - "speed": "fast", - "pass": true, + "state": "pending", + "speed": null, + "pass": false, "fail": false, - "pending": false, + "pending": true, "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();", + "code": "", "err": {}, - "uuid": "77944c35-e347-465e-ad88-aa85d2098f7f", - "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26", + "uuid": "ce056626-2665-4a67-9456-2f12e297a070", + "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "f2480f8b-c7e1-464c-946c-8c23d2784f30", - "b1efed38-166a-4396-aa8e-6bf7f5dc7da0", - "230c640d-aaa4-4154-a1b0-3f9c0e9716a2", - "c2e16189-3204-4bf1-a5c8-5b7cd38bb48f", - "4df233c8-3d40-41c5-bcfa-d1dfc71e410e", - "e71866d1-be34-404c-b877-28cbdc268d1d", - "35698b2b-efe6-4754-ad87-dbceeeaa1f6a", - "5edf9e82-7f2e-4221-9645-57160fc7597b", - "5477fa9e-7f16-454a-a597-6a0d701efa44", - "fed5eeb9-b947-4c8f-86cc-b385224c0f60", - "82f45421-cb17-4986-b23b-3f51ea1fbd97", - "78c338fd-080f-49c6-8596-2872f9bbfff9", - "77944c35-e347-465e-ad88-aa85d2098f7f" + "0f01e06a-2df0-4d55-8467-351a4f8ba523", + "848cd244-f1c4-46ff-946d-26162322ced5", + "1422cc5a-72d0-4fb3-ac97-974e6e2bd57a", + "dc8fd38d-4875-47f0-bffc-01119c5e6e10", + "4c370fc5-e434-4000-88b6-261c3189f53b", + "f4d4d87e-a24b-4262-a718-b57c4246c964" ], "failures": [], + "pending": [ + "ce056626-2665-4a67-9456-2f12e297a070" + ], + "skipped": [], + "duration": 718, + "root": false, + "rootEmpty": false, + "_timeout": 50000 + }, + { + "uuid": "857acbca-5d7a-4eab-8aa8-dd324f5a05e3", + "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": "cc0ace43-8ad3-4801-8f84-a5b9c7f525b5", + "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", + "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.\"", + "timedOut": false, + "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/datasets/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "62a8fa6f-5bac-4a1a-a6c5-27ac7e400fd4", + "parentUUID": "cc0ace43-8ad3-4801-8f84-a5b9c7f525b5", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "62a8fa6f-5bac-4a1a-a6c5-27ac7e400fd4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 107, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 30000 + "_timeout": 900000 }, { - "uuid": "5d0f34c6-6bf8-4f53-a7d8-31fec51e020a", - "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": "b4620248-9856-4068-9cf6-f8210af07b4f", + "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": "d5b678a1-14ba-4659-9fda-1db826ec0e13", + "uuid": "9877327e-653b-4e6a-a306-2b7ccfeb70eb", "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-data-datasets-db-test.js", + "file": "/test/v2.0-data-datasets-db-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 \"Datasets\"", + "fullTitle": "tests for /v2.0/data/datasets/db tests for get should respond 200 for \"Datasets\"", "timedOut": false, - "duration": 74, + "duration": 756, + "state": "passed", + "speed": "medium", + "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\":\"Neotoma Testate Amoebae Database\"},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "c5e8590b-f652-4da7-b545-dc8d89e74094", + "parentUUID": "9877327e-653b-4e6a-a306-2b7ccfeb70eb", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c5e8590b-f652-4da7-b545-dc8d89e74094" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 756, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "4fbe1a3f-8b93-459a-bb1c-caed281102b1", + "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": "6c7ecff1-ab27-463d-93bd-1dbdc0fe1c93", + "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", + "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.\"", + "timedOut": false, + "duration": 649, + "state": "passed", + "speed": "medium", + "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": {}, + "uuid": "0d833e17-c3bb-4a60-9a33-e030c60290bd", + "parentUUID": "6c7ecff1-ab27-463d-93bd-1dbdc0fe1c93", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "0d833e17-c3bb-4a60-9a33-e030c60290bd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 649, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "25754640-41e6-4714-9562-2ff50b965d46", + "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": "8711b4eb-9484-4e28-9632-dbace92c9649", + "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": 158, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/95602233/taxa', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "b61ad6fc-e26f-4183-9bac-96627746dd97", - "parentUUID": "d5b678a1-14ba-4659-9fda-1db826ec0e13", + "uuid": "6e62b170-8d5a-4f8c-94ac-5ec030e4e967", + "parentUUID": "8711b4eb-9484-4e28-9632-dbace92c9649", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "b61ad6fc-e26f-4183-9bac-96627746dd97" + "6e62b170-8d5a-4f8c-94ac-5ec030e4e967" ], "failures": [], "pending": [], "skipped": [], - "duration": 74, + "duration": 158, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4768,49 +4472,223 @@ "_timeout": 900000 }, { - "uuid": "27b7c600-fb43-445f-9ce9-0ba4e594c934", - "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": "50f8bd63-a09d-4fa1-8dde-12ac7b8337b9", + "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": "9d1b78bc-51ea-44f5-8926-fd682359c22b", + "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", + "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.\"", + "timedOut": false, + "duration": 103, + "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": {}, + "uuid": "7a970651-e0da-45b4-81f6-2716fb07412c", + "parentUUID": "9d1b78bc-51ea-44f5-8926-fd682359c22b", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "7a970651-e0da-45b4-81f6-2716fb07412c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 103, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "9c401a15-4259-4ece-a582-ae8d77ccb155", + "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": "10335a79-1e64-4412-89c0-08cca7654583", + "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", + "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.\"", + "timedOut": false, + "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/geopoliticalunits/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "54043a7b-9085-4634-bf5b-a4e32f62cf05", + "parentUUID": "10335a79-1e64-4412-89c0-08cca7654583", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "54043a7b-9085-4634-bf5b-a4e32f62cf05" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 70, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "37a9145f-5c82-483e-a462-c14903fb2481", + "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": "c6e42770-795e-4f0e-9842-1d64b7d7f95d", + "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", + "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.\"", + "timedOut": false, + "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/geopoliticalunits', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "b77f76d3-ec43-4187-8249-46ad1a23e385", + "parentUUID": "c6e42770-795e-4f0e-9842-1d64b7d7f95d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "b77f76d3-ec43-4187-8249-46ad1a23e385" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 76, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "5be2133c-9a01-4e5f-a092-60803070def2", + "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": "2016697a-8133-4737-af6c-76ddea40419b", + "uuid": "91ce5b36-4684-4640-80bf-450dffd1c9b8", "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/v1.5-apps-collectionTypes-test.js", + "file": "/test/v1.5-apps-collectionTypes-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 \"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": 79, + "duration": 71, "state": "passed", "speed": "fast", "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();", + "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": "be6cb2b1-c07a-4ab9-befa-782789c40d20", - "parentUUID": "2016697a-8133-4737-af6c-76ddea40419b", + "uuid": "ab21d27b-8fa6-4d3e-a81a-034102eb5635", + "parentUUID": "91ce5b36-4684-4640-80bf-450dffd1c9b8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "be6cb2b1-c07a-4ab9-befa-782789c40d20" + "ab21d27b-8fa6-4d3e-a81a-034102eb5635" ], "failures": [], "pending": [], "skipped": [], - "duration": 79, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4826,256 +4704,197 @@ "_timeout": 900000 }, { - "uuid": "61fbe6bb-e0df-40f2-98a8-1ba6498b0c49", - "title": "Get Neotoma data with geoJSON extents:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/spatial.js", - "file": "/test/spatial.js", + "uuid": "2a18f791-68e4-48bc-8e68-d340342a73e9", + "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": "Get occurrence data using a simple geoJSON:", - "fullTitle": "Get Neotoma data with geoJSON extents: Get occurrence data using a simple geoJSON:", + "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": 429, + "duration": 79, "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);", + "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": "62b72f5a-d30a-45f8-ac88-35361a6e1f5e", - "parentUUID": "61fbe6bb-e0df-40f2-98a8-1ba6498b0c49", + "uuid": "11363694-004f-4088-93e9-899fa613bbea", + "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", "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:", + "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": 10471, + "duration": 79, "state": "passed", - "speed": "slow", + "speed": "fast", "pass": true, "fail": false, "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);", + "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": "d01f9b4d-1a17-4e7e-826a-1bfe34141195", - "parentUUID": "61fbe6bb-e0df-40f2-98a8-1ba6498b0c49", + "uuid": "ccd66c47-666a-4091-8677-7d349dae3879", + "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", "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:", + "title": "Contact queries should be case insensitive:", + "fullTitle": "Get contact data: Contact queries should be case insensitive:", "timedOut": false, - "duration": 5300, + "duration": 74, "state": "passed", - "speed": "slow", + "speed": "fast", "pass": true, "fail": false, "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);", + "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": "588d607d-bff8-4496-a95a-5968c2bdfd2b", - "parentUUID": "61fbe6bb-e0df-40f2-98a8-1ba6498b0c49", + "uuid": "5d599960-f118-4820-8961-364ba359ab6f", + "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", "isHook": false, "skipped": false - } - ], - "suites": [], - "passes": [ - "62b72f5a-d30a-45f8-ac88-35361a6e1f5e", - "d01f9b4d-1a17-4e7e-826a-1bfe34141195", - "588d607d-bff8-4496-a95a-5968c2bdfd2b" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 16200, - "root": false, - "rootEmpty": false, - "_timeout": 15000 - }, - { - "uuid": "8a57c85b-1bbb-4a8a-80ec-38d5cafe425e", - "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:", + "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": 248, + "duration": 75, "state": "passed", "speed": "fast", "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);", + "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": "22de43f1-da0c-4eaf-904c-877a1800cb58", - "parentUUID": "8a57c85b-1bbb-4a8a-80ec-38d5cafe425e", + "uuid": "ac12a2dd-1db1-43a0-a15c-9445fdd680bc", + "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", "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:", + "title": "A single contact (12) should be returned.", + "fullTitle": "Get contact data: A single contact (12) should be returned.", "timedOut": false, - "duration": 232, + "duration": 71, "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);", + "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": "5e1d6bbd-31e2-4e24-941c-32a406181834", - "parentUUID": "8a57c85b-1bbb-4a8a-80ec-38d5cafe425e", + "uuid": "be21ce57-f9ad-4378-a18f-80cba3a0b164", + "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", "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:", + "title": "All contacts from datasets should be returned.", + "fullTitle": "Get contact data: All contacts from datasets should be returned.", "timedOut": false, - "duration": 203, + "duration": 71, "state": "passed", "speed": "fast", "pass": true, "fail": false, "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);", + "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": "62deabcc-6f9a-4124-8dae-abc407f4243e", - "parentUUID": "8a57c85b-1bbb-4a8a-80ec-38d5cafe425e", + "uuid": "75dacb83-d3ab-4715-8dce-bd60acf6b0c7", + "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", "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:", + "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": 169, + "duration": 73, "state": "passed", "speed": "fast", "pass": true, "fail": false, "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);", + "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": "8908f2f4-21c0-4fe8-85d8-7d00389b8a9c", + "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", + "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": 74, + "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": "783c24e6-1406-45ca-bc56-670eea017272", - "parentUUID": "8a57c85b-1bbb-4a8a-80ec-38d5cafe425e", + "uuid": "42dae9ba-4d77-413f-8d1f-a385d7caff11", + "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "22de43f1-da0c-4eaf-904c-877a1800cb58", - "5e1d6bbd-31e2-4e24-941c-32a406181834", - "62deabcc-6f9a-4124-8dae-abc407f4243e", - "783c24e6-1406-45ca-bc56-670eea017272" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 852, - "root": false, - "rootEmpty": false, - "_timeout": 15000 - }, - { - "uuid": "764176b5-13b8-4e53-b64d-ec763bd4a229", - "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": "6ca5f765-2081-43b9-85dd-67a0b7dcf509", - "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", - "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.\"", - "timedOut": false, - "duration": 100, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/speleothems/24472', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": {}, - "uuid": "43185b10-c458-40ef-9501-042e145e8714", - "parentUUID": "6ca5f765-2081-43b9-85dd-67a0b7dcf509", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "43185b10-c458-40ef-9501-042e145e8714" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 100, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } + "11363694-004f-4088-93e9-899fa613bbea", + "ccd66c47-666a-4091-8677-7d349dae3879", + "5d599960-f118-4820-8961-364ba359ab6f", + "ac12a2dd-1db1-43a0-a15c-9445fdd680bc", + "be21ce57-f9ad-4378-a18f-80cba3a0b164", + "75dacb83-d3ab-4715-8dce-bd60acf6b0c7", + "8908f2f4-21c0-4fe8-85d8-7d00389b8a9c", + "42dae9ba-4d77-413f-8d1f-a385d7caff11" ], - "passes": [], "failures": [], "pending": [], "skipped": [], - "duration": 0, + "duration": 596, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 5000 }, { - "uuid": "2fa47f59-3548-4c04-a9e3-5166df0d8825", - "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": "88acc993-19fa-4e62-bb75-302449778aa7", + "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": "d94f817a-c3da-4e1d-83a2-b8a95bb010a5", + "uuid": "735f4240-aa7e-49ab-aa7d-4d1df7f57240", "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/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/collectiontypes 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": 71, "state": "passed", @@ -5084,17 +4903,17 @@ "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();", + "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": "53ed165e-6035-4a33-a591-60c9dfdf062a", - "parentUUID": "d94f817a-c3da-4e1d-83a2-b8a95bb010a5", + "uuid": "4cc320ce-65e8-4fb0-a416-9f752c6839ce", + "parentUUID": "735f4240-aa7e-49ab-aa7d-4d1df7f57240", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "53ed165e-6035-4a33-a591-60c9dfdf062a" + "4cc320ce-65e8-4fb0-a416-9f752c6839ce" ], "failures": [], "pending": [], @@ -5115,107 +4934,49 @@ "_timeout": 900000 }, { - "uuid": "2bdf11ac-2235-4fdd-8758-75fc6b869a9b", - "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": "1182f56f-8b3f-4a7e-b491-1f062efcb46a", + "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": [], "suites": [ { - "uuid": "4b936a76-0a7b-4f48-ab99-5198d7d3c447", + "uuid": "dea8c844-f6db-4848-81c0-da1f087f8b22", "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", + "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 \"An array of datasets.\"", - "fullTitle": "tests for /v1.5/data/datasets/{datasetid} tests for get should respond 200 for \"An array of datasets.\"", + "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": 3195, + "duration": 2362, "state": "passed", "speed": "slow", "pass": true, "fail": false, "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": {}, - "uuid": "a9cd21ee-9b10-4cb1-8b1e-9fbdcd131c94", - "parentUUID": "4b936a76-0a7b-4f48-ab99-5198d7d3c447", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "a9cd21ee-9b10-4cb1-8b1e-9fbdcd131c94" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 3195, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "2b8c20ef-8869-46cf-9d8d-1b4272dac03c", - "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": "6dd90bd5-0d42-4490-9173-66168cb7ff85", - "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": 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/812/contacts', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "2a0f4602-d332-4017-ba1c-f41e114af84a", - "parentUUID": "6dd90bd5-0d42-4490-9173-66168cb7ff85", + "uuid": "abd19b46-ee90-41c7-bc3b-c13896f070b5", + "parentUUID": "dea8c844-f6db-4848-81c0-da1f087f8b22", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "2a0f4602-d332-4017-ba1c-f41e114af84a" + "abd19b46-ee90-41c7-bc3b-c13896f070b5" ], "failures": [], "pending": [], "skipped": [], - "duration": 76, + "duration": 2362, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5231,49 +4992,49 @@ "_timeout": 900000 }, { - "uuid": "44172868-2915-42ba-bbc1-7e9e152c4b1f", - "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": "ee7f2a64-dc71-4e31-a4f7-375243787361", + "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": "71b7b8d5-e1e7-49e6-9d79-251ca456e2bd", - "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", + "uuid": "b6a2758c-630b-47b7-a7d3-e1a653ef1869", + "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", "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.\"", + "fullTitle": "tests for /v1.5/data/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"", "timedOut": false, - "duration": 71, + "duration": 96, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/39598/geopoliticalunits', { \n 'qs': {\"limit\":3406,\"offset\":66171112},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": {}, - "uuid": "d4c70c1e-91b9-418c-a5b2-132a7819ac20", - "parentUUID": "71b7b8d5-e1e7-49e6-9d79-251ca456e2bd", + "uuid": "4d49085e-a6b6-499b-8bcc-736dac42a3a7", + "parentUUID": "b6a2758c-630b-47b7-a7d3-e1a653ef1869", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "d4c70c1e-91b9-418c-a5b2-132a7819ac20" + "4d49085e-a6b6-499b-8bcc-736dac42a3a7" ], "failures": [], "pending": [], "skipped": [], - "duration": 71, + "duration": 96, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5289,88 +5050,49 @@ "_timeout": 900000 }, { - "uuid": "998f7e5a-48e1-4674-9387-c9e9fa7241d6", - "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": 3, - "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": "cea01c3b-f0c4-46ac-a633-03115d1b5eb0", - "parentUUID": "998f7e5a-48e1-4674-9387-c9e9fa7241d6", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "cea01c3b-f0c4-46ac-a633-03115d1b5eb0" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 3, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "66e44853-aa7c-49f3-adff-6da32a49e053", - "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": "27e8a53a-179f-4087-abba-b3e8cd05f07d", + "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": "79bec42c-f89b-4e3e-8b59-48d55e3fa3c3", + "uuid": "c35327e8-96f9-434f-886f-50b9a2cd3e83", "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}-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/contacts tests for get 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": 76, + "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/contacts', { \n 'qs': {\"contactid\":854,\"familyname\":\"fK Ft'nX\",\"contactname\":\"NZFb\",\"contactstatus\":\"deceased\",\"limit\":630,\"offset\":51256476},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "8eae134e-3e01-4a06-bf45-780631083039", - "parentUUID": "79bec42c-f89b-4e3e-8b59-48d55e3fa3c3", + "uuid": "eb97079e-cab6-43de-bf02-ce1d8f478b1c", + "parentUUID": "c35327e8-96f9-434f-886f-50b9a2cd3e83", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "8eae134e-3e01-4a06-bf45-780631083039" + "eb97079e-cab6-43de-bf02-ce1d8f478b1c" ], "failures": [], "pending": [], "skipped": [], - "duration": 76, + "duration": 73, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5386,49 +5108,49 @@ "_timeout": 900000 }, { - "uuid": "1c00bc66-2e28-4123-a1d5-32f91fbce33a", - "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": "e2c64bc3-e640-4afd-bd48-3c871d46b30d", + "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": "f5361504-7e0f-49e2-9231-ea7bceb024a6", + "uuid": "fc1f2971-e41e-4bae-8d56-a72075d16853", "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", + "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 \"Returned table.\"", - "fullTitle": "tests for /v2.0/data/dbtables tests for get should respond 200 for \"Returned table.\"", + "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": 81, + "duration": 86, "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\":\"labore quis veniam laborum Ut\",\"count\":false,\"limit\":154,\"offset\":77061579},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/faunal', { \n 'qs': {\"sciname\":\"reprehenderit aute fugiat\",\"proj\": 4326,\"prec\": 1000},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "2eff9a81-31ac-420b-b37a-f0afec107776", - "parentUUID": "f5361504-7e0f-49e2-9231-ea7bceb024a6", + "uuid": "532492d3-7321-42ee-a0a4-0ad29bd7e109", + "parentUUID": "fc1f2971-e41e-4bae-8d56-a72075d16853", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "2eff9a81-31ac-420b-b37a-f0afec107776" + "532492d3-7321-42ee-a0a4-0ad29bd7e109" ], "failures": [], "pending": [], "skipped": [], - "duration": 81, + "duration": 86, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5444,203 +5166,316 @@ "_timeout": 900000 }, { - "uuid": "2e5628ee-9fad-41a1-beeb-f9a0cee66320", - "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": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "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": [ { - "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:", + "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": 110, + "duration": 0, "state": "passed", "speed": "fast", "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);", + "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": "17e05c9f-e433-442c-81f4-4a6cf8cba8b0", - "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320", + "uuid": "4d39fa07-84df-4823-ab18-8987f37f0b71", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", "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:", + "title": "Get the Flyover test call:", + "fullTitle": "Get occurrence data any number of ways: Get the Flyover test call:", "timedOut": false, - "duration": 110, + "duration": 0, "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'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['siteid'] === 12;\n })\n .expect(200, done);", + "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": "568f3da6-46b5-4ed7-903b-79debe5058e8", - "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320", + "uuid": "0a4f45e0-4abb-4c0c-9083-b6345e1e926e", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", "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:", + "title": "Failing Canis test works:", + "fullTitle": "Get occurrence data any number of ways: Failing Canis test works:", "timedOut": false, - "duration": 90, + "duration": 0, "state": "passed", "speed": "fast", "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);", + "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": "46dab848-619e-4a62-8af5-1ec3cbb5d2eb", - "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320", + "uuid": "721088a7-3c18-4da8-a53e-6de42b2bd877", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", "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:", + "title": "Get occurrence by taxon:", + "fullTitle": "Get occurrence data any number of ways: Get occurrence by taxon:", "timedOut": false, - "duration": 97, + "duration": 0, "state": "passed", "speed": "fast", "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);", + "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": "09c7409a-85bc-4af2-ad8f-5ecea2c5cc10", - "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320", + "uuid": "039742f2-635f-45a4-8eff-62d23bebc195", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", "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:", + "title": "Break occurrences by flipping altitudes:", + "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping altitudes:", "timedOut": false, - "duration": 4, + "duration": 1, "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);", + "code": "api.get('v2.0/data/occurrences/?altmax=3000&altmin=5000')\n .set('Accept', 'application/json')\n .expect(500);\ndone();", "err": {}, - "uuid": "5469495d-a8f4-4228-a8e4-6f97beeabab7", - "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320", + "uuid": "c763574f-2931-4286-8fb1-78094af31d4d", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", "isHook": false, "skipped": false }, { - "title": "Limits work:", - "fullTitle": "Get datasets any number of ways: Limits work:", + "title": "Break occurrences by flipping ages:", + "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping ages:", "timedOut": false, - "duration": 515, + "duration": 0, "state": "passed", - "speed": "medium", + "speed": "fast", "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);", + "code": "api.get('v2.0/data/occurrences/?ageyoung=5000&ageold=3000')\n .set('Accept', 'application/json')\n .expect(500);\ndone();", "err": {}, - "uuid": "ae8ece47-35bd-4274-94d3-d0522daed2ab", - "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320", + "uuid": "1602c502-5ee7-4f22-94c9-d32fcda08f4a", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", "isHook": false, "skipped": false }, { - "title": "Works with age validation:", - "fullTitle": "Get datasets any number of ways: Works with age validation:", + "title": "Occurrences filter by age:", + "fullTitle": "Get occurrence data any number of ways: Occurrences filter by age:", + "timedOut": false, + "duration": 1, + "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": "fc67136a-dc82-4529-9733-f45c3e658f6b", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "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": "pending", - "speed": null, - "pass": false, + "state": "passed", + "speed": "fast", + "pass": true, "fail": false, - "pending": true, + "pending": false, "context": null, - "code": "", + "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": "e9eea799-781f-457c-b9be-1eea27ebf1ba", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "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": "a25227ae-4313-4335-ae02-137d82fe80d1", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "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": "2e848638-3c98-4340-be0e-1244b4f0273f", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "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": "ef1172ef-41a1-4097-a3c8-c208adf86008", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "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": "96742b30-5b3a-4a86-ac17-29042f318a0d", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "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": "bd89f4ae-2506-4563-97d2-91b7cf57d03b", - "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320", + "uuid": "614f2cda-fa4c-4419-9ebd-7db4f0a4ff00", + "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "17e05c9f-e433-442c-81f4-4a6cf8cba8b0", - "568f3da6-46b5-4ed7-903b-79debe5058e8", - "46dab848-619e-4a62-8af5-1ec3cbb5d2eb", - "09c7409a-85bc-4af2-ad8f-5ecea2c5cc10", - "5469495d-a8f4-4228-a8e4-6f97beeabab7", - "ae8ece47-35bd-4274-94d3-d0522daed2ab" + "4d39fa07-84df-4823-ab18-8987f37f0b71", + "0a4f45e0-4abb-4c0c-9083-b6345e1e926e", + "721088a7-3c18-4da8-a53e-6de42b2bd877", + "039742f2-635f-45a4-8eff-62d23bebc195", + "c763574f-2931-4286-8fb1-78094af31d4d", + "1602c502-5ee7-4f22-94c9-d32fcda08f4a", + "fc67136a-dc82-4529-9733-f45c3e658f6b", + "e9eea799-781f-457c-b9be-1eea27ebf1ba", + "a25227ae-4313-4335-ae02-137d82fe80d1", + "2e848638-3c98-4340-be0e-1244b4f0273f", + "ef1172ef-41a1-4097-a3c8-c208adf86008", + "96742b30-5b3a-4a86-ac17-29042f318a0d", + "614f2cda-fa4c-4419-9ebd-7db4f0a4ff00" ], "failures": [], - "pending": [ - "bd89f4ae-2506-4563-97d2-91b7cf57d03b" - ], + "pending": [], "skipped": [], - "duration": 926, + "duration": 2, "root": false, "rootEmpty": false, - "_timeout": 50000 + "_timeout": 30000 }, { - "uuid": "2f86c5d0-8623-4562-bb29-be9167967c40", - "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": "de028db3-d88d-4d40-8cd2-f8271a5fe98b", + "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": "8c65cf9b-c3d7-49d1-9bc5-0755b9c8628d", + "uuid": "16718e5d-c479-4967-b5ca-0e18f1d74546", "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-datasets-{datasetid}-doi-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-doi-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 \"DOI\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/doi tests for get should respond 200 for \"DOI\"", "timedOut": false, - "duration": 190, + "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/summary/dsdbmonth', { \n 'qs': {\"start\":0,\"end\":1},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "28349c36-22a7-4b4b-841e-f6d1a6c46aa5", - "parentUUID": "8c65cf9b-c3d7-49d1-9bc5-0755b9c8628d", + "uuid": "50ad85dd-70d8-40f5-8d48-d93d3bc70929", + "parentUUID": "16718e5d-c479-4967-b5ca-0e18f1d74546", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "28349c36-22a7-4b4b-841e-f6d1a6c46aa5" + "50ad85dd-70d8-40f5-8d48-d93d3bc70929" ], "failures": [], "pending": [], "skipped": [], - "duration": 190, + "duration": 69, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5656,7 +5491,7 @@ "_timeout": 900000 }, { - "uuid": "4e0ad04b-8661-47e5-85e5-1ecf5a7faa1e", + "uuid": "a102f653-28f8-4135-9774-2da91d22e10b", "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", @@ -5665,7 +5500,7 @@ "tests": [], "suites": [ { - "uuid": "563f0e0e-58f2-4ab1-b5c8-32c981f121af", + "uuid": "7b574bf1-3297-4798-8847-33b4796c0361", "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", @@ -5676,29 +5511,29 @@ "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": 73, + "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/geopoliticalunits', { \n 'qs': {\"gpid\":5392,\"gpname\":\"Canada\",\"rank\":1,\"lower\":false},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/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": "931cdffb-c01e-45c8-9057-deb42dfac428", - "parentUUID": "563f0e0e-58f2-4ab1-b5c8-32c981f121af", + "uuid": "bf219868-ff52-4a43-8111-2c1fd6abccd0", + "parentUUID": "7b574bf1-3297-4798-8847-33b4796c0361", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "931cdffb-c01e-45c8-9057-deb42dfac428" + "bf219868-ff52-4a43-8111-2c1fd6abccd0" ], "failures": [], "pending": [], "skipped": [], - "duration": 73, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5714,49 +5549,49 @@ "_timeout": 900000 }, { - "uuid": "9d2e47c0-3cc2-463c-9e12-8e667f28b45b", - "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": "49f685ef-c647-44cc-b056-1c91d054470e", + "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": "01c097e5-2f7d-413f-906f-b1d7dfc9f732", + "uuid": "6c8abf21-6151-41b3-af7f-e6016cae2ae3", "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-data-contacts-test.js", + "file": "/test/v2.0-data-contacts-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\"", + "fullTitle": "tests for /v2.0/data/contacts tests for get should respond 200 for \"contact\"", "timedOut": false, - "duration": 69, + "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/datasets/59820373/contacts', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts', { \n 'qs': {\"contactid\":13367,\"familyname\":\"LqNGsFC\",\"contactname\":\"B\",\"contactstatus\":\"active\",\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "47b846a4-6f69-4564-821b-e033a8eab789", - "parentUUID": "01c097e5-2f7d-413f-906f-b1d7dfc9f732", + "uuid": "679cd693-a5f5-49ce-a9af-360a67d1cdc9", + "parentUUID": "6c8abf21-6151-41b3-af7f-e6016cae2ae3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "47b846a4-6f69-4564-821b-e033a8eab789" + "679cd693-a5f5-49ce-a9af-360a67d1cdc9" ], "failures": [], "pending": [], "skipped": [], - "duration": 69, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5772,110 +5607,280 @@ "_timeout": 900000 }, { - "uuid": "4467bb3f-1c31-4d7a-9f65-00b08a0927dc", - "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": "53cbc957-a080-4e83-a904-e460471ea59d", + "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": "700cbb6c-5d0d-41c3-ac40-b503b739cafd", + "uuid": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", "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/explorerCalls.js", + "file": "/test/explorerCalls.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 TaxaGroupTypes", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaxaGroupTypes", "timedOut": false, - "duration": 73, + "duration": 116, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/data/sites/4070', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "const response = request('get', appServicesLocation + '/TaxaGroupTypes', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "98d63971-e19c-4785-be80-67d7b552ee5e", - "parentUUID": "700cbb6c-5d0d-41c3-ac40-b503b739cafd", + "uuid": "762a30c2-f4c2-4efe-967a-497dc18e3b53", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", "isHook": false, "skipped": false - } - ], - "suites": [], - "passes": [ - "98d63971-e19c-4785-be80-67d7b552ee5e" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 73, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "4e536344-4763-4c1f-9253-634b6ff5833f", - "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": "22682868-d17a-4393-8a10-e3b317c7469f", - "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", - "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 TaphonomyTypes", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaphonomyTypes", "timedOut": false, - "duration": 96, + "duration": 15, + "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": "c870312f-fb6c-4aeb-8f3f-31a952777955", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 67, + "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": "876d2f41-6293-42bc-af2d-9b2c67e13b89", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 69, + "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": "b3ee48da-a572-49bf-997f-52c37be169dd", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 3231, + "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": "c10ab675-51f9-4183-99d6-137a2fc3c6fa", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 66, + "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": "0093e034-332b-4838-ab03-d33b864befa5", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 66, + "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": "ad82673c-11d6-48e8-bbb2-bf2d45d9cfca", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 436, + "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": "7ce81a55-00ae-4f4d-9bd2-4c5f6c4f8e7d", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 5, + "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": "369d4c6d-76f9-4f06-8557-eac774fbd1b7", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 2, + "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": "5e655abf-cced-48b8-bbbc-a5e5ed6d8f62", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 88, + "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": "3e468037-3f0c-403f-86fc-21051a0cce5d", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 140, + "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": "3adb3f85-a81c-44b1-b739-c882bc49cdfc", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "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": 5, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/51049927', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "7094ac4e-3d8e-4cfb-9791-366949070696", - "parentUUID": "22682868-d17a-4393-8a10-e3b317c7469f", + "uuid": "ff70feb2-9c67-4f2a-9717-8f7bdd90f5ce", + "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "7094ac4e-3d8e-4cfb-9791-366949070696" + "762a30c2-f4c2-4efe-967a-497dc18e3b53", + "c870312f-fb6c-4aeb-8f3f-31a952777955", + "876d2f41-6293-42bc-af2d-9b2c67e13b89", + "b3ee48da-a572-49bf-997f-52c37be169dd", + "c10ab675-51f9-4183-99d6-137a2fc3c6fa", + "0093e034-332b-4838-ab03-d33b864befa5", + "ad82673c-11d6-48e8-bbb2-bf2d45d9cfca", + "7ce81a55-00ae-4f4d-9bd2-4c5f6c4f8e7d", + "369d4c6d-76f9-4f06-8557-eac774fbd1b7", + "5e655abf-cced-48b8-bbbc-a5e5ed6d8f62", + "3e468037-3f0c-403f-86fc-21051a0cce5d", + "3adb3f85-a81c-44b1-b739-c882bc49cdfc", + "ff70feb2-9c67-4f2a-9717-8f7bdd90f5ce" ], "failures": [], "pending": [], "skipped": [], - "duration": 96, + "duration": 4306, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 12000 } ], "passes": [], @@ -5885,7 +5890,7 @@ "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 12000 } ], "passes": [], diff --git a/test/v1.5-data-contacts-{contactid}-test.js b/test/v1.5-data-contacts-{contactid}-test.js index 7973f95..1d548d3 100644 --- a/test/v1.5-data-contacts-{contactid}-test.js +++ b/test/v1.5-data-contacts-{contactid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v1.5/data/contacts/{contactid}', function() { describe('tests for get', function() { it('should respond 200 for "Contact"', function() { - var response = request('get', 'http://localhost:3001/v1.5/data/contacts/-43687448', { + var response = request('get', 'http://localhost:3001/v1.5/data/contacts/500', { 'time': true }); diff --git a/test/v1.5-data-geopoliticalunits-test.js b/test/v1.5-data-geopoliticalunits-test.js index 189aee3..33b7906 100644 --- a/test/v1.5-data-geopoliticalunits-test.js +++ b/test/v1.5-data-geopoliticalunits-test.js @@ -8,7 +8,7 @@ describe('tests for /v1.5/data/geopoliticalunits', function() { describe('tests for get', function() { it('should respond 200 for "An array of geopolitical units."', function() { var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits', { - 'qs': {"gpid":5392,"gpname":"Canada","rank":4,"lower":false}, + 'qs': {"gpid":5392,"gpname":"Canada","rank":2,"lower":false}, 'time': true }); diff --git a/test/v1.5-data-geopoliticalunits-{gpid}-test.js b/test/v1.5-data-geopoliticalunits-{gpid}-test.js index bfeba1b..e70c08a 100644 --- a/test/v1.5-data-geopoliticalunits-{gpid}-test.js +++ b/test/v1.5-data-geopoliticalunits-{gpid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v1.5/data/geopoliticalunits/{gpid}', function() { describe('tests for get', function() { it('should respond 200 for "An array of geopolitical units."', function() { - var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/7324', { + var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/6807', { 'time': true }); diff --git a/test/v2.0-apps-constdb-datasetages-test.js b/test/v2.0-apps-constdb-datasetages-test.js index 1e85303..39374de 100644 --- a/test/v2.0-apps-constdb-datasetages-test.js +++ b/test/v2.0-apps-constdb-datasetages-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasetages', function() { describe('tests for get', function() { it('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. "', function() { var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetages', { - 'qs': {"dbid":7}, + 'qs': {"dbid":3}, 'time': true }); diff --git a/test/v2.0-apps-constdb-datasets-test.js b/test/v2.0-apps-constdb-datasets-test.js index 47a47f6..adfa6e9 100644 --- a/test/v2.0-apps-constdb-datasets-test.js +++ b/test/v2.0-apps-constdb-datasets-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasets', function() { describe('tests for get', function() { it('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. "', function() { var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasets', { - 'qs': {"dbid":7}, + 'qs': {"dbid":8}, 'time': true }); diff --git a/test/v2.0-apps-constdb-datasetuploads-test.js b/test/v2.0-apps-constdb-datasetuploads-test.js index a3379d6..1201233 100644 --- a/test/v2.0-apps-constdb-datasetuploads-test.js +++ b/test/v2.0-apps-constdb-datasetuploads-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasetuploads', function() { describe('tests for get', function() { it('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. "', function() { var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetuploads', { - 'qs': {"dbid":17}, + 'qs': {"dbid":12}, 'time': true }); diff --git a/test/v2.0-apps-depenvt-test.js b/test/v2.0-apps-depenvt-test.js index 7a89202..87f5866 100644 --- a/test/v2.0-apps-depenvt-test.js +++ b/test/v2.0-apps-depenvt-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/depenvt', function() { describe('tests for get', function() { it('should respond 200 for "This returns the information about depositional environment for selected dataset/collection unit/site."', function() { var response = request('get', 'http://localhost:3001/v2.0/apps/depenvt', { - 'qs': {"siteid":7138,"datasetid":98069349,"collectionunitid":52407}, + 'qs': {"siteid":13692,"datasetid":30254140,"collectionunitid":61409}, 'time': true }); diff --git a/test/v2.0-apps-taphonomysystems-test.js b/test/v2.0-apps-taphonomysystems-test.js index 26367f4..73de67d 100644 --- a/test/v2.0-apps-taphonomysystems-test.js +++ b/test/v2.0-apps-taphonomysystems-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/taphonomysystems', function() { describe('tests for get', function() { it('should respond 200 for "A table of Neotoma collection types."', function() { var response = request('get', 'http://localhost:3001/v2.0/apps/taphonomysystems', { - 'qs': {"datasettypeid":18}, + 'qs': {"datasettypeid":1}, 'time': true }); diff --git a/test/v2.0-data-chronologies-{chronid}-test.js b/test/v2.0-data-chronologies-{chronid}-test.js index 755ddfe..19e8cf5 100644 --- a/test/v2.0-data-chronologies-{chronid}-test.js +++ b/test/v2.0-data-chronologies-{chronid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/chronologies/{chronid}', function() { describe('tests for get', function() { it('should respond 200 for "A Neotoma chronology object."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/chronologies/2377', { + var response = request('get', 'http://localhost:3001/v2.0/data/chronologies/500', { 'time': true }); diff --git a/test/v2.0-data-contacts-test.js b/test/v2.0-data-contacts-test.js index 155ba2e..cc7f701 100644 --- a/test/v2.0-data-contacts-test.js +++ b/test/v2.0-data-contacts-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/contacts', function() { describe('tests for get', function() { it('should respond 200 for "contact"', function() { var response = request('get', 'http://localhost:3001/v2.0/data/contacts', { - 'qs': {"contactid":16344,"familyname":"va","contactname":"CRiRvaalLDp","contactstatus":"defunct","limit": 10,"offset": 0}, + 'qs': {"contactid":13367,"familyname":"LqNGsFC","contactname":"B","contactstatus":"active","limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-contacts-{contactid}-sites-test.js b/test/v2.0-data-contacts-{contactid}-sites-test.js index f88ab0a..5cbb8a7 100644 --- a/test/v2.0-data-contacts-{contactid}-sites-test.js +++ b/test/v2.0-data-contacts-{contactid}-sites-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/contacts/{contactid}/sites', function() { describe('tests for get', function() { it('should respond 200 for "A Neotoma sites object."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/contacts/8571/sites', { + var response = request('get', 'http://localhost:3001/v2.0/data/contacts/500/sites', { 'time': true }); diff --git a/test/v2.0-data-contacts-{contactid}-test.js b/test/v2.0-data-contacts-{contactid}-test.js index 8906198..310b915 100644 --- a/test/v2.0-data-contacts-{contactid}-test.js +++ b/test/v2.0-data-contacts-{contactid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/contacts/{contactid}', function() { describe('tests for get', function() { it('should respond 200 for "A Neotoma contacts object."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/contacts/500', { + var response = request('get', 'http://localhost:3001/v2.0/data/contacts/1563', { 'time': true }); diff --git a/test/v2.0-data-datasets-db-test.js b/test/v2.0-data-datasets-db-test.js index 87eebf5..3703055 100644 --- a/test/v2.0-data-datasets-db-test.js +++ b/test/v2.0-data-datasets-db-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/datasets/db', function() { describe('tests for get', function() { it('should respond 200 for "Datasets"', function() { var response = request('get', 'http://localhost:3001/v2.0/data/datasets/db', { - 'qs': {"limit": 10,"offset": 0,"database":"NDSU Insect Database"}, + 'qs': {"limit": 10,"offset": 0,"database":"Neotoma Testate Amoebae Database"}, 'time': true }); diff --git a/test/v2.0-data-datasets-test.js b/test/v2.0-data-datasets-test.js index 2b204fa..8a79f98 100644 --- a/test/v2.0-data-datasets-test.js +++ b/test/v2.0-data-datasets-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/datasets', function() { describe('tests for get', function() { it('should respond 200 for "An array of datasets."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/datasets', { - 'qs': {"sitename":"ut cillum consectetur","database":"St. Croix Watershed Research Station of the Science Museum of Minnesota","datasettype":"macroinvertebrate","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":31891,"datasetid":23595575,"doi":"10B18997295/TZX21W4","gpid":5392,"keyword":"modern","contactid":20234,"taxa":"exercitation amet irure Excepteur","ageyoung": 1000,"ageold": 10000,"ageof":7003042,"limit": 10,"offset": 0}, + 'qs': {"sitename":"aliqua qui esse consequat non","database":"Neotoma Biomarker Database","datasettype":"vertebrate fauna","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":43461,"datasetid":52178796,"doi":"10|6878/77/.X","gpid":5392,"keyword":"modern","contactid":5305,"taxa":"id labore","ageyoung": 1000,"ageold": 10000,"ageof":22158311,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-datasets_elc-test.js b/test/v2.0-data-datasets_elc-test.js index 962c650..1b33836 100644 --- a/test/v2.0-data-datasets_elc-test.js +++ b/test/v2.0-data-datasets_elc-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/datasets_elc', function() { describe('tests for get', function() { it('should respond 200 for "A Neotoma datasets object suitable for the EarthLife Consortium API."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/datasets_elc', { - 'qs': {"siteid":2501,"contactid":8324,"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]]]}","ageyoung": 1000,"ageold": 10000,"ageof":22149359}, + 'qs': {"siteid":34170,"contactid":948,"datasettype":"microcharcoal","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":10605188}, 'time': true }); diff --git a/test/v2.0-data-dbtables-test.js b/test/v2.0-data-dbtables-test.js index 59b97dd..5ef9b6f 100644 --- a/test/v2.0-data-dbtables-test.js +++ b/test/v2.0-data-dbtables-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/dbtables', function() { describe('tests for get', function() { it('should respond 200 for "Returned table."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/dbtables', { - 'qs': {"table":"Duis pariatur","count":false,"limit": 10,"offset": 0}, + 'qs': {"table":"adipisicing ipsum dolor","count":true,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-dbtables-{table}-test.js b/test/v2.0-data-dbtables-{table}-test.js index 6668566..6ef9b0d 100644 --- a/test/v2.0-data-dbtables-{table}-test.js +++ b/test/v2.0-data-dbtables-{table}-test.js @@ -7,8 +7,8 @@ var expect = chakram.expect; describe('tests for /v2.0/data/dbtables/{table}', function() { describe('tests for get', function() { it('should respond 200 for "Returned table."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/dbtables/elitidsintnisiDuis', { - 'qs': {"count":false,"limit": 10,"offset": 0}, + var response = request('get', 'http://localhost:3001/v2.0/data/dbtables/incididuntDuissitullamcoofficia', { + 'qs': {"count":true,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-geopoliticalunits-test.js b/test/v2.0-data-geopoliticalunits-test.js index 2745352..a2901a6 100644 --- a/test/v2.0-data-geopoliticalunits-test.js +++ b/test/v2.0-data-geopoliticalunits-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/geopoliticalunits', function() { describe('tests for get', function() { it('should respond 200 for "An array of geopolitical units."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits', { - 'qs': {"gpid":5392,"gpname":"Canada","rank":3,"lower":false}, + 'qs': {"gpid":5392,"gpname":"Canada","rank":4,"lower":true}, 'time': true }); diff --git a/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js b/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js index 5d31f1d..2cdb76b 100644 --- a/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js +++ b/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/geopoliticalunits/{gpid}/datasets', function() { describe('tests for get', function() { it('should respond 200 for "An array of datasets."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/7248/datasets', { + var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/500/datasets', { 'qs': {"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js b/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js index e56b4ab..b2fe807 100644 --- a/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js +++ b/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/geopoliticalunits/{gpid}/sites', function() { describe('tests for get', function() { it('should respond 200 for "An array of sites."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/4146/sites', { + var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/1486/sites', { 'qs': {"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-geopoliticalunits-{gpid}-test.js b/test/v2.0-data-geopoliticalunits-{gpid}-test.js index 9868f72..5408072 100644 --- a/test/v2.0-data-geopoliticalunits-{gpid}-test.js +++ b/test/v2.0-data-geopoliticalunits-{gpid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/geopoliticalunits/{gpid}', function() { describe('tests for get', function() { it('should respond 200 for "An array of geopolitical units."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/523', { + var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/500', { 'time': true }); diff --git a/test/v2.0-data-occurrences-test.js b/test/v2.0-data-occurrences-test.js index 6994ad7..5491db8 100644 --- a/test/v2.0-data-occurrences-test.js +++ b/test/v2.0-data-occurrences-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/occurrences', function() { describe('tests for get', function() { it('should respond 200 for "occurrence"', function() { var response = request('get', 'http://localhost:3001/v2.0/data/occurrences', { - 'qs': {"taxonname":"in laborum","taxonid":8523,"siteid":7926,"sitename":"et Lorem exercitation","datasettype":"X-ray fluorescence (XRF)","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":956783,"ageyoung": 1000,"ageold": 10000,"limit": 10,"offset": 0}, + 'qs': {"taxonname":"aliquip eiusmod","taxonid":7890,"siteid":16610,"sitename":"officia dolore cupidatat eu ea","datasettype":"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]]]}","ageof":10193875,"ageyoung": 1000,"ageold": 10000,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-pollen-test.js b/test/v2.0-data-pollen-test.js index d1e779a..1946374 100644 --- a/test/v2.0-data-pollen-test.js +++ b/test/v2.0-data-pollen-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/pollen', function() { describe('tests for get', function() { it('should respond 200 for "A record of all pollen samples in time/space for a particular taxon."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/pollen', { - 'qs': {"taxonname":"cupidatat ullamco Lorem nisi aliquip","taxonid":20895,"siteid":22291,"sitename":"et","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]]]}","ageof":16889037,"ageyoung": 1000,"ageold": 10000,"limit": 10,"offset": 0}, + 'qs': {"taxonname":"esse ut dolore labore","taxonid":32590,"siteid":30859,"sitename":"sit","datasettype":"geochronologic","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":15225459,"ageyoung": 1000,"ageold": 10000,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-pollen-{id}-test.js b/test/v2.0-data-pollen-{id}-test.js index 38cfd33..fa7c438 100644 --- a/test/v2.0-data-pollen-{id}-test.js +++ b/test/v2.0-data-pollen-{id}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/pollen/{id}', function() { describe('tests for get', function() { it('should respond 200 for "A record of all pollen samples in time/space for a particular taxon."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/pollen/446', { + var response = request('get', 'http://localhost:3001/v2.0/data/pollen/500', { 'time': true }); diff --git a/test/v2.0-data-publications-test.js b/test/v2.0-data-publications-test.js index 48b2c0c..f6aaf24 100644 --- a/test/v2.0-data-publications-test.js +++ b/test/v2.0-data-publications-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/publications', function() { describe('tests for get', function() { it('should respond 200 for "A list of publications."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/publications', { - 'qs': {"publicationid":16502,"datasetid":78894653,"siteid":36633,"familyname":"jBMy ","pubtype":"Undergraduate thesis","year":1584,"search":"adipisicing ad ut","limit": 10,"offset": 0}, + 'qs': {"publicationid":11248,"datasetid":25838920,"siteid":43901,"familyname":"YhlWFYaSz ","pubtype":"Journal Article","year":1866,"search":"elit Duis sit aliqua in","limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-publications-{publicationid}-test.js b/test/v2.0-data-publications-{publicationid}-test.js index 501b621..7126513 100644 --- a/test/v2.0-data-publications-{publicationid}-test.js +++ b/test/v2.0-data-publications-{publicationid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/publications/{publicationid}', function() { describe('tests for get', function() { it('should respond 200 for "A list of publications."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/publications/6927', { + var response = request('get', 'http://localhost:3001/v2.0/data/publications/500', { 'time': true }); diff --git a/test/v2.0-data-sites-test.js b/test/v2.0-data-sites-test.js index 42a2050..af725d9 100644 --- a/test/v2.0-data-sites-test.js +++ b/test/v2.0-data-sites-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/sites', function() { describe('tests for get', function() { it('should respond 200 for "An array of sites."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/sites', { - 'qs': {"sitename":"sunt","database":"Canadian Museum of Nature-Delorme Ostracoda-Surface Samples","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":42988,"datasetid":60309948,"doi":"1021436435/Q7","gpid":5392,"keyword":"beyond radiocarbon","contactid":13502,"taxa":"minim","ageyoung": 1000,"ageold": 10000,"ageof":4640795,"limit": 10,"offset": 0}, + 'qs': {"sitename":"adipisicing non","database":"Neotoma Midden Database","datasettype":"diatom","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":47233,"datasetid":43001185,"doi":"10W6058/Y.UJO2","gpid":5392,"keyword":"modern","contactid":18443,"taxa":"sed ullamco culpa laborum","ageyoung": 1000,"ageold": 10000,"ageof":12270010,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-sites-{siteid}-chronologies-test.js b/test/v2.0-data-sites-{siteid}-chronologies-test.js index 288591d..b338000 100644 --- a/test/v2.0-data-sites-{siteid}-chronologies-test.js +++ b/test/v2.0-data-sites-{siteid}-chronologies-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/sites/{siteid}/chronologies', function() { describe('tests for get', function() { it('should respond 200 for "chronology"', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/sites/1711/chronologies', { + var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/chronologies', { 'time': true }); diff --git a/test/v2.0-data-sites-{siteid}-datasets-test.js b/test/v2.0-data-sites-{siteid}-datasets-test.js index 8892654..d02e674 100644 --- a/test/v2.0-data-sites-{siteid}-datasets-test.js +++ b/test/v2.0-data-sites-{siteid}-datasets-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/sites/{siteid}/datasets', function() { describe('tests for get', function() { it('should respond 200 for "An array of datasets."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/sites/2130/datasets', { + var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/datasets', { 'time': true }); diff --git a/test/v2.0-data-sites-{siteid}-datasets_elc-test.js b/test/v2.0-data-sites-{siteid}-datasets_elc-test.js index 7150e27..7161f16 100644 --- a/test/v2.0-data-sites-{siteid}-datasets_elc-test.js +++ b/test/v2.0-data-sites-{siteid}-datasets_elc-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/sites/{siteid}/datasets_elc', function() { describe('tests for get', function() { it('should respond 200 for "An array of datasets."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/datasets_elc', { + var response = request('get', 'http://localhost:3001/v2.0/data/sites/8091/datasets_elc', { 'time': true }); diff --git a/test/v2.0-data-spatial-faunal-test.js b/test/v2.0-data-spatial-faunal-test.js index 1be23ba..41674e8 100644 --- a/test/v2.0-data-spatial-faunal-test.js +++ b/test/v2.0-data-spatial-faunal-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/spatial/faunal', function() { describe('tests for get', function() { it('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) "', function() { var response = request('get', 'http://localhost:3001/v2.0/data/spatial/faunal', { - 'qs': {"sciname":"nulla cupidatat pariatur laboris aliquip","proj": 4326,"prec": 1000}, + 'qs': {"sciname":"reprehenderit aute fugiat","proj": 4326,"prec": 1000}, 'time': true }); diff --git a/test/v2.0-data-spatial-icesheet-test.js b/test/v2.0-data-spatial-icesheet-test.js index f2bd7ad..c80bcbb 100644 --- a/test/v2.0-data-spatial-icesheet-test.js +++ b/test/v2.0-data-spatial-icesheet-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/spatial/icesheet', function() { describe('tests for get', function() { it('should respond 200 for "An object containing glacial extents for the selected time period (in **calibrated radiocarbon years**). "', function() { var response = request('get', 'http://localhost:3001/v2.0/data/spatial/icesheet', { - 'qs': {"age":7703,"proj": 4326,"prec": 1000}, + 'qs': {"age":13023,"proj": 4326,"prec": 1000}, 'time': true }); diff --git a/test/v2.0-data-spatial-lakes-test.js b/test/v2.0-data-spatial-lakes-test.js index 6e8af77..9b63be1 100644 --- a/test/v2.0-data-spatial-lakes-test.js +++ b/test/v2.0-data-spatial-lakes-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/spatial/lakes', function() { describe('tests for get', function() { it('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) "', function() { var response = request('get', 'http://localhost:3001/v2.0/data/spatial/lakes', { - 'qs': {"siteid":22014,"buffer":7113,"prec": 1000,"proj": 4326}, + 'qs': {"siteid":43280,"buffer":1148,"prec": 1000,"proj": 4326}, 'time': true }); diff --git a/test/v2.0-data-taxa-test.js b/test/v2.0-data-taxa-test.js index 6599c1a..060920c 100644 --- a/test/v2.0-data-taxa-test.js +++ b/test/v2.0-data-taxa-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/taxa', function() { describe('tests for get', function() { it('should respond 200 for "A taxon or array of taxa."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/taxa', { - 'qs': {"taxonname":"in labore proident","taxagroup":"est esse dolore","ecolgroup":"dolor exercitation nostrud","status":0,"limit": 10,"offset": 0}, + 'qs': {"taxonname":"Excepteur irure","taxagroup":"Ut aute ea et dolore","ecolgroup":"in nulla eu","status":0,"limit": 10,"offset": 0}, 'time': true }); From 155c6418fab713c95970e2560869571410643063 Mon Sep 17 00:00:00 2001 From: Socorro DominguezVidana Date: Wed, 13 May 2026 15:02:44 -0700 Subject: [PATCH 2/2] API-51 added allowed origin for apps and dojo header --- app.js | 6 +- public/tests.html | 2 +- public/tests.json | 5219 ++++++++--------- test/v1.5-data-contacts-{contactid}-test.js | 2 +- test/v1.5-data-geopoliticalunits-test.js | 2 +- ...v1.5-data-geopoliticalunits-{gpid}-test.js | 2 +- test/v2.0-apps-constdb-datasetages-test.js | 2 +- test/v2.0-apps-constdb-datasets-test.js | 2 +- test/v2.0-apps-constdb-datasetuploads-test.js | 2 +- test/v2.0-apps-depenvt-test.js | 2 +- test/v2.0-apps-taphonomysystems-test.js | 2 +- ...a-aggregatedatasets-{aggdatasetid}-test.js | 2 +- test/v2.0-data-contacts-test.js | 2 +- test/v2.0-data-contacts-{contactid}-test.js | 2 +- test/v2.0-data-datasets-db-test.js | 2 +- test/v2.0-data-datasets-test.js | 2 +- test/v2.0-data-datasets_elc-test.js | 2 +- test/v2.0-data-dbtables-test.js | 2 +- test/v2.0-data-dbtables-{table}-test.js | 2 +- ...-geopoliticalunits-{gpid}-datasets-test.js | 2 +- ...ata-geopoliticalunits-{gpid}-sites-test.js | 2 +- ...v2.0-data-geopoliticalunits-{gpid}-test.js | 2 +- test/v2.0-data-occurrences-test.js | 2 +- test/v2.0-data-pollen-test.js | 2 +- test/v2.0-data-publications-test.js | 2 +- ...-data-publications-{publicationid}-test.js | 2 +- test/v2.0-data-sites-test.js | 2 +- ...0-data-sites-{siteid}-datasets_elc-test.js | 2 +- test/v2.0-data-spatial-faunal-test.js | 2 +- test/v2.0-data-spatial-icesheet-test.js | 2 +- test/v2.0-data-spatial-lakes-test.js | 2 +- ...ata-speleothems-{collectionunitid}-test.js | 2 +- test/v2.0-data-taxa-test.js | 2 +- 33 files changed, 2642 insertions(+), 2645 deletions(-) diff --git a/app.js b/app.js index 80992c5..7f8a16d 100755 --- a/app.js +++ b/app.js @@ -40,7 +40,9 @@ app.engine('html', require('ejs').renderFile); const {optionalAuth} = require('./v2.0/helpers/validation/sessionauth'); const allowedOrigins = env === 'production' ? ['https://data.neotomadb.org', 'https://apps.neotomadb.org'] - : ['http://localhost:5173', 'http://127.0.0.1:5173']; + : [ 'http://localhost:5173', 'http://127.0.0.1:5173', + 'http://localhost:3305', 'http://127.0.0.1:3305' + ]; const corsOptions = { origin: function(origin, callback) { @@ -49,7 +51,7 @@ const corsOptions = { return callback(new Error(`CORS: origin ${origin} not allowed`)); }, credentials: true, - allowedHeaders: ['Content-Type', 'Authorization'], + allowedHeaders: ['Content-Type', 'Authorization', 'X-Requested-With'], maxAge: 600, }; diff --git a/public/tests.html b/public/tests.html index d26757d..62559d5 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 c42607e..995e2d2 100644 --- a/public/tests.json +++ b/public/tests.json @@ -2,14 +2,14 @@ "stats": { "suites": 157, "tests": 146, - "passes": 144, + "passes": 145, "pending": 1, - "failures": 1, - "start": "2026-05-13T21:25:52.686Z", - "end": "2026-05-13T21:28:03.527Z", - "duration": 130841, + "failures": 0, + "start": "2026-05-13T21:31:33.627Z", + "end": "2026-05-13T21:33:17.425Z", + "duration": 103798, "testsRegistered": 146, - "passPercent": 99.3103448275862, + "passPercent": 100, "pendingPercent": 0.684931506849315, "other": 0, "hasOther": false, @@ -18,7 +18,7 @@ }, "results": [ { - "uuid": "2f648b68-bef0-431a-8f77-02204d7206af", + "uuid": "ccba6456-5fe6-4a3b-a66a-251379d151e3", "title": "", "fullFile": "", "file": "", @@ -37,8 +37,8 @@ "context": null, "code": "checkForUnfulfilledExpectations.call(this);\nrecordedExpects = [];", "err": {}, - "uuid": "37240f89-4506-4ac2-8987-7900e940e199", - "parentUUID": "2f648b68-bef0-431a-8f77-02204d7206af", + "uuid": "cc4fec91-94b9-4998-87bc-48b71d183492", + "parentUUID": "ccba6456-5fe6-4a3b-a66a-251379d151e3", "isHook": true, "skipped": false } @@ -46,49 +46,49 @@ "tests": [], "suites": [ { - "uuid": "5860a7a2-1454-434b-9b41-b05e55440e91", - "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": "ec6870f9-d7fc-47eb-98fb-00f2125203f0", + "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": "ba7b9b9a-487e-4d84-af2e-97d3ecab4788", + "uuid": "795460c2-97ae-43be-a29b-e4da218f47d0", "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/v2.0-apps-taxaindatasets-test.js", + "file": "/test/v2.0-apps-taxaindatasets-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 \"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": 609, + "duration": 2988, "state": "passed", - "speed": "medium", + "speed": "slow", "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();", + "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": "e23f6616-a757-4ba1-abfd-b4734ef6c60c", - "parentUUID": "ba7b9b9a-487e-4d84-af2e-97d3ecab4788", + "uuid": "1a5eaaf9-daec-447e-93f7-f5a9974260cd", + "parentUUID": "795460c2-97ae-43be-a29b-e4da218f47d0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "e23f6616-a757-4ba1-abfd-b4734ef6c60c" + "1a5eaaf9-daec-447e-93f7-f5a9974260cd" ], "failures": [], "pending": [], "skipped": [], - "duration": 609, + "duration": 2988, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -104,49 +104,49 @@ "_timeout": 900000 }, { - "uuid": "0ab4c031-2d00-4776-ad3b-2ea1d8d65480", - "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": "306e31ce-4390-4851-99f0-6ba38ab8e270", + "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": "ff3041e3-e47c-41ac-998e-d7df96c1db41", + "uuid": "03ee7e46-3fa5-499c-950e-f32c5e0730b1", "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/v1.5-data-sites-{siteid}-test.js", + "file": "/test/v1.5-data-sites-{siteid}-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 \"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": 78, + "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/contacts/1563', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "d45adf9d-bfe0-4b10-8bdb-5aab24f418c1", - "parentUUID": "ff3041e3-e47c-41ac-998e-d7df96c1db41", + "uuid": "bff6de9e-5981-4838-9f3d-50adf64dfee2", + "parentUUID": "03ee7e46-3fa5-499c-950e-f32c5e0730b1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "d45adf9d-bfe0-4b10-8bdb-5aab24f418c1" + "bff6de9e-5981-4838-9f3d-50adf64dfee2" ], "failures": [], "pending": [], "skipped": [], - "duration": 78, + "duration": 79, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -162,49 +162,49 @@ "_timeout": 900000 }, { - "uuid": "e2abae61-c7bb-49d4-8763-9edbdd826660", - "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": "eac580c2-d969-4a7e-bbef-7196fad43d49", + "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": "a2bb1336-047f-43fa-9815-c79cb4ff8f60", + "uuid": "3ef0b65c-c2cd-4186-b33e-b0bb1de73624", "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", + "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 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) \"", + "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": 100, + "duration": 171, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/lakes', { \n 'qs': {\"siteid\":43280,\"buffer\":1148,\"prec\": 1000,\"proj\": 4326},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa', { \n 'qs': {\"taxonname\":\"do exercitation magna officia cupidatat\",\"taxagroup\":\"sit commodo\",\"ecolgroup\":\"laboris elit\",\"status\":0,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "c4db80f3-f8d6-4de1-b361-7660d093859d", - "parentUUID": "a2bb1336-047f-43fa-9815-c79cb4ff8f60", + "uuid": "756a77f6-74c7-4f0d-bcb6-2aed659a5ed7", + "parentUUID": "3ef0b65c-c2cd-4186-b33e-b0bb1de73624", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "c4db80f3-f8d6-4de1-b361-7660d093859d" + "756a77f6-74c7-4f0d-bcb6-2aed659a5ed7" ], "failures": [], "pending": [], "skipped": [], - "duration": 100, + "duration": 171, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -220,49 +220,49 @@ "_timeout": 900000 }, { - "uuid": "2d9685d5-0b5d-4729-a631-dea014925c23", - "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": "71ca106e-0b17-4536-8fbf-73d74e2c2727", + "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": "2df0fc1f-5ddf-4ace-ba91-2a7c78686862", + "uuid": "92cb5f3d-90a3-4899-832b-567097bc326b", "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/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/geopoliticalunits/{gpid}/datasets 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": 117, + "duration": 5, "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();", + "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": "b11f62fa-32f2-4f75-ac31-2c88ae3697b3", - "parentUUID": "2df0fc1f-5ddf-4ace-ba91-2a7c78686862", + "uuid": "ca2898b0-0659-483e-a2ab-54b3039fa454", + "parentUUID": "92cb5f3d-90a3-4899-832b-567097bc326b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "b11f62fa-32f2-4f75-ac31-2c88ae3697b3" + "ca2898b0-0659-483e-a2ab-54b3039fa454" ], "failures": [], "pending": [], "skipped": [], - "duration": 117, + "duration": 5, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -278,49 +278,49 @@ "_timeout": 900000 }, { - "uuid": "d11dcfa9-7f80-4a62-829e-9e83e3843ec3", - "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": "5f735c16-c403-414d-834f-d6bfc0edbde4", + "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": "5148fa99-e776-42a6-89f0-2a94ff48d181", + "uuid": "df9f4eee-2e7d-4ecb-bc7d-180b70ce1e02", "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-contacts-{contactid}-test.js", + "file": "/test/v2.0-data-contacts-{contactid}-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 \"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": 84, + "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/publications', { \n 'qs': {\"publicationid\":11248,\"datasetid\":25838920,\"siteid\":43901,\"familyname\":\"YhlWFYaSz \",\"pubtype\":\"Journal Article\",\"year\":1866,\"search\":\"elit Duis sit aliqua in\",\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/1231', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "01512566-024e-42b5-842b-1567f781d988", - "parentUUID": "5148fa99-e776-42a6-89f0-2a94ff48d181", + "uuid": "dd25704a-6629-4270-befa-9e9d9f2055c9", + "parentUUID": "df9f4eee-2e7d-4ecb-bc7d-180b70ce1e02", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "01512566-024e-42b5-842b-1567f781d988" + "dd25704a-6629-4270-befa-9e9d9f2055c9" ], "failures": [], "pending": [], "skipped": [], - "duration": 84, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -336,49 +336,49 @@ "_timeout": 900000 }, { - "uuid": "f499e430-7b64-456e-88b9-ea2696dfd159", - "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": "d89a361d-ce79-4268-947e-51bcb5e905f5", + "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": "d349ceca-878a-42a7-a058-79b45f50acec", + "uuid": "4b0b9bc0-f776-4bf0-ae98-5f3b5adbfffb", "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/v1.5-apps-DatasetTypes-test.js", + "file": "/test/v1.5-apps-DatasetTypes-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 \"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": 498, + "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/geopoliticalunits/1486/sites', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "e4344d67-0e88-4c0b-9089-98d7c5879eef", - "parentUUID": "d349ceca-878a-42a7-a058-79b45f50acec", + "uuid": "858c96e5-7f5f-4506-b8fb-98eb3fe697d7", + "parentUUID": "4b0b9bc0-f776-4bf0-ae98-5f3b5adbfffb", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "e4344d67-0e88-4c0b-9089-98d7c5879eef" + "858c96e5-7f5f-4506-b8fb-98eb3fe697d7" ], "failures": [], "pending": [], "skipped": [], - "duration": 498, + "duration": 104, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -394,49 +394,49 @@ "_timeout": 900000 }, { - "uuid": "dda16a12-d9bf-4d79-b5a4-729bf314714f", - "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": "35481936-02fe-4416-8631-00ffa61fab53", + "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": "8b1aae24-1fd5-452e-bd04-e86844c3a7b0", + "uuid": "0f60d08b-dd3d-47fa-bbd9-f6ff636ebc2a", "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}-sites-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-sites-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 \"Site\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/sites tests for get should respond 200 for \"Site\"", "timedOut": false, - "duration": 170, + "duration": 93, "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\":\"aliqua qui esse consequat non\",\"database\":\"Neotoma Biomarker Database\",\"datasettype\":\"vertebrate fauna\",\"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\":43461,\"datasetid\":52178796,\"doi\":\"10|6878/77/.X\",\"gpid\":5392,\"keyword\":\"modern\",\"contactid\":5305,\"taxa\":\"id labore\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":22158311,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "86b1f8e7-6ffb-4c3a-81f0-971cdb92b381", - "parentUUID": "8b1aae24-1fd5-452e-bd04-e86844c3a7b0", + "uuid": "0d02d4a9-5728-4e16-b3d1-bd4ac4179564", + "parentUUID": "0f60d08b-dd3d-47fa-bbd9-f6ff636ebc2a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "86b1f8e7-6ffb-4c3a-81f0-971cdb92b381" + "0d02d4a9-5728-4e16-b3d1-bd4ac4179564" ], "failures": [], "pending": [], "skipped": [], - "duration": 170, + "duration": 93, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -452,49 +452,49 @@ "_timeout": 900000 }, { - "uuid": "589ac670-e133-4d46-bf5e-f66774c67540", - "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": "3b95cac1-397d-4740-a59c-112a0f9db788", + "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": "a35f76e1-606e-483d-b2b1-08e683bc16c3", + "uuid": "04752d37-7500-4cec-a266-b728192b6ff8", "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-datasets-{datasetid}-chronologies-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-chronologies-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 \"chronology\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/chronologies tests for get should respond 200 for \"chronology\"", "timedOut": false, - "duration": 13182, + "duration": 107, "state": "passed", - "speed": "slow", + "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();", + "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": "544a8ed6-61c9-4152-9d74-6a308ae83bcf", - "parentUUID": "a35f76e1-606e-483d-b2b1-08e683bc16c3", + "uuid": "f40d5595-1e1d-44a1-af9c-e13d8a2b255d", + "parentUUID": "04752d37-7500-4cec-a266-b728192b6ff8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "544a8ed6-61c9-4152-9d74-6a308ae83bcf" + "f40d5595-1e1d-44a1-af9c-e13d8a2b255d" ], "failures": [], "pending": [], "skipped": [], - "duration": 13182, + "duration": 107, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -510,25 +510,25 @@ "_timeout": 900000 }, { - "uuid": "99e3f8a7-acab-4aaf-8490-94d7e1efb853", - "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": "e2207fd9-b55f-48a2-ab71-2590ff8b599f", + "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": "796ac194-b130-4413-826c-25e631280a38", + "uuid": "0e2c7c9e-dab5-4a1e-a6e7-b418d04fd28b", "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/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 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 \"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": 79, "state": "passed", @@ -537,17 +537,17 @@ "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetuploads', { \n 'qs': {\"dbid\":16},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "3b40f976-b28a-44d8-a268-20bc3b3878a9", - "parentUUID": "796ac194-b130-4413-826c-25e631280a38", + "uuid": "39aa4265-bc36-4234-ad59-a065c39960e5", + "parentUUID": "0e2c7c9e-dab5-4a1e-a6e7-b418d04fd28b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "3b40f976-b28a-44d8-a268-20bc3b3878a9" + "39aa4265-bc36-4234-ad59-a065c39960e5" ], "failures": [], "pending": [], @@ -568,107 +568,49 @@ "_timeout": 900000 }, { - "uuid": "bc3f474f-3bf4-4e12-bd09-7baf06eb6a0f", - "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": "fbc6d4fc-3a5b-41c2-a043-a5b892038d7d", + "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": "8c65182a-6011-4056-92ba-c31bbed06059", + "uuid": "68c055b6-36c1-45f9-a472-1689c9e88709", "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", + "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 \"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": 84, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "pending": false, - "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites/8091/datasets_elc', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": {}, - "uuid": "74f4c90c-250f-4512-8ce6-98e7d042a5eb", - "parentUUID": "8c65182a-6011-4056-92ba-c31bbed06059", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "74f4c90c-250f-4512-8ce6-98e7d042a5eb" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 84, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "03338ab2-3e13-4889-b684-a6c6405a53d7", - "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": "db2decc9-3060-45bf-a54a-2226ece1b4ff", - "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", - "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.\"", + "fullTitle": "tests for /v2.0/data/datasets tests for get should respond 200 for \"An array of datasets.\"", "timedOut": false, - "duration": 82, + "duration": 161, "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\":34170,\"contactid\":948,\"datasettype\":\"microcharcoal\",\"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\":10605188},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets', { \n 'qs': {\"sitename\":\"Excepteur sint anim sed do\",\"database\":\"Canadian Pollen Database\",\"datasettype\":\"charcoal surface sample\",\"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\":45345,\"datasetid\":12116711,\"doi\":\"10d91690/6YEIVB\",\"gpid\":5392,\"keyword\":\"modern\",\"contactid\":14536,\"taxa\":\"dolore elit\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":13721899,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "cf40750c-c3b6-4f56-b44e-a2a105d28bd7", - "parentUUID": "db2decc9-3060-45bf-a54a-2226ece1b4ff", + "uuid": "27a39509-d249-4c2c-9f43-18fe73b60643", + "parentUUID": "68c055b6-36c1-45f9-a472-1689c9e88709", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "cf40750c-c3b6-4f56-b44e-a2a105d28bd7" + "27a39509-d249-4c2c-9f43-18fe73b60643" ], "failures": [], "pending": [], "skipped": [], - "duration": 82, + "duration": 161, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -684,49 +626,49 @@ "_timeout": 900000 }, { - "uuid": "fac71bbe-3ffa-4655-a84d-bc0d06118054", - "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": "61110c03-7c94-4a2b-a542-6993bb820f49", + "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": "13022a4f-5a6f-494c-89d6-cddd36dd8801", + "uuid": "c1fc4b5b-3ce7-4d3a-b7b4-f097636fdbf8", "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-apps-constdb-datasetages-test.js", + "file": "/test/v2.0-apps-constdb-datasetages-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 \"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": 76, + "duration": 15589, "state": "passed", - "speed": "fast", + "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/depenvt', { \n 'qs': {\"siteid\":13692,\"datasetid\":30254140,\"collectionunitid\":61409},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetages', { \n 'qs': {\"dbid\":25},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "dc7d964e-d47b-4334-8adf-a868257f9e16", - "parentUUID": "13022a4f-5a6f-494c-89d6-cddd36dd8801", + "uuid": "119b3384-9f86-4c3b-abc1-82a074993b4c", + "parentUUID": "c1fc4b5b-3ce7-4d3a-b7b4-f097636fdbf8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "dc7d964e-d47b-4334-8adf-a868257f9e16" + "119b3384-9f86-4c3b-abc1-82a074993b4c" ], "failures": [], "pending": [], "skipped": [], - "duration": 76, + "duration": 15589, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -742,492 +684,316 @@ "_timeout": 900000 }, { - "uuid": "b3bbf824-4603-45ca-9ea4-af6c3820e1bb", - "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": "e0b21655-5b8c-4ec7-b016-792972a54b98", + "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": "0e4d91a3-9362-4671-94ce-a865a94a5a55", - "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", - "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\"", - "timedOut": false, - "duration": 74, - "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": {}, - "uuid": "5357fe6b-1c25-45c2-b2c0-b006a8620b19", - "parentUUID": "0e4d91a3-9362-4671-94ce-a865a94a5a55", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "5357fe6b-1c25-45c2-b2c0-b006a8620b19" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 74, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "70db9fd7-9980-44d5-ba18-a52f68a4b507", - "title": "Get geopolitical data:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/geopolitical.js", - "file": "/test/geopolitical.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "title": "An empty query returns a valid response.", - "fullTitle": "Get geopolitical data: An empty query returns a valid response.", + "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": 96, + "duration": 2, "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);", + "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": "53d661f2-c094-47f8-9565-2fe6f4aedc66", - "parentUUID": "70db9fd7-9980-44d5-ba18-a52f68a4b507", + "uuid": "3a4e2957-c1f0-43af-a149-824c41f5aa70", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "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:", + "title": "Get the Flyover test call:", + "fullTitle": "Get occurrence data any number of ways: Get the Flyover test call:", "timedOut": false, - "duration": 78, + "duration": 0, "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 });", + "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": "8280b7ca-caad-4932-9a95-995301fae42b", - "parentUUID": "70db9fd7-9980-44d5-ba18-a52f68a4b507", + "uuid": "7be429bd-c20d-4275-8bae-2e892d8def6e", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "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:", + "title": "Failing Canis test works:", + "fullTitle": "Get occurrence data any number of ways: Failing Canis test works:", "timedOut": false, - "duration": 74, + "duration": 0, "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 });", + "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": "0782f05f-9805-46a7-99a7-561e8dbd0458", - "parentUUID": "70db9fd7-9980-44d5-ba18-a52f68a4b507", + "uuid": "2fd6ff3f-da92-49ba-a5df-fc5b4e68b09d", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "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.", + "title": "Get occurrence by taxon:", + "fullTitle": "Get occurrence data any number of ways: Get occurrence by taxon:", "timedOut": false, - "duration": 71, + "duration": 1, "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 });", + "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": "0cbf612c-e6ca-4ad9-b9eb-cb3a42275f2b", - "parentUUID": "70db9fd7-9980-44d5-ba18-a52f68a4b507", + "uuid": "79f27fd7-0359-474d-8ec2-1dc7df0a1b2a", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "isHook": false, "skipped": false - } - ], - "suites": [], - "passes": [ - "53d661f2-c094-47f8-9565-2fe6f4aedc66", - "8280b7ca-caad-4932-9a95-995301fae42b", - "0782f05f-9805-46a7-99a7-561e8dbd0458", - "0cbf612c-e6ca-4ad9-b9eb-cb3a42275f2b" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 319, - "root": false, - "rootEmpty": false, - "_timeout": 5000 - }, - { - "uuid": "420fa922-c092-4d97-8192-ca902d48caf8", - "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": "a43809cd-9ae1-4fff-b6ff-29cc4c04e158", - "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", - "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.\"", - "timedOut": false, - "duration": 81, - "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": {}, - "uuid": "809fd4f6-e83c-488d-adb1-623cbfd25331", - "parentUUID": "a43809cd-9ae1-4fff-b6ff-29cc4c04e158", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "809fd4f6-e83c-488d-adb1-623cbfd25331" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 81, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "164fd695-b76b-46f7-ac83-e5965401e1c9", - "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": "79dec423-3550-4461-aacb-1f566a8a84d4", - "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", - "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.\"", - "timedOut": false, - "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/taphonomysystems', { \n 'qs': {\"datasettypeid\":1},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", - "err": {}, - "uuid": "5a98974a-306a-426f-8fe9-9bdc6dc560f1", - "parentUUID": "79dec423-3550-4461-aacb-1f566a8a84d4", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "5a98974a-306a-426f-8fe9-9bdc6dc560f1" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 71, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "b95fdaad-4185-40d3-bce7-dcff52205fcb", - "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:", + "title": "Break occurrences by flipping altitudes:", + "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping altitudes:", "timedOut": false, - "duration": 260, + "duration": 0, "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);", + "code": "api.get('v2.0/data/occurrences/?altmax=3000&altmin=5000')\n .set('Accept', 'application/json')\n .expect(500);\ndone();", "err": {}, - "uuid": "ba59f1ef-b697-4977-b37d-72dbb4fb0654", - "parentUUID": "b95fdaad-4185-40d3-bce7-dcff52205fcb", + "uuid": "84340dd3-9180-4477-8c17-ad9c6caa5654", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "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:", + "title": "Break occurrences by flipping ages:", + "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping ages:", "timedOut": false, - "duration": 4170, + "duration": 0, "state": "passed", - "speed": "slow", + "speed": "fast", "pass": true, "fail": false, "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);", + "code": "api.get('v2.0/data/occurrences/?ageyoung=5000&ageold=3000')\n .set('Accept', 'application/json')\n .expect(500);\ndone();", "err": {}, - "uuid": "f06a59b0-de39-48e1-9334-065c7d172208", - "parentUUID": "b95fdaad-4185-40d3-bce7-dcff52205fcb", + "uuid": "068a1593-a137-467c-8a50-9a7c4a31ec24", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "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:", + "title": "Occurrences filter by age:", + "fullTitle": "Get occurrence data any number of ways: Occurrences filter by age:", "timedOut": false, - "duration": 14042, + "duration": 0, "state": "passed", - "speed": "slow", + "speed": "fast", "pass": true, "fail": false, "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);", + "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": "621ff397-8cfb-4c18-ba2e-91d38428e6ee", - "parentUUID": "b95fdaad-4185-40d3-bce7-dcff52205fcb", + "uuid": "cdb51c1b-587c-47b9-ab73-ad07205d8b63", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "isHook": false, "skipped": false - } - ], - "suites": [], - "passes": [ - "ba59f1ef-b697-4977-b37d-72dbb4fb0654", - "f06a59b0-de39-48e1-9334-065c7d172208", - "621ff397-8cfb-4c18-ba2e-91d38428e6ee" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 18472, - "root": false, - "rootEmpty": false, - "_timeout": 15000 - }, - { - "uuid": "1bf7cc03-f24f-47aa-a351-a12cde99172d", - "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:", + "title": "Get occurrences with comma separated fields:", + "fullTitle": "Get occurrence data any number of ways: Get occurrences with comma separated fields:", "timedOut": false, - "duration": 263, + "duration": 0, "state": "passed", "speed": "fast", "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);", + "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": "86f4038c-ecb3-49af-8796-ecf35af78287", - "parentUUID": "1bf7cc03-f24f-47aa-a351-a12cde99172d", + "uuid": "f808db8a-1d73-4bc5-945b-afacaf86dc81", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "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:", + "title": "Get occurrences with comma separated taxa:", + "fullTitle": "Get occurrence data any number of ways: Get occurrences with comma separated taxa:", "timedOut": false, - "duration": 262, + "duration": 0, "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);", + "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": "2fcc59a7-403f-44b4-a555-6ce12ded2234", - "parentUUID": "1bf7cc03-f24f-47aa-a351-a12cde99172d", + "uuid": "2407d71d-a9c7-4ee3-bcd5-73b14de08679", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "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:", + "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": 191, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, "fail": false, "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);", + "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": "a76be318-314c-4ce1-a39a-003a4a311dd4", - "parentUUID": "1bf7cc03-f24f-47aa-a351-a12cde99172d", + "uuid": "d34d6f19-a9a7-43c6-87c1-a6e8fdf1b488", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "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:", + "title": "Get occurrences returns lower taxa:", + "fullTitle": "Get occurrence data any number of ways: Get occurrences returns lower taxa:", "timedOut": false, - "duration": 170, + "duration": 0, "state": "passed", "speed": "fast", "pass": true, "fail": false, "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);", + "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": "e7aba902-7e54-4c7d-95ad-16d8d99fdb7e", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", + "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": "2913bd17-899b-4294-8f3d-ae7613f1774b", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", + "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": 1, + "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": "b199d85d-b0e7-4f3d-b1aa-e5b27dec1959", - "parentUUID": "1bf7cc03-f24f-47aa-a351-a12cde99172d", + "uuid": "24c84a9f-cb0d-48f6-8046-0a38290dad50", + "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "86f4038c-ecb3-49af-8796-ecf35af78287", - "2fcc59a7-403f-44b4-a555-6ce12ded2234", - "a76be318-314c-4ce1-a39a-003a4a311dd4", - "b199d85d-b0e7-4f3d-b1aa-e5b27dec1959" + "3a4e2957-c1f0-43af-a149-824c41f5aa70", + "7be429bd-c20d-4275-8bae-2e892d8def6e", + "2fd6ff3f-da92-49ba-a5df-fc5b4e68b09d", + "79f27fd7-0359-474d-8ec2-1dc7df0a1b2a", + "84340dd3-9180-4477-8c17-ad9c6caa5654", + "068a1593-a137-467c-8a50-9a7c4a31ec24", + "cdb51c1b-587c-47b9-ab73-ad07205d8b63", + "f808db8a-1d73-4bc5-945b-afacaf86dc81", + "2407d71d-a9c7-4ee3-bcd5-73b14de08679", + "d34d6f19-a9a7-43c6-87c1-a6e8fdf1b488", + "e7aba902-7e54-4c7d-95ad-16d8d99fdb7e", + "2913bd17-899b-4294-8f3d-ae7613f1774b", + "24c84a9f-cb0d-48f6-8046-0a38290dad50" ], "failures": [], "pending": [], "skipped": [], - "duration": 886, + "duration": 4, "root": false, "rootEmpty": false, - "_timeout": 15000 + "_timeout": 30000 }, { - "uuid": "6ccfcbee-2a3f-4930-809f-50eaef378d50", - "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": "12810d0c-7c7e-487a-8337-d1bf5555ffb5", + "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": "b596ede7-07ff-471b-bc86-fdf5c0ba6d07", + "uuid": "d6f1e7b1-f56a-4755-920a-686fdde654f8", "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/v1.5-dbtables-{table}-test.js", + "file": "/test/v1.5-dbtables-{table}-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 \"Returned table.\"", + "fullTitle": "tests for /v1.5/dbtables/{table} tests for get should respond 200 for \"Returned table.\"", "timedOut": false, - "duration": 123, + "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();", + "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": "16bd56fd-f476-4bd7-ad48-0af2a7722944", - "parentUUID": "b596ede7-07ff-471b-bc86-fdf5c0ba6d07", + "uuid": "a0eebf15-1453-4e0a-9ef4-45f9843c8173", + "parentUUID": "d6f1e7b1-f56a-4755-920a-686fdde654f8", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "16bd56fd-f476-4bd7-ad48-0af2a7722944" + "a0eebf15-1453-4e0a-9ef4-45f9843c8173" ], "failures": [], "pending": [], "skipped": [], - "duration": 123, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1243,49 +1009,88 @@ "_timeout": 900000 }, { - "uuid": "e2881ffe-dc33-4578-9c86-dbbe86ff9557", - "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": "dab4f0fd-1832-44cd-aa9d-e00217595943", + "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": "24bec95b-4ba8-4ced-9ea4-2a104d7604a2", + "parentUUID": "dab4f0fd-1832-44cd-aa9d-e00217595943", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "24bec95b-4ba8-4ced-9ea4-2a104d7604a2" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 5000 + }, + { + "uuid": "6f41ede5-a72b-467b-bef9-8c12d2cee292", + "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": "b6a525ad-8001-403f-aca2-c1fa5cdcbaa5", + "uuid": "52fcf11d-8fe6-4ca7-932c-30338a851eef", "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-datasets-{datasetid}-taxa-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-taxa-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 \"Taxa\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/taxa tests for get should respond 200 for \"Taxa\"", "timedOut": false, - "duration": 641, + "duration": 141, "state": "passed", - "speed": "medium", + "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();", + "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": "73ba9c2c-6e00-428f-9168-f9d5bb585140", - "parentUUID": "b6a525ad-8001-403f-aca2-c1fa5cdcbaa5", + "uuid": "285268b2-bbda-4948-b5d6-7beacaba934b", + "parentUUID": "52fcf11d-8fe6-4ca7-932c-30338a851eef", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "73ba9c2c-6e00-428f-9168-f9d5bb585140" + "285268b2-bbda-4948-b5d6-7beacaba934b" ], "failures": [], "pending": [], "skipped": [], - "duration": 641, + "duration": 141, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1301,49 +1106,49 @@ "_timeout": 900000 }, { - "uuid": "48464691-7d8f-426e-b140-bbb6e0190f6f", - "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": "bf35b4a4-0719-462c-acae-3913469860fd", + "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": "6fbabe25-9bc7-47ba-a7d8-af6be3bc2de8", + "uuid": "4a8f1d66-d366-44ac-8769-d9eb4a963800", "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-taxa-{taxonid}-occurrences-test.js", + "file": "/test/v2.0-data-taxa-{taxonid}-occurrences-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 \"occurrence\"", + "fullTitle": "tests for /v2.0/data/taxa/{taxonid}/occurrences tests for get should respond 200 for \"occurrence\"", "timedOut": false, - "duration": 79, + "duration": 5, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/dbtables/incididuntDuissitullamcoofficia', { \n 'qs': {\"count\":true,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "9e8de351-c6ba-4f8b-9825-7cb7546c4e61", - "parentUUID": "6fbabe25-9bc7-47ba-a7d8-af6be3bc2de8", + "uuid": "4d723455-90c4-4906-8276-244cd55549de", + "parentUUID": "4a8f1d66-d366-44ac-8769-d9eb4a963800", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "9e8de351-c6ba-4f8b-9825-7cb7546c4e61" + "4d723455-90c4-4906-8276-244cd55549de" ], "failures": [], "pending": [], "skipped": [], - "duration": 79, + "duration": 5, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1359,169 +1164,222 @@ "_timeout": 900000 }, { - "uuid": "fbf6240c-fb62-489b-a4a6-12afe25c362c", - "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": "c02be42b-bdca-4410-a3f8-6386e3a7f22c", + "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 site by singular id & return same id:", - "fullTitle": "Get site data any number of ways: Get site by singular id & return same id:", + "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": 88, + "duration": 331, "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 });", + "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": "c3b39275-c918-42d5-8b8e-d759f26e45eb", - "parentUUID": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "uuid": "031ef58e-d58b-465a-a92d-b511c7fdc1a3", + "parentUUID": "c02be42b-bdca-4410-a3f8-6386e3a7f22c", "isHook": false, "skipped": false }, { - "title": "Get site by altitude:", - "fullTitle": "Get site data any number of ways: Get site by altitude:", - "timedOut": true, - "duration": 5002, - "state": "failed", - "speed": null, - "pass": false, - "fail": true, + "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": 3742, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, "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": "653daed1-a963-4fda-94f5-64eca3ffcb8b", - "parentUUID": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "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": {}, + "uuid": "ed1eda04-67db-486d-bd2f-e42a5872180d", + "parentUUID": "c02be42b-bdca-4410-a3f8-6386e3a7f22c", "isHook": false, "skipped": false }, { - "title": "Break sites by flipping altitudes:", - "fullTitle": "Get site data any number of ways: Break sites by flipping altitudes:", + "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": 1396, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "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": {}, + "uuid": "e8dc3316-568f-4383-857c-28ca0081ceba", + "parentUUID": "c02be42b-bdca-4410-a3f8-6386e3a7f22c", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "031ef58e-d58b-465a-a92d-b511c7fdc1a3", + "ed1eda04-67db-486d-bd2f-e42a5872180d", + "e8dc3316-568f-4383-857c-28ca0081ceba" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 5469, + "root": false, + "rootEmpty": false, + "_timeout": 15000 + }, + { + "uuid": "68ef889b-f06f-4806-8560-0a4564f51bda", + "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": 7, + "duration": 240, "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 });", + "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": "8dae60d7-79a6-45b1-8c6e-4d4a832996a8", - "parentUUID": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "uuid": "51466f61-f55c-4e47-95a7-34307dc6c5f4", + "parentUUID": "68ef889b-f06f-4806-8560-0a4564f51bda", "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:", + "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": 552, + "duration": 205, "state": "passed", - "speed": "medium", + "speed": "fast", "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 });", + "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": "6798216a-1665-495a-8785-7affed0fbf86", - "parentUUID": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "uuid": "307c587e-75cb-4dad-8a95-af9f93a488c0", + "parentUUID": "68ef889b-f06f-4806-8560-0a4564f51bda", "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:", + "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": 213, + "duration": 182, "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);", + "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": {}, + "uuid": "d10e5bef-5ef5-4d97-9050-e6dcdb8b0775", + "parentUUID": "68ef889b-f06f-4806-8560-0a4564f51bda", + "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": 175, + "state": "passed", + "speed": "fast", + "pass": true, + "fail": false, + "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": {}, - "uuid": "481f33f3-c4dd-40b6-b5e0-3beb40515729", - "parentUUID": "fbf6240c-fb62-489b-a4a6-12afe25c362c", + "uuid": "e685f0d6-ee22-4acd-a570-05fa5a265445", + "parentUUID": "68ef889b-f06f-4806-8560-0a4564f51bda", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "c3b39275-c918-42d5-8b8e-d759f26e45eb", - "8dae60d7-79a6-45b1-8c6e-4d4a832996a8", - "6798216a-1665-495a-8785-7affed0fbf86", - "481f33f3-c4dd-40b6-b5e0-3beb40515729" - ], - "failures": [ - "653daed1-a963-4fda-94f5-64eca3ffcb8b" + "51466f61-f55c-4e47-95a7-34307dc6c5f4", + "307c587e-75cb-4dad-8a95-af9f93a488c0", + "d10e5bef-5ef5-4d97-9050-e6dcdb8b0775", + "e685f0d6-ee22-4acd-a570-05fa5a265445" ], + "failures": [], "pending": [], "skipped": [], - "duration": 5862, + "duration": 802, "root": false, "rootEmpty": false, - "_timeout": 5000 + "_timeout": 15000 }, { - "uuid": "4f5c1d43-3802-4c67-a266-0eaeb223635f", - "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": "746725af-2a67-4efd-a29b-4e1a1a78cddd", + "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": "79ed948a-4bd3-40dd-9f80-802cd600694d", + "uuid": "7b785d6f-ea53-4799-94e4-e80f0aa77825", "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-data-summary-rawbymonth-test.js", + "file": "/test/v2.0-data-summary-rawbymonth-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 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": 127, + "duration": 12125, "state": "passed", - "speed": "fast", + "speed": "slow", "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();", + "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": "af7d5a81-5f01-4c24-add0-f36a4ada3bba", - "parentUUID": "79ed948a-4bd3-40dd-9f80-802cd600694d", + "uuid": "c89cf0e7-8e51-4f84-b12b-1374a06ca4c3", + "parentUUID": "7b785d6f-ea53-4799-94e4-e80f0aa77825", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "af7d5a81-5f01-4c24-add0-f36a4ada3bba" + "c89cf0e7-8e51-4f84-b12b-1374a06ca4c3" ], "failures": [], "pending": [], "skipped": [], - "duration": 127, + "duration": 12125, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1537,49 +1395,49 @@ "_timeout": 900000 }, { - "uuid": "4ac4336b-68e3-4b71-a985-0ea42e51be2a", - "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": [], + "uuid": "96ea762f-4759-4e3e-b7ee-355e710e600b", + "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": "bc9e4fc2-c618-4f09-bb32-1d90003997e0", + "uuid": "e6d7b9db-15ad-44eb-9d83-f07bf9f26e69", "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/v2.0-data-geopoliticalunits-test.js", + "file": "/test/v2.0-data-geopoliticalunits-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 geopolitical units.\"", + "fullTitle": "tests for /v2.0/data/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"", "timedOut": false, - "duration": 753, + "duration": 73, "state": "passed", - "speed": "medium", + "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\":\"adipisicing non\",\"database\":\"Neotoma Midden Database\",\"datasettype\":\"diatom\",\"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\":47233,\"datasetid\":43001185,\"doi\":\"10W6058/Y.UJO2\",\"gpid\":5392,\"keyword\":\"modern\",\"contactid\":18443,\"taxa\":\"sed ullamco culpa laborum\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":12270010,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/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": "a4fc7cac-f192-467b-bd0e-12fc4556406c", - "parentUUID": "bc9e4fc2-c618-4f09-bb32-1d90003997e0", + "uuid": "8d6568b7-ee20-47f6-bbb1-f6164a654f77", + "parentUUID": "e6d7b9db-15ad-44eb-9d83-f07bf9f26e69", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "a4fc7cac-f192-467b-bd0e-12fc4556406c" + "8d6568b7-ee20-47f6-bbb1-f6164a654f77" ], "failures": [], "pending": [], "skipped": [], - "duration": 753, + "duration": 73, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1595,49 +1453,49 @@ "_timeout": 900000 }, { - "uuid": "05c9ac9e-1b0b-48f4-9b84-424eea5070f5", - "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": "ee3d1add-f392-4135-adf8-b15e6636af5a", + "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": "ccc850d0-15da-4c13-9758-f830bdfe5784", + "uuid": "ef1d125a-656e-4c88-90c2-e09855a6012f", "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-depositionalenvironments-root-test.js", + "file": "/test/v2.0-apps-depositionalenvironments-root-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 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": 223, + "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/summary/dstypemonth', { \n 'qs': {\"start\": 1,\"end\": 10},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "ceeb9693-bb72-46d9-b910-004dd8911bb4", - "parentUUID": "ccc850d0-15da-4c13-9758-f830bdfe5784", + "uuid": "5508e00e-d935-43e6-b6df-6376af26bead", + "parentUUID": "ef1d125a-656e-4c88-90c2-e09855a6012f", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "ceeb9693-bb72-46d9-b910-004dd8911bb4" + "5508e00e-d935-43e6-b6df-6376af26bead" ], "failures": [], "pending": [], "skipped": [], - "duration": 223, + "duration": 80, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1653,49 +1511,49 @@ "_timeout": 900000 }, { - "uuid": "d3117d44-dea6-444c-90ed-8d9afe55183f", - "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": "33817810-d4e9-46e2-bfa3-30da81e620d7", + "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": "5b42ccbe-7197-4200-a16e-94d7f2703409", + "uuid": "b11c68f9-8883-4003-8e45-153ac2712d8a", "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-data-geopoliticalunits-{gpid}-datasets-test.js", + "file": "/test/v2.0-data-geopoliticalunits-{gpid}-datasets-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 \"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": 86, + "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/500/sites', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/4013/datasets', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "f2f953ea-2358-46fe-b0ee-c2bc8cf627ae", - "parentUUID": "5b42ccbe-7197-4200-a16e-94d7f2703409", + "uuid": "efb76184-054b-4482-ae06-1c44fa1d9b1d", + "parentUUID": "b11c68f9-8883-4003-8e45-153ac2712d8a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "f2f953ea-2358-46fe-b0ee-c2bc8cf627ae" + "efb76184-054b-4482-ae06-1c44fa1d9b1d" ], "failures": [], "pending": [], "skipped": [], - "duration": 86, + "duration": 102, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1711,49 +1569,49 @@ "_timeout": 900000 }, { - "uuid": "e123fe85-5b5b-471f-ac6d-cabd88d86023", - "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": "19a0e332-ce92-481a-ac30-d4f1367066ee", + "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": "9536716b-93d0-4a21-8270-30de56defdae", + "uuid": "169076c8-e454-4df7-9957-a8da5303aed0", "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-contacts-{contactid}-sites-test.js", + "file": "/test/v2.0-data-contacts-{contactid}-sites-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 \"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": 125, + "duration": 5, "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts/500/sites', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "6cee11b4-e567-4e2b-b2f3-ec716683128b", - "parentUUID": "9536716b-93d0-4a21-8270-30de56defdae", + "uuid": "9e78d93e-756d-4658-b203-239113da1d2a", + "parentUUID": "169076c8-e454-4df7-9957-a8da5303aed0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "6cee11b4-e567-4e2b-b2f3-ec716683128b" + "9e78d93e-756d-4658-b203-239113da1d2a" ], "failures": [], "pending": [], "skipped": [], - "duration": 125, + "duration": 5, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1769,49 +1627,49 @@ "_timeout": 900000 }, { - "uuid": "4394e655-3a4f-4112-809d-2f6e38c9ba50", - "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": "dd405005-2069-4d42-a55a-3cba71c2187f", + "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": "6bf76d70-ee61-4a3d-a36c-ff12eb0da569", + "uuid": "f4771b40-27c3-4aa4-bf52-180180ca835a", "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/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 \"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 /v2.0/data/sites/{siteid}/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"", "timedOut": false, - "duration": 171, + "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/chronologies/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "d1323d45-ade6-4e3c-bd36-1c096d32fe97", - "parentUUID": "6bf76d70-ee61-4a3d-a36c-ff12eb0da569", + "uuid": "e0adddba-9ff6-42c1-ad79-da3c47365db4", + "parentUUID": "f4771b40-27c3-4aa4-bf52-180180ca835a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "d1323d45-ade6-4e3c-bd36-1c096d32fe97" + "e0adddba-9ff6-42c1-ad79-da3c47365db4" ], "failures": [], "pending": [], "skipped": [], - "duration": 171, + "duration": 74, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -1827,246 +1685,280 @@ "_timeout": 900000 }, { - "uuid": "7be064ac-9f5e-4fcf-b83c-da362abd61d0", - "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": "11ef54ba-fea9-4524-8475-efca26898268", + "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": "8e7e6f94-c002-4d4c-936c-7df214f2d768", + "uuid": "9c441d08-391e-498d-a995-42fea15ecdaa", "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": 80, + "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/datasets/500/lithology', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "const response = request('get', appServicesLocation + '/TaxaGroupTypes', {\n time: true,\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "9488c0a1-7423-44d8-8e70-7b3e27f9a754", - "parentUUID": "8e7e6f94-c002-4d4c-936c-7df214f2d768", + "uuid": "1ee66666-6a22-4e02-8840-e74edbe17016", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", "isHook": false, "skipped": false - } - ], - "suites": [], - "passes": [ - "9488c0a1-7423-44d8-8e70-7b3e27f9a754" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 80, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "9538e5fd-2e33-4ae7-bdfa-1f782dc1d37d", - "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": [], - "suites": [ - { - "uuid": "6117eee5-ea94-4fe1-992d-1f6dd5ce1669", - "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\"", + "title": "should respond 200 for TaphonomyTypes", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaphonomyTypes", "timedOut": false, - "duration": 104, + "duration": 12, "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\":\"aliquip eiusmod\",\"taxonid\":7890,\"siteid\":16610,\"sitename\":\"officia dolore cupidatat eu ea\",\"datasettype\":\"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]]]}\",\"ageof\":10193875,\"ageyoung\": 1000,\"ageold\": 10000,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "a9707a41-1a83-4b02-a490-79af8c456836", - "parentUUID": "6117eee5-ea94-4fe1-992d-1f6dd5ce1669", + "uuid": "ee1005ee-8622-492a-aac8-051786153a8f", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", "isHook": false, "skipped": false - } - ], - "suites": [], - "passes": [ - "a9707a41-1a83-4b02-a490-79af8c456836" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 104, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "d8214e70-3966-47ea-9339-6ea8e756df7c", - "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": "a92c155a-56fc-44df-ae61-072a631953c7", - "parentUUID": "d8214e70-3966-47ea-9339-6ea8e756df7c", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "a92c155a-56fc-44df-ae61-072a631953c7" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 5000 - }, - { - "uuid": "4f8dd2df-0632-4dde-9f71-eac27896130b", - "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": 6, - "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": "c80ea9fc-3504-4c80-87e8-438be39670ef", - "parentUUID": "4f8dd2df-0632-4dde-9f71-eac27896130b", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "c80ea9fc-3504-4c80-87e8-438be39670ef" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 6, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "7570228e-9baa-4b8b-aae3-5a51bcd93ee4", - "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": "af59e1a0-db6f-416d-8421-e350019b5565", - "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", - "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 TaphonomySystems", + "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaphonomySystems", "timedOut": false, - "duration": 104, + "duration": 68, + "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": "984ba1c6-6226-4d6b-878a-b9498344db5f", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", + "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": 71, + "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": "b0c7c121-9790-437c-b031-5a50a116fb75", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", + "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": 5672, + "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": "b978b21f-ceb2-4ac1-a889-8a6abf54a035", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", + "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": 70, + "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": "372b49b9-46e1-49fe-92dd-ce30e1f674d1", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", + "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": 66, + "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": "76393c5d-7024-44f9-a095-fa8579176981", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", + "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": 602, + "state": "passed", + "speed": "medium", + "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": "64c0cba3-91bc-4d50-9452-d3e73d91fbdc", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", + "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": 6, + "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": "2f867d19-2e5b-43e8-a3f3-137cb8f51241", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", + "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": 2, + "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": "dcc3ec32-61cb-47c3-83c1-ea0da0acf8cf", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", + "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": 92, + "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": "3b0b4600-34e4-403a-9164-99b08cdbbd95", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", + "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": 148, + "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": "581ef959-ef70-4854-81fe-00bf70a31f1e", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", + "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": 6, "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\":12},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "787a6ad0-0782-4b26-9aa1-e2ddfe5ad9bb", - "parentUUID": "af59e1a0-db6f-416d-8421-e350019b5565", + "uuid": "544b3df5-7ccc-48b0-94cf-9539df182e14", + "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "787a6ad0-0782-4b26-9aa1-e2ddfe5ad9bb" + "1ee66666-6a22-4e02-8840-e74edbe17016", + "ee1005ee-8622-492a-aac8-051786153a8f", + "984ba1c6-6226-4d6b-878a-b9498344db5f", + "b0c7c121-9790-437c-b031-5a50a116fb75", + "b978b21f-ceb2-4ac1-a889-8a6abf54a035", + "372b49b9-46e1-49fe-92dd-ce30e1f674d1", + "76393c5d-7024-44f9-a095-fa8579176981", + "64c0cba3-91bc-4d50-9452-d3e73d91fbdc", + "2f867d19-2e5b-43e8-a3f3-137cb8f51241", + "dcc3ec32-61cb-47c3-83c1-ea0da0acf8cf", + "3b0b4600-34e4-403a-9164-99b08cdbbd95", + "581ef959-ef70-4854-81fe-00bf70a31f1e", + "544b3df5-7ccc-48b0-94cf-9539df182e14" ], "failures": [], "pending": [], "skipped": [], - "duration": 104, + "duration": 6928, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 12000 } ], "passes": [], @@ -2076,52 +1968,52 @@ "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 900000 + "_timeout": 12000 }, { - "uuid": "6c085342-3b4b-429d-b5b2-5213e58e9eba", - "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": "683bc6fa-e2da-4b30-8aa4-e447212a308d", + "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": "4be67b02-8a4d-4d65-bae8-d38b9e771df2", + "uuid": "5009acc5-12e4-462f-9cb7-862ffc854bde", "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-spatial-faunal-test.js", + "file": "/test/v2.0-data-spatial-faunal-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 \"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": 163, + "duration": 78, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa', { \n 'qs': {\"taxonname\":\"Excepteur irure\",\"taxagroup\":\"Ut aute ea et dolore\",\"ecolgroup\":\"in nulla eu\",\"status\":0,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/faunal', { \n 'qs': {\"sciname\":\"consectetur quis reprehenderit\",\"proj\": 4326,\"prec\": 1000},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "6abec881-9e0d-4e42-aef1-e55f2d3edf9a", - "parentUUID": "4be67b02-8a4d-4d65-bae8-d38b9e771df2", + "uuid": "e9e6fc25-90bc-4e8b-9a3a-89f3b1421d98", + "parentUUID": "5009acc5-12e4-462f-9cb7-862ffc854bde", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "6abec881-9e0d-4e42-aef1-e55f2d3edf9a" + "e9e6fc25-90bc-4e8b-9a3a-89f3b1421d98" ], "failures": [], "pending": [], "skipped": [], - "duration": 163, + "duration": 78, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2137,49 +2029,49 @@ "_timeout": 900000 }, { - "uuid": "9ff32943-5ade-4ad0-8b38-24c33764dfe3", - "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": "87546e2a-e007-4eab-8039-7fe9ecacf609", + "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": "2207e21a-ddf0-4f2d-ad82-eedf9d6b82ba", + "uuid": "87557ba1-2257-4181-a2b7-db1ac3817a39", "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", + "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 \"An array of datasets.\"", - "fullTitle": "tests for /v1.5/data/datasets/{datasetid} tests for get should respond 200 for \"An array of datasets.\"", + "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": 3293, + "duration": 595, "state": "passed", - "speed": "slow", + "speed": "medium", "pass": true, "fail": false, "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();", + "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": "7bab0ab2-c393-4031-bbde-5daf665476ca", - "parentUUID": "2207e21a-ddf0-4f2d-ad82-eedf9d6b82ba", + "uuid": "3b2d65c4-cabe-4a41-9a8d-544484e9f7d2", + "parentUUID": "87557ba1-2257-4181-a2b7-db1ac3817a39", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "7bab0ab2-c393-4031-bbde-5daf665476ca" + "3b2d65c4-cabe-4a41-9a8d-544484e9f7d2" ], "failures": [], "pending": [], "skipped": [], - "duration": 3293, + "duration": 595, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2195,49 +2087,49 @@ "_timeout": 900000 }, { - "uuid": "b5dd3e9b-52ef-418c-a784-1b6aa06f120f", - "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": "788fa880-0496-4b0d-9bf7-886b04c1a0ef", + "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": "e5af9a56-84ed-42cb-bd22-c704cdd03abe", + "uuid": "9d422c7d-67d9-42e0-9a3d-556a9fd3fe54", "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/v1.5-data-downloads-{datasetid}-test.js", + "file": "/test/v1.5-data-downloads-{datasetid}-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 \"Returned download object.\"", + "fullTitle": "tests for /v1.5/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"", "timedOut": false, - "duration": 86, + "duration": 616, "state": "passed", - "speed": "fast", + "speed": "medium", "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();", + "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": "5d29d3a2-201a-4f43-8d10-bb32e5b5a422", - "parentUUID": "e5af9a56-84ed-42cb-bd22-c704cdd03abe", + "uuid": "796972e9-3d04-4845-aca7-421a177627cd", + "parentUUID": "9d422c7d-67d9-42e0-9a3d-556a9fd3fe54", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "5d29d3a2-201a-4f43-8d10-bb32e5b5a422" + "796972e9-3d04-4845-aca7-421a177627cd" ], "failures": [], "pending": [], "skipped": [], - "duration": 86, + "duration": 616, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2253,49 +2145,49 @@ "_timeout": 900000 }, { - "uuid": "4d8bb10f-9f11-45c6-9d28-cdf7d251c33b", - "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": "96b83d11-b652-44fd-b594-35b3d416f7b7", + "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": [], "suites": [ { - "uuid": "1b231294-6eb6-4554-a169-75f53bedf613", + "uuid": "d578e6fd-b67b-4bd5-9012-6a75462ac059", "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", + "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 \"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 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": 71, + "duration": 3167, "state": "passed", - "speed": "fast", + "speed": "slow", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/dbtables', { \n 'qs': {\"table\":\"adipisicing ipsum dolor\",\"count\":true,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "34405eef-bfb3-442d-b672-8b6bef53f2f3", - "parentUUID": "1b231294-6eb6-4554-a169-75f53bedf613", + "uuid": "57ae4fc3-a27f-4585-b7f6-afb2247ab0c6", + "parentUUID": "d578e6fd-b67b-4bd5-9012-6a75462ac059", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "34405eef-bfb3-442d-b672-8b6bef53f2f3" + "57ae4fc3-a27f-4585-b7f6-afb2247ab0c6" ], "failures": [], "pending": [], "skipped": [], - "duration": 71, + "duration": 3167, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2311,49 +2203,49 @@ "_timeout": 900000 }, { - "uuid": "52548b41-f7cf-4623-99f8-9099a3a9d91a", - "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": "49de68df-5423-4d18-b918-571e41cc6a8d", + "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": "063e4b6c-3b7c-4792-a2dd-23e36e63d4e0", + "uuid": "4c430674-f274-4915-9cb5-471cfa1f2c07", "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-aggregatedatasets-{aggdatasetid}-test.js", + "file": "/test/v2.0-data-aggregatedatasets-{aggdatasetid}-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 \"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": 231, + "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/spatial/icesheet', { \n 'qs': {\"age\":13023,\"proj\": 4326,\"prec\": 1000},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/aggregatedatasets/5536', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "00ae8bc8-91c8-4725-807c-e7f0e6240ddf", - "parentUUID": "063e4b6c-3b7c-4792-a2dd-23e36e63d4e0", + "uuid": "61a94051-b2ba-4355-85aa-2103ce316a11", + "parentUUID": "4c430674-f274-4915-9cb5-471cfa1f2c07", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "00ae8bc8-91c8-4725-807c-e7f0e6240ddf" + "61a94051-b2ba-4355-85aa-2103ce316a11" ], "failures": [], "pending": [], "skipped": [], - "duration": 231, + "duration": 79, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2369,49 +2261,49 @@ "_timeout": 900000 }, { - "uuid": "71de5192-4be2-4779-87e3-726f41c3a8c1", - "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": "7af0f831-63eb-45ab-8cfb-1193e251e252", + "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": "0f195834-9a91-4d0e-9128-ba88ba7e7937", + "uuid": "6c313249-b5ce-42ae-a659-7f6742c2c4d3", "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-summary-dsdbmonth-test.js", + "file": "/test/v2.0-data-summary-dsdbmonth-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 \"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": 5, + "duration": 206, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "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();", + "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": "a1a2f582-50e6-4018-bd16-4d3113911337", - "parentUUID": "0f195834-9a91-4d0e-9128-ba88ba7e7937", + "uuid": "bd7154c4-dd6c-498a-a9d6-29d37fd5009d", + "parentUUID": "6c313249-b5ce-42ae-a659-7f6742c2c4d3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "a1a2f582-50e6-4018-bd16-4d3113911337" + "bd7154c4-dd6c-498a-a9d6-29d37fd5009d" ], "failures": [], "pending": [], "skipped": [], - "duration": 5, + "duration": 206, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2427,49 +2319,221 @@ "_timeout": 900000 }, { - "uuid": "25d8356f-cd99-4b04-834f-e34fc2e11d8d", - "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": "a88b2cad-72d5-4470-a6f6-daf27cda26b8", + "title": "Get taxon data:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js", + "file": "/test/taxa.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "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": 97, + "state": "passed", + "speed": "fast", + "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": {}, + "uuid": "6ddc326e-988c-4e21-b07e-46b57afd1d33", + "parentUUID": "a88b2cad-72d5-4470-a6f6-daf27cda26b8", + "isHook": false, + "skipped": false + }, + { + "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": 75, + "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": {}, + "uuid": "35f5b702-975d-41b8-8db7-6b6935cf6fa9", + "parentUUID": "a88b2cad-72d5-4470-a6f6-daf27cda26b8", + "isHook": false, + "skipped": false + }, + { + "title": "v2.0: Taxon queries should be case insensitive:", + "fullTitle": "Get taxon data: v2.0: Taxon queries should be case insensitive:", + "timedOut": false, + "duration": 140, + "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": {}, + "uuid": "a31c7df1-dff5-4a9f-a7cb-997bc6933975", + "parentUUID": "a88b2cad-72d5-4470-a6f6-daf27cda26b8", + "isHook": false, + "skipped": false + }, + { + "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": 139, + "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": {}, + "uuid": "cb79915f-9274-4f97-9117-fc8575e909a9", + "parentUUID": "a88b2cad-72d5-4470-a6f6-daf27cda26b8", + "isHook": false, + "skipped": false + }, + { + "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": 238, + "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": {}, + "uuid": "734ad610-f8bc-45ff-98da-1ef2a9aa9f7f", + "parentUUID": "a88b2cad-72d5-4470-a6f6-daf27cda26b8", + "isHook": false, + "skipped": false + }, + { + "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": 145, + "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": {}, + "uuid": "60d77ea2-b029-45cc-a5ff-b88f50307880", + "parentUUID": "a88b2cad-72d5-4470-a6f6-daf27cda26b8", + "isHook": false, + "skipped": false + }, + { + "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": 367, + "state": "passed", + "speed": "fast", + "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": {}, + "uuid": "cf71177f-9ba6-4671-8059-c13e40c0d0e4", + "parentUUID": "a88b2cad-72d5-4470-a6f6-daf27cda26b8", + "isHook": false, + "skipped": false + }, + { + "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": 383, + "state": "passed", + "speed": "fast", + "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": {}, + "uuid": "9bb7b1a5-8035-4321-8746-e04fec44960a", + "parentUUID": "a88b2cad-72d5-4470-a6f6-daf27cda26b8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "6ddc326e-988c-4e21-b07e-46b57afd1d33", + "35f5b702-975d-41b8-8db7-6b6935cf6fa9", + "a31c7df1-dff5-4a9f-a7cb-997bc6933975", + "cb79915f-9274-4f97-9117-fc8575e909a9", + "734ad610-f8bc-45ff-98da-1ef2a9aa9f7f", + "60d77ea2-b029-45cc-a5ff-b88f50307880", + "cf71177f-9ba6-4671-8059-c13e40c0d0e4", + "9bb7b1a5-8035-4321-8746-e04fec44960a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 1584, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "e451ec63-7828-468e-937b-6eb31bef33d1", + "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": "d2ef45c0-e7b9-4081-893e-35f3bb7fdfbd", + "uuid": "05b146f4-7e04-42d6-a7c5-14fa1abc3810", "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-occurrences-{occurrenceid}-test.js", + "file": "/test/v2.0-data-occurrences-{occurrenceid}-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 \"occurrence\"", + "fullTitle": "tests for /v2.0/data/occurrences/{occurrenceid} tests for get should respond 200 for \"occurrence\"", "timedOut": false, - "duration": 5325, + "duration": 5, "state": "passed", - "speed": "slow", + "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();", + "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": "efbd7a52-7401-4e70-8397-dfd440e97af7", - "parentUUID": "d2ef45c0-e7b9-4081-893e-35f3bb7fdfbd", + "uuid": "f2293bb0-4d32-4ac3-990d-a011e65445f9", + "parentUUID": "05b146f4-7e04-42d6-a7c5-14fa1abc3810", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "efbd7a52-7401-4e70-8397-dfd440e97af7" + "f2293bb0-4d32-4ac3-990d-a011e65445f9" ], "failures": [], "pending": [], "skipped": [], - "duration": 5325, + "duration": 5, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2485,49 +2549,49 @@ "_timeout": 900000 }, { - "uuid": "b6bf884f-23c7-4dbd-ba06-50f7d890b395", - "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": "fae5fead-d01b-4839-b50c-f4820df4e96e", + "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": "de691e5a-d807-4528-ad92-344645126113", + "uuid": "cfbf65e8-4331-422c-93c4-ad20ca702bdf", "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-data-datasets-{datasetid}-doi-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-doi-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 \"DOI\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/doi tests for get should respond 200 for \"DOI\"", "timedOut": false, - "duration": 70, + "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/depositionalenvironments/root', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "b807566b-266a-4043-8cc6-c45438047868", - "parentUUID": "de691e5a-d807-4528-ad92-344645126113", + "uuid": "0ce937ab-1d5d-465b-9f7d-96a4eb46ee1d", + "parentUUID": "cfbf65e8-4331-422c-93c4-ad20ca702bdf", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "b807566b-266a-4043-8cc6-c45438047868" + "0ce937ab-1d5d-465b-9f7d-96a4eb46ee1d" ], "failures": [], "pending": [], "skipped": [], - "duration": 70, + "duration": 74, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2543,49 +2607,49 @@ "_timeout": 900000 }, { - "uuid": "d952330a-cd68-430d-9d86-cc99b90f25b6", - "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": "31f93c84-0e3d-49d5-aa9f-6ba43778fb2d", + "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": "3095ab6c-070f-448a-8dd0-fb555b9cbd75", + "uuid": "07cf6dd0-7f72-4d3e-b230-02d1c85a587e", "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-spatial-icesheet-test.js", + "file": "/test/v2.0-data-spatial-icesheet-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 \"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": 68, + "duration": 145, "state": "passed", "speed": "fast", "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/icesheet', { \n 'qs': {\"age\":13209,\"proj\": 4326,\"prec\": 1000},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "e5bfe42d-50a5-4782-90af-f88aabd8ac39", - "parentUUID": "3095ab6c-070f-448a-8dd0-fb555b9cbd75", + "uuid": "774a094b-cd5a-4e7a-a414-8ccf9dbce06a", + "parentUUID": "07cf6dd0-7f72-4d3e-b230-02d1c85a587e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "e5bfe42d-50a5-4782-90af-f88aabd8ac39" + "774a094b-cd5a-4e7a-a414-8ccf9dbce06a" ], "failures": [], "pending": [], "skipped": [], - "duration": 68, + "duration": 145, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2601,49 +2665,49 @@ "_timeout": 900000 }, { - "uuid": "4b059ea3-b59b-4d88-b79f-825b87a128c5", - "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": "3c7e7d1a-a74f-4a24-9013-17b50d02049e", + "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": "95e84808-3688-491a-acb7-5b777c3cf9be", + "uuid": "6b5a49f8-c307-4b55-820b-471371e70dfc", "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-taxa-{taxonid}-test.js", + "file": "/test/v2.0-data-taxa-{taxonid}-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 \"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, + "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/pollen', { \n 'qs': {\"taxonname\":\"esse ut dolore labore\",\"taxonid\":32590,\"siteid\":30859,\"sitename\":\"sit\",\"datasettype\":\"geochronologic\",\"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\":15225459,\"ageyoung\": 1000,\"ageold\": 10000,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "32441374-e6a5-48ac-a3d2-4515ad78de43", - "parentUUID": "95e84808-3688-491a-acb7-5b777c3cf9be", + "uuid": "324bb658-de29-466c-88e9-ece31f3ac6a9", + "parentUUID": "6b5a49f8-c307-4b55-820b-471371e70dfc", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "32441374-e6a5-48ac-a3d2-4515ad78de43" + "324bb658-de29-466c-88e9-ece31f3ac6a9" ], "failures": [], "pending": [], "skipped": [], - "duration": 1, + "duration": 72, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2659,49 +2723,49 @@ "_timeout": 900000 }, { - "uuid": "eee7e3b8-e072-49bf-83da-f53fa137c5f0", - "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": "e3998d96-11f0-496d-a519-82ae4b2f2e0e", + "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": "d51edb1a-fefb-423e-bcfd-e08c5e28424d", + "uuid": "459e8bac-efcf-4895-b56b-da1e9682a5b5", "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-publications-test.js", + "file": "/test/v2.0-data-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 \"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": 17651, + "duration": 82, "state": "passed", - "speed": "slow", + "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\":3},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/publications', { \n 'qs': {\"publicationid\":4903,\"datasetid\":19947503,\"siteid\":38778,\"familyname\":\"'sLglW\",\"pubtype\":\"Book Chapter\",\"year\":1527,\"search\":\"ut sit in mollit\",\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "77cdd208-5ad3-4221-9aac-dbff877be662", - "parentUUID": "d51edb1a-fefb-423e-bcfd-e08c5e28424d", + "uuid": "b30ff1c7-abed-48d1-9cf2-c780ed764df0", + "parentUUID": "459e8bac-efcf-4895-b56b-da1e9682a5b5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "77cdd208-5ad3-4221-9aac-dbff877be662" + "b30ff1c7-abed-48d1-9cf2-c780ed764df0" ], "failures": [], "pending": [], "skipped": [], - "duration": 17651, + "duration": 82, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2717,49 +2781,49 @@ "_timeout": 900000 }, { - "uuid": "4773d85f-e4cc-47b1-9ea2-6dee037c2df8", - "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": [], + "uuid": "1afa7c69-e447-415a-a317-e08922f92ec2", + "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": "985dc8aa-771b-45de-adda-9727f5449a6c", + "uuid": "112d19a0-e3a9-4b3d-97eb-41c3e6bc592c", "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-apps-taxagrouptypes-test.js", + "file": "/test/v2.0-apps-taxagrouptypes-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 \"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": 103, + "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/taxa/500/occurrences', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "adde0ac2-90c7-498a-8717-ef836ce89af8", - "parentUUID": "985dc8aa-771b-45de-adda-9727f5449a6c", + "uuid": "94369cd7-2554-4d47-b910-6d025c244c38", + "parentUUID": "112d19a0-e3a9-4b3d-97eb-41c3e6bc592c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "adde0ac2-90c7-498a-8717-ef836ce89af8" + "94369cd7-2554-4d47-b910-6d025c244c38" ], "failures": [], "pending": [], "skipped": [], - "duration": 103, + "duration": 113, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2775,49 +2839,49 @@ "_timeout": 900000 }, { - "uuid": "3fc91b22-524e-43eb-815d-fd00158a4be9", - "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": "360071c7-f490-4898-839e-37488c74a4bc", + "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": "6618e46e-5db3-4021-a7b7-b8fdf6e2cce7", + "uuid": "603af640-bdad-4e82-87d3-502c582e38c1", "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-sites-{siteid}-chronologies-test.js", + "file": "/test/v2.0-data-sites-{siteid}-chronologies-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 \"chronology\"", + "fullTitle": "tests for /v2.0/data/sites/{siteid}/chronologies tests for get should respond 200 for \"chronology\"", "timedOut": false, - "duration": 66, + "duration": 157, "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();", + "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": "2441bec7-32ba-463b-b4b9-385ddfce78eb", - "parentUUID": "6618e46e-5db3-4021-a7b7-b8fdf6e2cce7", + "uuid": "85eba53f-80e3-43fb-b278-be417a192d6a", + "parentUUID": "603af640-bdad-4e82-87d3-502c582e38c1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "2441bec7-32ba-463b-b4b9-385ddfce78eb" + "85eba53f-80e3-43fb-b278-be417a192d6a" ], "failures": [], "pending": [], "skipped": [], - "duration": 66, + "duration": 157, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2833,49 +2897,49 @@ "_timeout": 900000 }, { - "uuid": "0c0792ac-2aff-4b74-ae21-2ec807758b2f", - "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": "fff0022e-bf3e-4146-b9db-769f043dd485", + "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": "10aec296-7fde-41f6-a36b-8b8d8baac7b1", + "uuid": "d23345cd-65fa-4908-9542-c66fe51c33d5", "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-chronologies-{chronid}-test.js", + "file": "/test/v2.0-data-chronologies-{chronid}-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 \"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": 37083, + "duration": 79, "state": "passed", - "speed": "slow", + "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();", + "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": "9e17d191-91b2-4394-8cb0-b87fdc4bbf58", - "parentUUID": "10aec296-7fde-41f6-a36b-8b8d8baac7b1", + "uuid": "e10c02a4-ca3a-432a-bd3d-63afcc19ff2d", + "parentUUID": "d23345cd-65fa-4908-9542-c66fe51c33d5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "9e17d191-91b2-4394-8cb0-b87fdc4bbf58" + "e10c02a4-ca3a-432a-bd3d-63afcc19ff2d" ], "failures": [], "pending": [], "skipped": [], - "duration": 37083, + "duration": 79, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2891,49 +2955,88 @@ "_timeout": 900000 }, { - "uuid": "5f411864-d50e-4067-b87f-354a8c93ec55", - "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": "00aa662b-1058-4cfc-9c60-0bcef4d6f2b1", + "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": 4, + "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": "cc23e395-71f2-4615-87a5-89a3283d6a7a", + "parentUUID": "00aa662b-1058-4cfc-9c60-0bcef4d6f2b1", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cc23e395-71f2-4615-87a5-89a3283d6a7a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 4, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "e283cefc-80d5-4a8b-977b-138e046dc688", + "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": "599873b8-eb72-4565-81ea-4c024e53996e", + "uuid": "f5d4c37f-84ed-4a1a-80b3-f990b21a4ec6", "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-sites-{siteid}-test.js", + "file": "/test/v2.0-data-sites-{siteid}-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 \"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": 87, + "duration": 5, "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();", + "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": "16ffdd81-ff80-40a7-b7d6-4af2e3b2af2a", - "parentUUID": "599873b8-eb72-4565-81ea-4c024e53996e", + "uuid": "7a0fbc79-4b92-403e-9d31-ae8ad2b700e3", + "parentUUID": "f5d4c37f-84ed-4a1a-80b3-f990b21a4ec6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "16ffdd81-ff80-40a7-b7d6-4af2e3b2af2a" + "7a0fbc79-4b92-403e-9d31-ae8ad2b700e3" ], "failures": [], "pending": [], "skipped": [], - "duration": 87, + "duration": 5, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -2949,49 +3052,49 @@ "_timeout": 900000 }, { - "uuid": "7e6d2e3b-d9ab-4a74-8a31-4f491226ed27", - "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": "cbcb24a8-4e15-4588-abfc-7d27480a4b35", + "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": [ { - "uuid": "cfae48e0-ab37-459f-a6cf-ae3394f45ce1", + "uuid": "c35e4f1b-54b1-4a34-8ce1-ae59489bdb92", "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/v2.0-data-dbtables-test.js", + "file": "/test/v2.0-data-dbtables-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 /v2.0/data/dbtables tests for get should respond 200 for \"Returned table.\"", "timedOut": false, - "duration": 90, + "duration": 71, "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/dbtables', { \n 'qs': {\"table\":\"culpa qui aliqua\",\"count\":false,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "eeb60763-d807-4f9f-a145-7eaacb2b4cad", - "parentUUID": "cfae48e0-ab37-459f-a6cf-ae3394f45ce1", + "uuid": "18c75360-f81d-40df-add3-894df06404db", + "parentUUID": "c35e4f1b-54b1-4a34-8ce1-ae59489bdb92", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "eeb60763-d807-4f9f-a145-7eaacb2b4cad" + "18c75360-f81d-40df-add3-894df06404db" ], "failures": [], "pending": [], "skipped": [], - "duration": 90, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3007,49 +3110,49 @@ "_timeout": 900000 }, { - "uuid": "c804a1ae-8610-4c15-a93f-e410a163149a", - "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": "1d66983c-def0-493a-ae63-28440062debd", + "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": "b4f0c3f6-acd0-45fc-b732-11b37ac0db14", + "uuid": "22ffdf52-f46b-4053-b37d-0067a995ce4e", "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-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 tests for get 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": 138, + "duration": 2417, "state": "passed", - "speed": "fast", + "speed": "slow", "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();", + "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": "8c90492e-fb49-433d-8f7a-0025905a6f5e", - "parentUUID": "b4f0c3f6-acd0-45fc-b732-11b37ac0db14", + "uuid": "1d419c2a-8134-42d9-b1d2-3015bbfcb043", + "parentUUID": "22ffdf52-f46b-4053-b37d-0067a995ce4e", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "8c90492e-fb49-433d-8f7a-0025905a6f5e" + "1d419c2a-8134-42d9-b1d2-3015bbfcb043" ], "failures": [], "pending": [], "skipped": [], - "duration": 138, + "duration": 2417, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3065,49 +3168,49 @@ "_timeout": 900000 }, { - "uuid": "1053b221-2dde-49e9-be2b-3c50a54c3f38", - "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": "5c2a80b5-5677-4b1c-aad1-d8965d729b45", + "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": "fec0e582-8b8f-4404-9d74-a23419b2417a", + "uuid": "f0d79586-95ef-4851-a023-f8f7a8a6d7e1", "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/v1.5-data-datasets-{datasetid}-test.js", + "file": "/test/v1.5-data-datasets-{datasetid}-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 datasets.\"", + "fullTitle": "tests for /v1.5/data/datasets/{datasetid} tests for get should respond 200 for \"An array of datasets.\"", "timedOut": false, - "duration": 78, + "duration": 1485, "state": "passed", - "speed": "fast", + "speed": "slow", "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();", + "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": "c0b668fb-f9fc-4b82-99c9-fdb1a34682d5", - "parentUUID": "fec0e582-8b8f-4404-9d74-a23419b2417a", + "uuid": "c6466063-c685-40c3-b538-070c42ca91b7", + "parentUUID": "f0d79586-95ef-4851-a023-f8f7a8a6d7e1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "c0b668fb-f9fc-4b82-99c9-fdb1a34682d5" + "c6466063-c685-40c3-b538-070c42ca91b7" ], "failures": [], "pending": [], "skipped": [], - "duration": 78, + "duration": 1485, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3123,49 +3226,49 @@ "_timeout": 900000 }, { - "uuid": "c4b2ed7f-3c79-4d61-822d-ea375124867e", - "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": "dc2e707c-892b-4c5f-9d8e-82b0133467f8", + "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": "c91ffba9-2b2e-4994-989e-26f101c4d53e", + "uuid": "bca15e83-d64b-47c6-9276-071c6b0fbd72", "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-speleothems-{collectionunitid}-test.js", + "file": "/test/v2.0-data-speleothems-{collectionunitid}-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 \"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": 84, + "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/datasets/500/chronologies', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/speleothems/7950', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "535cbe96-912b-46a2-aa86-e5eca74ff6f9", - "parentUUID": "c91ffba9-2b2e-4994-989e-26f101c4d53e", + "uuid": "643fd5f9-5f22-4cdc-bbd7-f7cb70b05db4", + "parentUUID": "bca15e83-d64b-47c6-9276-071c6b0fbd72", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "535cbe96-912b-46a2-aa86-e5eca74ff6f9" + "643fd5f9-5f22-4cdc-bbd7-f7cb70b05db4" ], "failures": [], "pending": [], "skipped": [], - "duration": 84, + "duration": 76, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3181,49 +3284,49 @@ "_timeout": 900000 }, { - "uuid": "8e31dc4d-40b1-4949-80d6-f2e59edefc4c", - "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": "199b26ad-46d0-49cb-baea-e6b91c64c5d8", + "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": [], "suites": [ { - "uuid": "27dd8429-1da9-4429-a627-f71e87428d97", + "uuid": "82029f80-3a41-47b0-bdc6-80caa3fe27f9", "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-data-datasets-{datasetid}-publications-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-publications-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 \"Publication\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/publications tests for get should respond 200 for \"Publication\"", "timedOut": false, - "duration": 70, + "duration": 79, "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\":8},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "7a1309ab-6f1b-44a9-844c-1a75f8c6b96e", - "parentUUID": "27dd8429-1da9-4429-a627-f71e87428d97", + "uuid": "b0da2658-2082-4b8f-ade1-6ad75c0a7a4a", + "parentUUID": "82029f80-3a41-47b0-bdc6-80caa3fe27f9", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "7a1309ab-6f1b-44a9-844c-1a75f8c6b96e" + "b0da2658-2082-4b8f-ade1-6ad75c0a7a4a" ], "failures": [], "pending": [], "skipped": [], - "duration": 70, + "duration": 79, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3239,49 +3342,49 @@ "_timeout": 900000 }, { - "uuid": "a184713a-7cb9-4199-bad4-d8c059ec0bff", - "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": "c9e33b08-c497-4231-94e8-d35e6d3ab3b4", + "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": "ba66c63f-2163-4dd8-ab56-5868f7179bd5", + "uuid": "f281310b-5fbb-4f19-95f9-cc5a05b4708d", "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-test.js", + "file": "/test/v2.0-data-contacts-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 \"contact\"", + "fullTitle": "tests for /v2.0/data/contacts tests for get should respond 200 for \"contact\"", "timedOut": false, - "duration": 98, + "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/contacts/500/sites', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts', { \n 'qs': {\"contactid\":8421,\"familyname\":\"UcoCW\",\"contactname\":\"FDc\",\"contactstatus\":\"active\",\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "be210353-c26a-4791-8382-87097d9308df", - "parentUUID": "ba66c63f-2163-4dd8-ab56-5868f7179bd5", + "uuid": "5c65f9c4-cfa1-44b1-b49c-d4bf55584be5", + "parentUUID": "f281310b-5fbb-4f19-95f9-cc5a05b4708d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "be210353-c26a-4791-8382-87097d9308df" + "5c65f9c4-cfa1-44b1-b49c-d4bf55584be5" ], "failures": [], "pending": [], "skipped": [], - "duration": 98, + "duration": 73, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3297,524 +3400,25 @@ "_timeout": 900000 }, { - "uuid": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", - "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": "fde645f7-8128-4d7f-bf1d-ce689fe66d72", + "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": [ - { - "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": 73, - "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": "0e134da9-96f0-4787-831d-6db952bb0e1a", - "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", - "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": 72, - "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": "be1b8c77-71e0-4149-9b6a-103120ae57bc", - "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", - "isHook": false, - "skipped": false - }, + "tests": [], + "suites": [ { - "title": "Get publication by querying author:", - "fullTitle": "Get publication data any number of ways: Get publication by querying author:", - "timedOut": false, - "duration": 270, - "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": "c40b10f0-ae0a-4dee-b99e-1b3d3391fcd0", - "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", - "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": 71, - "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": "b56eac6d-4bb1-474c-bbb2-0c6a5df174ec", - "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", - "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": 72, - "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": "6374fec6-bf96-4d09-bbde-7e5240a00973", - "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", - "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": 76, - "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": "0d8d0f0b-da8a-4a3b-9343-05e9745ac60c", - "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", - "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": 77, - "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": "0a1e1513-17f4-46ad-92bf-9b6096dd5df7", - "parentUUID": "1813b5cb-39c1-468e-9bfa-49629b1c0fdf", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "0e134da9-96f0-4787-831d-6db952bb0e1a", - "be1b8c77-71e0-4149-9b6a-103120ae57bc", - "c40b10f0-ae0a-4dee-b99e-1b3d3391fcd0", - "b56eac6d-4bb1-474c-bbb2-0c6a5df174ec", - "6374fec6-bf96-4d09-bbde-7e5240a00973", - "0d8d0f0b-da8a-4a3b-9343-05e9745ac60c", - "0a1e1513-17f4-46ad-92bf-9b6096dd5df7" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 711, - "root": false, - "rootEmpty": false, - "_timeout": 15000 - }, - { - "uuid": "eabfec1f-4ced-46a5-b787-e6793bf9c964", - "title": "Get taxon data:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/taxa.js", - "file": "/test/taxa.js", - "beforeHooks": [], - "afterHooks": [], - "tests": [ - { - "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": 91, - "state": "passed", - "speed": "fast", - "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": {}, - "uuid": "6f92e78d-a773-4dba-9cc8-6d950bdc0baf", - "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", - "isHook": false, - "skipped": false - }, - { - "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": 69, - "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": {}, - "uuid": "9bd05b07-1aca-4377-828b-96d976264f25", - "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", - "isHook": false, - "skipped": false - }, - { - "title": "v2.0: Taxon queries should be case insensitive:", - "fullTitle": "Get taxon data: v2.0: Taxon queries should be case insensitive:", - "timedOut": false, - "duration": 139, - "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": {}, - "uuid": "e47d3912-c527-4ba4-a256-62402849a889", - "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", - "isHook": false, - "skipped": false - }, - { - "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": 141, - "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": {}, - "uuid": "45c7d81e-be09-4e47-9994-a32355e56f91", - "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", - "isHook": false, - "skipped": false - }, - { - "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": 270, - "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": {}, - "uuid": "3e9efce9-92d5-43d0-a467-f87e7198d8c5", - "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", - "isHook": false, - "skipped": false - }, - { - "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": 145, - "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": {}, - "uuid": "c29090ff-4777-49be-ad97-d6b6c35820a4", - "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", - "isHook": false, - "skipped": false - }, - { - "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": 776, - "state": "passed", - "speed": "medium", - "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": {}, - "uuid": "ce45fef5-c9b4-4472-acc6-e73184c7e532", - "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", - "isHook": false, - "skipped": false - }, - { - "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": 567, - "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": {}, - "uuid": "1e29261f-6690-4d42-a623-60baccc864cb", - "parentUUID": "eabfec1f-4ced-46a5-b787-e6793bf9c964", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "6f92e78d-a773-4dba-9cc8-6d950bdc0baf", - "9bd05b07-1aca-4377-828b-96d976264f25", - "e47d3912-c527-4ba4-a256-62402849a889", - "45c7d81e-be09-4e47-9994-a32355e56f91", - "3e9efce9-92d5-43d0-a467-f87e7198d8c5", - "c29090ff-4777-49be-ad97-d6b6c35820a4", - "ce45fef5-c9b4-4472-acc6-e73184c7e532", - "1e29261f-6690-4d42-a623-60baccc864cb" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 2198, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "39cfe2ec-cb78-4b7b-aefc-ee789cad71c5", - "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": "14ddf9e7-2751-4043-adac-5c1086158947", + "uuid": "2fe32e2d-c095-4f5e-9dbb-7f0c1a064a76", "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", - "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.\"", - "timedOut": false, - "duration": 85, - "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": {}, - "uuid": "f951c749-c853-4861-8da3-2844d5068809", - "parentUUID": "14ddf9e7-2751-4043-adac-5c1086158947", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "f951c749-c853-4861-8da3-2844d5068809" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 85, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "a7581fe8-a3ff-4560-8b39-840a4e84b076", - "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": "ad8bcea8-bf36-4cdf-8379-8ad478c40c88", - "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", - "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.\"", - "timedOut": false, - "duration": 213, - "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": {}, - "uuid": "fea4651f-a34d-4949-8fad-51733ef60e8a", - "parentUUID": "ad8bcea8-bf36-4cdf-8379-8ad478c40c88", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "fea4651f-a34d-4949-8fad-51733ef60e8a" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 213, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "96f29cb4-55f7-4043-a0cd-b76fe5a43887", - "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": "7b9e050e-5c11-4999-9462-39004e9f3af6", - "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 \"Returned download object.\"", - "fullTitle": "tests for /v2.0/data/frozen/{datasetid} tests for get should respond 200 for \"Returned download object.\"", - "timedOut": false, - "duration": 167, - "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": {}, - "uuid": "801a85f7-7175-472c-89ab-53aeb86fe243", - "parentUUID": "7b9e050e-5c11-4999-9462-39004e9f3af6", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "801a85f7-7175-472c-89ab-53aeb86fe243" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 167, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "038160bf-5b3a-4db6-ba65-670902c4abc6", - "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": "702ef4ec-e0bc-4d68-a844-bb474f431045", - "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/v1.5-data-occurrence-{occurrenceid}-test.js", + "file": "/test/v1.5-data-occurrence-{occurrenceid}-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 \"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": 75, "state": "passed", @@ -3823,17 +3427,17 @@ "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/6807', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "1f714d69-a5ef-45b7-b6e6-49381812988c", - "parentUUID": "702ef4ec-e0bc-4d68-a844-bb474f431045", + "uuid": "04803b4c-7ad5-4226-87f5-41e4c1db25f3", + "parentUUID": "2fe32e2d-c095-4f5e-9dbb-7f0c1a064a76", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "1f714d69-a5ef-45b7-b6e6-49381812988c" + "04803b4c-7ad5-4226-87f5-41e4c1db25f3" ], "failures": [], "pending": [], @@ -3854,107 +3458,49 @@ "_timeout": 900000 }, { - "uuid": "4b7f701e-d953-4ef1-9297-da60e02157cc", - "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": "7541aaf6-3adf-4adb-a5c8-37d9ad972d1a", - "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": 3104, - "state": "passed", - "speed": "slow", - "pass": true, - "fail": false, - "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": {}, - "uuid": "9053eb0a-5c11-4c80-9587-99c0d9273ac9", - "parentUUID": "7541aaf6-3adf-4adb-a5c8-37d9ad972d1a", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "9053eb0a-5c11-4c80-9587-99c0d9273ac9" - ], - "failures": [], - "pending": [], - "skipped": [], - "duration": 3104, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - } - ], - "passes": [], - "failures": [], - "pending": [], - "skipped": [], - "duration": 0, - "root": false, - "rootEmpty": false, - "_timeout": 900000 - }, - { - "uuid": "3c184572-5d20-4f92-82eb-ae430c14a3ba", - "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": "c3d4c58f-49c7-48f3-a7cc-0b82585ee88c", + "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": "67391b1b-8fe5-482c-a717-be5df4ef7ee8", + "uuid": "3d78797f-19df-4dc5-ba40-eb3be294d6e3", "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/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 \"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 \"contact\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/contacts tests for get should respond 200 for \"contact\"", "timedOut": false, - "duration": 5079, + "duration": 68, "state": "passed", - "speed": "slow", + "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();", + "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": "d0895b28-7240-4c23-a506-6cbcd888a4b0", - "parentUUID": "67391b1b-8fe5-482c-a717-be5df4ef7ee8", + "uuid": "3afff4cb-2e42-433e-a195-b69e288243ff", + "parentUUID": "3d78797f-19df-4dc5-ba40-eb3be294d6e3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "d0895b28-7240-4c23-a506-6cbcd888a4b0" + "3afff4cb-2e42-433e-a195-b69e288243ff" ], "failures": [], "pending": [], "skipped": [], - "duration": 5079, + "duration": 68, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -3970,49 +3516,49 @@ "_timeout": 900000 }, { - "uuid": "6ec0cfc2-ab20-4100-a2f2-e3027350240e", - "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": "f479c317-1aea-408d-bc76-2ab1f6f7598b", + "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": "d86aee92-501d-4764-9383-5cb6a631b1ae", + "uuid": "c8c14c48-1e21-44e8-867b-898d81c901c0", "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", + "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 \"An array of sites.\"", - "fullTitle": "tests for /v2.0/data/sites/{siteid} tests for get should respond 200 for \"An array of sites.\"", + "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": 86, + "duration": 3, "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', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "2bb02e2e-c5cc-4fd4-8c9f-7382730a35f2", - "parentUUID": "d86aee92-501d-4764-9383-5cb6a631b1ae", + "uuid": "1b55fcf0-a53e-4af6-9329-bfbe5c3b22bb", + "parentUUID": "c8c14c48-1e21-44e8-867b-898d81c901c0", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "2bb02e2e-c5cc-4fd4-8c9f-7382730a35f2" + "1b55fcf0-a53e-4af6-9329-bfbe5c3b22bb" ], "failures": [], "pending": [], "skipped": [], - "duration": 86, + "duration": 3, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4028,49 +3574,49 @@ "_timeout": 900000 }, { - "uuid": "d80316be-4026-428f-9f02-4a10421776a8", - "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": "6af481b7-54c1-4af9-89b1-d0039c873d9f", + "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": "359f32d1-7830-4302-b075-13e9b943a31f", + "uuid": "28081e74-ca87-44a8-ab4d-cbb2c4ec10a9", "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-test.js", + "file": "/test/v2.0-apps-constdb-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 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": 68, + "duration": 34396, "state": "passed", - "speed": "fast", + "speed": "slow", "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();", + "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": "589ad4b4-e51b-460e-a8b4-e78d9514e05e", - "parentUUID": "359f32d1-7830-4302-b075-13e9b943a31f", + "uuid": "6085c591-a0b7-4469-b020-630f778ffce5", + "parentUUID": "28081e74-ca87-44a8-ab4d-cbb2c4ec10a9", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "589ad4b4-e51b-460e-a8b4-e78d9514e05e" + "6085c591-a0b7-4469-b020-630f778ffce5" ], "failures": [], "pending": [], "skipped": [], - "duration": 68, + "duration": 34396, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4086,203 +3632,49 @@ "_timeout": 900000 }, { - "uuid": "55440428-d2d6-434e-95f6-958100aadcf4", - "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": [ - { - "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": 109, - "state": "passed", - "speed": "fast", - "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": "0f01e06a-2df0-4d55-8467-351a4f8ba523", - "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", - "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": 113, - "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'][0]).length > 0;\n })\n .expect(function(res) {\n return res.body['data'][0]['siteid'] === 12;\n })\n .expect(200, done);", - "err": {}, - "uuid": "848cd244-f1c4-46ff-946d-26162322ced5", - "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", - "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": 88, - "state": "passed", - "speed": "fast", - "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": "1422cc5a-72d0-4fb3-ac97-974e6e2bd57a", - "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", - "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": 137, - "state": "passed", - "speed": "fast", - "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": "dc8fd38d-4875-47f0-bffc-01119c5e6e10", - "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", - "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": 7, - "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": "4c370fc5-e434-4000-88b6-261c3189f53b", - "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", - "isHook": false, - "skipped": false - }, - { - "title": "Limits work:", - "fullTitle": "Get datasets any number of ways: Limits work:", - "timedOut": false, - "duration": 264, - "state": "passed", - "speed": "fast", - "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": "f4d4d87e-a24b-4262-a718-b57c4246c964", - "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", - "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": "ce056626-2665-4a67-9456-2f12e297a070", - "parentUUID": "55440428-d2d6-434e-95f6-958100aadcf4", - "isHook": false, - "skipped": false - } - ], - "suites": [], - "passes": [ - "0f01e06a-2df0-4d55-8467-351a4f8ba523", - "848cd244-f1c4-46ff-946d-26162322ced5", - "1422cc5a-72d0-4fb3-ac97-974e6e2bd57a", - "dc8fd38d-4875-47f0-bffc-01119c5e6e10", - "4c370fc5-e434-4000-88b6-261c3189f53b", - "f4d4d87e-a24b-4262-a718-b57c4246c964" - ], - "failures": [], - "pending": [ - "ce056626-2665-4a67-9456-2f12e297a070" - ], - "skipped": [], - "duration": 718, - "root": false, - "rootEmpty": false, - "_timeout": 50000 - }, - { - "uuid": "857acbca-5d7a-4eab-8aa8-dd324f5a05e3", - "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": "65133529-86d6-497d-8d54-7f14f99f5de0", + "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": [], "suites": [ { - "uuid": "cc0ace43-8ad3-4801-8f84-a5b9c7f525b5", + "uuid": "c4947959-53d8-412f-b19a-2671e3fa9b2a", "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-data-occurrences-test.js", + "file": "/test/v2.0-data-occurrences-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 \"occurrence\"", + "fullTitle": "tests for /v2.0/data/occurrences tests for get should respond 200 for \"occurrence\"", "timedOut": false, - "duration": 107, + "duration": 91, "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', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/occurrences', { \n 'qs': {\"taxonname\":\"do\",\"taxonid\":15630,\"siteid\":47495,\"sitename\":\"Excepteur quis exercitation in voluptate\",\"datasettype\":\"physical sedimentology\",\"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\":2824041,\"ageyoung\": 1000,\"ageold\": 10000,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "62a8fa6f-5bac-4a1a-a6c5-27ac7e400fd4", - "parentUUID": "cc0ace43-8ad3-4801-8f84-a5b9c7f525b5", + "uuid": "bb63ccee-95e5-412d-a74e-2e8fd39f6e7e", + "parentUUID": "c4947959-53d8-412f-b19a-2671e3fa9b2a", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "62a8fa6f-5bac-4a1a-a6c5-27ac7e400fd4" + "bb63ccee-95e5-412d-a74e-2e8fd39f6e7e" ], "failures": [], "pending": [], "skipped": [], - "duration": 107, + "duration": 91, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4298,49 +3690,49 @@ "_timeout": 900000 }, { - "uuid": "b4620248-9856-4068-9cf6-f8210af07b4f", - "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": "aff86672-6400-4276-866d-5c48e464ebcb", + "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": "9877327e-653b-4e6a-a306-2b7ccfeb70eb", + "uuid": "77c1eff6-8979-4807-8c1b-a61ee9032d84", "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-downloads-{datasetid}-test.js", + "file": "/test/v2.0-data-downloads-{datasetid}-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 \"Returned download object.\"", + "fullTitle": "tests for /v2.0/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"", "timedOut": false, - "duration": 756, + "duration": 3073, "state": "passed", - "speed": "medium", + "speed": "slow", "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\":\"Neotoma Testate Amoebae Database\"},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "c5e8590b-f652-4da7-b545-dc8d89e74094", - "parentUUID": "9877327e-653b-4e6a-a306-2b7ccfeb70eb", + "uuid": "4add68ec-2b25-4ad4-9efd-3576da8b500e", + "parentUUID": "77c1eff6-8979-4807-8c1b-a61ee9032d84", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "c5e8590b-f652-4da7-b545-dc8d89e74094" + "4add68ec-2b25-4ad4-9efd-3576da8b500e" ], "failures": [], "pending": [], "skipped": [], - "duration": 756, + "duration": 3073, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4356,49 +3748,49 @@ "_timeout": 900000 }, { - "uuid": "4fbe1a3f-8b93-459a-bb1c-caed281102b1", - "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": "d8964bfe-2d86-4d3a-8927-3267edce891c", + "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": "6c7ecff1-ab27-463d-93bd-1dbdc0fe1c93", + "uuid": "816d1d04-f64c-4fd3-9d20-ded3237c15c2", "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-datasets_elc-test.js", + "file": "/test/v2.0-data-datasets_elc-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 \"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": 649, + "duration": 91, "state": "passed", - "speed": "medium", + "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets_elc', { \n 'qs': {\"siteid\":19427,\"contactid\":9808,\"datasettype\":\"ostracode surface sample\",\"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\":22042396},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "0d833e17-c3bb-4a60-9a33-e030c60290bd", - "parentUUID": "6c7ecff1-ab27-463d-93bd-1dbdc0fe1c93", + "uuid": "44a233b4-f35d-418d-b3c9-69581ff54b12", + "parentUUID": "816d1d04-f64c-4fd3-9d20-ded3237c15c2", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "0d833e17-c3bb-4a60-9a33-e030c60290bd" + "44a233b4-f35d-418d-b3c9-69581ff54b12" ], "failures": [], "pending": [], "skipped": [], - "duration": 649, + "duration": 91, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4414,49 +3806,49 @@ "_timeout": 900000 }, { - "uuid": "25754640-41e6-4714-9562-2ff50b965d46", - "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": "b7f8b440-bb0c-4019-987a-ce52466f586c", + "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": "8711b4eb-9484-4e28-9632-dbace92c9649", + "uuid": "9e02eb05-7071-46c6-ad3f-7018427a5a50", "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-apps-keywords-test.js", + "file": "/test/v2.0-apps-keywords-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 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": 158, + "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/500/chronologies', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "6e62b170-8d5a-4f8c-94ac-5ec030e4e967", - "parentUUID": "8711b4eb-9484-4e28-9632-dbace92c9649", + "uuid": "763984e9-37cc-4f12-823f-b9e34bdf9703", + "parentUUID": "9e02eb05-7071-46c6-ad3f-7018427a5a50", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "6e62b170-8d5a-4f8c-94ac-5ec030e4e967" + "763984e9-37cc-4f12-823f-b9e34bdf9703" ], "failures": [], "pending": [], "skipped": [], - "duration": 158, + "duration": 70, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4472,49 +3864,49 @@ "_timeout": 900000 }, { - "uuid": "50f8bd63-a09d-4fa1-8dde-12ac7b8337b9", - "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": "0f3fba26-a26c-467d-80d0-04adddedbd35", + "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": "9d1b78bc-51ea-44f5-8926-fd682359c22b", + "uuid": "516f7139-779e-4a02-8e60-41ac8a4b50f3", "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-lakes-test.js", + "file": "/test/v2.0-data-spatial-lakes-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 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": 103, + "duration": 78, "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/spatial/lakes', { \n 'qs': {\"siteid\":14853,\"buffer\":3021,\"prec\": 1000,\"proj\": 4326},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "7a970651-e0da-45b4-81f6-2716fb07412c", - "parentUUID": "9d1b78bc-51ea-44f5-8926-fd682359c22b", + "uuid": "3e066e8c-d21e-4fd1-8dbe-469f0dfa9f96", + "parentUUID": "516f7139-779e-4a02-8e60-41ac8a4b50f3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "7a970651-e0da-45b4-81f6-2716fb07412c" + "3e066e8c-d21e-4fd1-8dbe-469f0dfa9f96" ], "failures": [], "pending": [], "skipped": [], - "duration": 103, + "duration": 78, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4530,49 +3922,49 @@ "_timeout": 900000 }, { - "uuid": "9c401a15-4259-4ece-a582-ae8d77ccb155", - "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": "d99ef3a3-bd09-4bdb-ac02-a5b914c3c5dc", + "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": "10335a79-1e64-4412-89c0-08cca7654583", + "uuid": "bd63eabf-792f-4abc-87a4-6822620579d1", "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/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 /v2.0/data/geopoliticalunits/{gpid} 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": 70, + "duration": 90, "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', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "54043a7b-9085-4634-bf5b-a4e32f62cf05", - "parentUUID": "10335a79-1e64-4412-89c0-08cca7654583", + "uuid": "9deeb431-8f37-4dd3-b8ed-a74082f9daf0", + "parentUUID": "bd63eabf-792f-4abc-87a4-6822620579d1", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "54043a7b-9085-4634-bf5b-a4e32f62cf05" + "9deeb431-8f37-4dd3-b8ed-a74082f9daf0" ], "failures": [], "pending": [], "skipped": [], - "duration": 70, + "duration": 90, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4588,49 +3980,49 @@ "_timeout": 900000 }, { - "uuid": "37a9145f-5c82-483e-a462-c14903fb2481", - "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": "23bd4d52-caa0-4925-bd0f-68473cbdca25", + "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": "c6e42770-795e-4f0e-9842-1d64b7d7f95d", + "uuid": "3aca58c6-b2a0-4272-aa59-2ea3a9769902", "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-collectiontypes-test.js", + "file": "/test/v2.0-apps-collectiontypes-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 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": 76, + "duration": 68, "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/geopoliticalunits', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "b77f76d3-ec43-4187-8249-46ad1a23e385", - "parentUUID": "c6e42770-795e-4f0e-9842-1d64b7d7f95d", + "uuid": "16ee98c4-dc0b-4d1c-a619-b4ea9e5efb13", + "parentUUID": "3aca58c6-b2a0-4272-aa59-2ea3a9769902", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "b77f76d3-ec43-4187-8249-46ad1a23e385" + "16ee98c4-dc0b-4d1c-a619-b4ea9e5efb13" ], "failures": [], "pending": [], "skipped": [], - "duration": 76, + "duration": 68, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4646,49 +4038,49 @@ "_timeout": 900000 }, { - "uuid": "5be2133c-9a01-4e5f-a092-60803070def2", - "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": "566af342-690e-4315-af0a-d86ee070c6f2", + "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": "91ce5b36-4684-4640-80bf-450dffd1c9b8", + "uuid": "5c4ae7ab-c2fe-4d05-a2ea-f105d45b09d3", "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/v2.0-data-pollen-test.js", + "file": "/test/v2.0-data-pollen-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 \"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": 71, + "duration": 5, "state": "passed", "speed": "fast", "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/pollen', { \n 'qs': {\"taxonname\":\"mollit ea exercitation\",\"taxonid\":26150,\"siteid\":43990,\"sitename\":\"sint cupidatat deserunt quis laboris\",\"datasettype\":\"X-ray diffraction (XRD)\",\"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\":17402500,\"ageyoung\": 1000,\"ageold\": 10000,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "ab21d27b-8fa6-4d3e-a81a-034102eb5635", - "parentUUID": "91ce5b36-4684-4640-80bf-450dffd1c9b8", + "uuid": "03fa2d3f-8354-4e7f-a3b3-92dd231f2a50", + "parentUUID": "5c4ae7ab-c2fe-4d05-a2ea-f105d45b09d3", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "ab21d27b-8fa6-4d3e-a81a-034102eb5635" + "03fa2d3f-8354-4e7f-a3b3-92dd231f2a50" ], "failures": [], "pending": [], "skipped": [], - "duration": 71, + "duration": 5, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4704,197 +4096,179 @@ "_timeout": 900000 }, { - "uuid": "2a18f791-68e4-48bc-8e68-d340342a73e9", - "title": "Get contact data:", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/contacts.js", - "file": "/test/contacts.js", + "uuid": "af300879-3a62-450c-9916-82689077cd27", + "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": [ { - "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": 79, - "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": "11363694-004f-4088-93e9-899fa613bbea", - "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", - "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:", + "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": 79, + "duration": 105, "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 });", + "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": "ccd66c47-666a-4091-8677-7d349dae3879", - "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", + "uuid": "2b940b76-1189-41ad-a5ee-7a8ba0974760", + "parentUUID": "af300879-3a62-450c-9916-82689077cd27", "isHook": false, "skipped": false }, { - "title": "Contact queries should be case insensitive:", - "fullTitle": "Get contact data: Contact queries should be case insensitive:", + "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": 74, + "duration": 106, "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 });", + "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": "5d599960-f118-4820-8961-364ba359ab6f", - "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", + "uuid": "7acf0946-698a-4b92-bee3-3ecc583a6921", + "parentUUID": "af300879-3a62-450c-9916-82689077cd27", "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:", + "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": 75, + "duration": 82, "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 });", + "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": "ac12a2dd-1db1-43a0-a15c-9445fdd680bc", - "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", + "uuid": "78662fc5-cc5b-41af-a261-ef92269e417f", + "parentUUID": "af300879-3a62-450c-9916-82689077cd27", "isHook": false, "skipped": false }, { - "title": "A single contact (12) should be returned.", - "fullTitle": "Get contact data: A single contact (12) should be returned.", + "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": 71, + "duration": 100, "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 });", + "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": "be21ce57-f9ad-4378-a18f-80cba3a0b164", - "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", + "uuid": "3dcc6024-5275-47b7-a57b-b765c9bbefa7", + "parentUUID": "af300879-3a62-450c-9916-82689077cd27", "isHook": false, "skipped": false }, { - "title": "All contacts from datasets should be returned.", - "fullTitle": "Get contact data: All contacts from datasets should be returned.", + "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": 71, + "duration": 5, "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 });", + "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": "75dacb83-d3ab-4715-8dce-bd60acf6b0c7", - "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", + "uuid": "29a8df0b-faab-4c5c-9b5f-2337f580b654", + "parentUUID": "af300879-3a62-450c-9916-82689077cd27", "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.", + "title": "Limits work:", + "fullTitle": "Get datasets any number of ways: Limits work:", "timedOut": false, - "duration": 73, + "duration": 161, "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 });", + "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": "8908f2f4-21c0-4fe8-85d8-7d00389b8a9c", - "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", + "uuid": "0159e5db-2e13-483d-aec2-80bb9b436605", + "parentUUID": "af300879-3a62-450c-9916-82689077cd27", "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.", + "title": "Works with age validation:", + "fullTitle": "Get datasets any number of ways: Works with age validation:", "timedOut": false, - "duration": 74, - "state": "passed", - "speed": "fast", - "pass": true, + "duration": 0, + "state": "pending", + "speed": null, + "pass": false, "fail": false, - "pending": false, + "pending": true, "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 });", + "code": "", "err": {}, - "uuid": "42dae9ba-4d77-413f-8d1f-a385d7caff11", - "parentUUID": "2a18f791-68e4-48bc-8e68-d340342a73e9", + "uuid": "aec7aa5b-4111-4004-8d43-10a3a73acf8f", + "parentUUID": "af300879-3a62-450c-9916-82689077cd27", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "11363694-004f-4088-93e9-899fa613bbea", - "ccd66c47-666a-4091-8677-7d349dae3879", - "5d599960-f118-4820-8961-364ba359ab6f", - "ac12a2dd-1db1-43a0-a15c-9445fdd680bc", - "be21ce57-f9ad-4378-a18f-80cba3a0b164", - "75dacb83-d3ab-4715-8dce-bd60acf6b0c7", - "8908f2f4-21c0-4fe8-85d8-7d00389b8a9c", - "42dae9ba-4d77-413f-8d1f-a385d7caff11" + "2b940b76-1189-41ad-a5ee-7a8ba0974760", + "7acf0946-698a-4b92-bee3-3ecc583a6921", + "78662fc5-cc5b-41af-a261-ef92269e417f", + "3dcc6024-5275-47b7-a57b-b765c9bbefa7", + "29a8df0b-faab-4c5c-9b5f-2337f580b654", + "0159e5db-2e13-483d-aec2-80bb9b436605" ], "failures": [], - "pending": [], + "pending": [ + "aec7aa5b-4111-4004-8d43-10a3a73acf8f" + ], "skipped": [], - "duration": 596, + "duration": 559, "root": false, "rootEmpty": false, - "_timeout": 5000 + "_timeout": 50000 }, { - "uuid": "88acc993-19fa-4e62-bb75-302449778aa7", - "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": "cdf6b818-8ab9-449f-843b-cc2302fd209f", + "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": "735f4240-aa7e-49ab-aa7d-4d1df7f57240", + "uuid": "fe8ae6d1-1563-457e-af7a-2c39c4f1dfba", "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/v1.5-apps-collectionTypes-test.js", + "file": "/test/v1.5-apps-collectionTypes-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 \"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": 71, "state": "passed", @@ -4903,17 +4277,17 @@ "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();", + "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": "4cc320ce-65e8-4fb0-a416-9f752c6839ce", - "parentUUID": "735f4240-aa7e-49ab-aa7d-4d1df7f57240", + "uuid": "28fcfcf6-1a5b-40a0-bfa7-a33e51ec13bd", + "parentUUID": "fe8ae6d1-1563-457e-af7a-2c39c4f1dfba", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "4cc320ce-65e8-4fb0-a416-9f752c6839ce" + "28fcfcf6-1a5b-40a0-bfa7-a33e51ec13bd" ], "failures": [], "pending": [], @@ -4934,49 +4308,49 @@ "_timeout": 900000 }, { - "uuid": "1182f56f-8b3f-4a7e-b491-1f062efcb46a", - "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": "e6fe2e1d-c132-4c00-a349-9e18f1a57467", + "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": "dea8c844-f6db-4848-81c0-da1f087f8b22", + "uuid": "c54c3bdc-ed47-41b1-b50b-a1150c441593", "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/v1.5-data-geopoliticalunits-test.js", + "file": "/test/v1.5-data-geopoliticalunits-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 \"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": 2362, + "duration": 98, "state": "passed", - "speed": "slow", + "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();", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits', { \n 'qs': {\"gpid\":5392,\"gpname\":\"Canada\",\"rank\":1,\"lower\":true},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "abd19b46-ee90-41c7-bc3b-c13896f070b5", - "parentUUID": "dea8c844-f6db-4848-81c0-da1f087f8b22", + "uuid": "f07b0957-0f5d-44eb-b2cb-7e4986df263c", + "parentUUID": "c54c3bdc-ed47-41b1-b50b-a1150c441593", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "abd19b46-ee90-41c7-bc3b-c13896f070b5" + "f07b0957-0f5d-44eb-b2cb-7e4986df263c" ], "failures": [], "pending": [], "skipped": [], - "duration": 2362, + "duration": 98, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -4991,50 +4365,50 @@ "rootEmpty": false, "_timeout": 900000 }, - { - "uuid": "ee7f2a64-dc71-4e31-a4f7-375243787361", - "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": "04cac368-4ffc-42a8-b029-b53c5ed96b0e", + "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": "b6a2758c-630b-47b7-a7d3-e1a653ef1869", + "uuid": "3a19fee6-0f7f-47cc-8268-be7a3895e6dd", "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-data-frozen-{datasetid}-test.js", + "file": "/test/v2.0-data-frozen-{datasetid}-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 \"Returned download object.\"", + "fullTitle": "tests for /v2.0/data/frozen/{datasetid} tests for get should respond 200 for \"Returned download object.\"", "timedOut": false, - "duration": 96, + "duration": 210, "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();", + "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": "4d49085e-a6b6-499b-8bcc-736dac42a3a7", - "parentUUID": "b6a2758c-630b-47b7-a7d3-e1a653ef1869", + "uuid": "2a57d982-de41-4bab-a731-b50a3b2179bc", + "parentUUID": "3a19fee6-0f7f-47cc-8268-be7a3895e6dd", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "4d49085e-a6b6-499b-8bcc-736dac42a3a7" + "2a57d982-de41-4bab-a731-b50a3b2179bc" ], "failures": [], "pending": [], "skipped": [], - "duration": 96, + "duration": 210, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5050,49 +4424,49 @@ "_timeout": 900000 }, { - "uuid": "27e8a53a-179f-4087-abba-b3e8cd05f07d", - "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": "943b75d2-c78b-4a03-bd9e-0dcc746612d9", + "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": "c35327e8-96f9-434f-886f-50b9a2cd3e83", + "uuid": "4276fbd5-da92-4f2a-a8d8-307d141f4af6", "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", + "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 \"contact\"", - "fullTitle": "tests for /v2.0/data/sites/{siteid}/contacts tests for get should respond 200 for \"contact\"", + "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": 73, + "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/500/contacts', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/apps/taphonomysystems', { \n 'qs': {\"datasettypeid\":40},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "eb97079e-cab6-43de-bf02-ce1d8f478b1c", - "parentUUID": "c35327e8-96f9-434f-886f-50b9a2cd3e83", + "uuid": "ef02c162-8af4-4e6b-8848-ed780c9bc852", + "parentUUID": "4276fbd5-da92-4f2a-a8d8-307d141f4af6", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "eb97079e-cab6-43de-bf02-ce1d8f478b1c" + "ef02c162-8af4-4e6b-8848-ed780c9bc852" ], "failures": [], "pending": [], "skipped": [], - "duration": 73, + "duration": 70, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5108,49 +4482,49 @@ "_timeout": 900000 }, { - "uuid": "e2c64bc3-e640-4afd-bd48-3c871d46b30d", - "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": "0d2d9caa-0c96-4b8f-b3c3-a2666fda1874", + "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": "fc1f2971-e41e-4bae-8d56-a72075d16853", + "uuid": "25d864d9-29cc-4211-ad5f-16825c2eb8f5", "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/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 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 \"Contact\"", + "fullTitle": "tests for /v1.5/data/contacts/{contactid} tests for get should respond 200 for \"Contact\"", "timedOut": false, - "duration": 86, + "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/spatial/faunal', { \n 'qs': {\"sciname\":\"reprehenderit aute fugiat\",\"proj\": 4326,\"prec\": 1000},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/contacts/-45400452', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "532492d3-7321-42ee-a0a4-0ad29bd7e109", - "parentUUID": "fc1f2971-e41e-4bae-8d56-a72075d16853", + "uuid": "08f364ce-6d06-4dff-9171-de4e16ee9c5b", + "parentUUID": "25d864d9-29cc-4211-ad5f-16825c2eb8f5", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "532492d3-7321-42ee-a0a4-0ad29bd7e109" + "08f364ce-6d06-4dff-9171-de4e16ee9c5b" ], "failures": [], "pending": [], "skipped": [], - "duration": 86, + "duration": 71, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5166,316 +4540,721 @@ "_timeout": 900000 }, { - "uuid": "31b06e7a-d157-4e5a-99ad-93c9c5874780", - "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": "912c6a25-c480-44d2-80b0-5a2d9335ca26", + "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 occurrence by singular id & return same id:", - "fullTitle": "Get occurrence data any number of ways: Get occurrence by singular id & return same id:", + "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": 0, + "duration": 88, "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();", + "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": "4d39fa07-84df-4823-ab18-8987f37f0b71", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "ed1d3937-79dc-420c-af9f-0e92ab056c13", + "parentUUID": "912c6a25-c480-44d2-80b0-5a2d9335ca26", "isHook": false, "skipped": false }, { - "title": "Get the Flyover test call:", - "fullTitle": "Get occurrence data any number of ways: Get the Flyover test call:", + "title": "Get site by altitude:", + "fullTitle": "Get site data any number of ways: Get site by altitude:", "timedOut": false, - "duration": 0, + "duration": 704, + "state": "passed", + "speed": "medium", + "pass": true, + "fail": false, + "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": {}, + "uuid": "364508ed-49b9-4d13-8035-62c83e793f78", + "parentUUID": "912c6a25-c480-44d2-80b0-5a2d9335ca26", + "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": 5, "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();", + "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": "0a4f45e0-4abb-4c0c-9083-b6345e1e926e", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "88b4049d-7304-4d75-bbd4-10b8ba489317", + "parentUUID": "912c6a25-c480-44d2-80b0-5a2d9335ca26", "isHook": false, "skipped": false }, { - "title": "Failing Canis test works:", - "fullTitle": "Get occurrence data any number of ways: Failing Canis test works:", + "title": "Break sites by passing invalid siteid:", + "fullTitle": "Get site data any number of ways: Break sites by passing invalid siteid:", "timedOut": false, - "duration": 0, + "duration": 71, "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();", + "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": "721088a7-3c18-4da8-a53e-6de42b2bd877", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "c0e1dea9-4480-4743-960f-a673984ae12a", + "parentUUID": "912c6a25-c480-44d2-80b0-5a2d9335ca26", "isHook": false, "skipped": false }, { - "title": "Get occurrence by taxon:", - "fullTitle": "Get occurrence data any number of ways: Get occurrence by taxon:", + "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": 0, + "duration": 115, "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();", + "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": "6da83a90-cf84-4d0c-9167-3a6ec6c72cca", + "parentUUID": "912c6a25-c480-44d2-80b0-5a2d9335ca26", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "ed1d3937-79dc-420c-af9f-0e92ab056c13", + "364508ed-49b9-4d13-8035-62c83e793f78", + "88b4049d-7304-4d75-bbd4-10b8ba489317", + "c0e1dea9-4480-4743-960f-a673984ae12a", + "6da83a90-cf84-4d0c-9167-3a6ec6c72cca" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 983, + "root": false, + "rootEmpty": false, + "_timeout": 5000 + }, + { + "uuid": "5fbaad44-fe82-421e-9d7c-42d995430ad3", + "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": 93, + "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": "039742f2-635f-45a4-8eff-62d23bebc195", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "c03a0d40-a969-4bfb-8fc0-0a6257541e9e", + "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3", "isHook": false, "skipped": false }, { - "title": "Break occurrences by flipping altitudes:", - "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping altitudes:", + "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, + "duration": 83, "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();", + "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": "418ea4bc-2290-42b7-8dc6-6d0ec0bab832", + "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3", + "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": 200, + "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": "41a5b361-0b42-403a-9a50-7b3473b44647", + "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3", + "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": 76, + "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": "74923098-1e85-4aed-b86f-5d7be33791ea", + "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3", + "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": 72, + "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": "28064eca-1d0e-4bf1-8fca-70992479bdb7", + "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3", + "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": 78, + "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": "c763574f-2931-4286-8fb1-78094af31d4d", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "decc292e-b8c2-4ac9-80e8-94e4b1e7a774", + "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3", "isHook": false, "skipped": false }, { - "title": "Break occurrences by flipping ages:", - "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping ages:", + "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": 81, + "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": "3e583e23-d059-4ee1-8a08-eedd49c8de08", + "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "c03a0d40-a969-4bfb-8fc0-0a6257541e9e", + "418ea4bc-2290-42b7-8dc6-6d0ec0bab832", + "41a5b361-0b42-403a-9a50-7b3473b44647", + "74923098-1e85-4aed-b86f-5d7be33791ea", + "28064eca-1d0e-4bf1-8fca-70992479bdb7", + "decc292e-b8c2-4ac9-80e8-94e4b1e7a774", + "3e583e23-d059-4ee1-8a08-eedd49c8de08" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 683, + "root": false, + "rootEmpty": false, + "_timeout": 15000 + }, + { + "uuid": "e7b6163e-b2be-477c-9a57-ee7c8aa40ef0", + "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": "d7f38d20-ea6d-4367-bc45-128623b12850", + "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", + "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. \"", + "timedOut": false, + "duration": 228, + "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\":20},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "cd3b2802-4d43-49b5-a892-00400f65811b", + "parentUUID": "d7f38d20-ea6d-4367-bc45-128623b12850", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "cd3b2802-4d43-49b5-a892-00400f65811b" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 228, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b", + "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": 0, + "duration": 74, "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();", + "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": "1602c502-5ee7-4f22-94c9-d32fcda08f4a", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "1b8756ef-8ea5-4af2-b4fd-795b423cc324", + "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b", "isHook": false, "skipped": false }, { - "title": "Occurrences filter by age:", - "fullTitle": "Get occurrence data any number of ways: Occurrences filter by age:", + "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, + "duration": 91, "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();", + "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": "fc67136a-dc82-4529-9733-f45c3e658f6b", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "b6d40c91-2d45-4d34-937f-2a87bf98d413", + "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b", "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:", + "title": "Contact queries should be case insensitive:", + "fullTitle": "Get contact data: Contact queries should be case insensitive:", "timedOut": false, - "duration": 0, + "duration": 78, "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();", + "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": "e9eea799-781f-457c-b9be-1eea27ebf1ba", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "6bb3755d-43a1-452e-a34e-7e3fa041e79d", + "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b", "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:", + "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": 0, + "duration": 82, "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();", + "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": "a25227ae-4313-4335-ae02-137d82fe80d1", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "f846dfd6-6fc7-4ea1-bff1-74bbffc0de7a", + "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b", "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:", + "title": "A single contact (12) should be returned.", + "fullTitle": "Get contact data: A single contact (12) should be returned.", "timedOut": false, - "duration": 0, + "duration": 70, "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();", + "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": "2e848638-3c98-4340-be0e-1244b4f0273f", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "4a464c63-0afb-4a58-8011-0880eb06754b", + "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b", "isHook": false, "skipped": false }, { - "title": "Get occurrences returns lower taxa:", - "fullTitle": "Get occurrence data any number of ways: Get occurrences returns lower taxa:", + "title": "All contacts from datasets should be returned.", + "fullTitle": "Get contact data: All contacts from datasets should be returned.", "timedOut": false, - "duration": 0, + "duration": 73, "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();", + "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": "ef1172ef-41a1-4097-a3c8-c208adf86008", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "da3a5453-fcb6-4864-a60e-3213f1d3cf8f", + "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b", "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:", + "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": 0, + "duration": 74, "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();", + "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": "96742b30-5b3a-4a86-ac17-29042f318a0d", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "22c1f65d-edc8-4d04-9ee3-d30807f21e7b", + "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b", "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:", + "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": 0, + "duration": 71, "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();", + "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": "614f2cda-fa4c-4419-9ebd-7db4f0a4ff00", - "parentUUID": "31b06e7a-d157-4e5a-99ad-93c9c5874780", + "uuid": "49f9eb41-1531-443c-bd66-e3a76f89d9a7", + "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "4d39fa07-84df-4823-ab18-8987f37f0b71", - "0a4f45e0-4abb-4c0c-9083-b6345e1e926e", - "721088a7-3c18-4da8-a53e-6de42b2bd877", - "039742f2-635f-45a4-8eff-62d23bebc195", - "c763574f-2931-4286-8fb1-78094af31d4d", - "1602c502-5ee7-4f22-94c9-d32fcda08f4a", - "fc67136a-dc82-4529-9733-f45c3e658f6b", - "e9eea799-781f-457c-b9be-1eea27ebf1ba", - "a25227ae-4313-4335-ae02-137d82fe80d1", - "2e848638-3c98-4340-be0e-1244b4f0273f", - "ef1172ef-41a1-4097-a3c8-c208adf86008", - "96742b30-5b3a-4a86-ac17-29042f318a0d", - "614f2cda-fa4c-4419-9ebd-7db4f0a4ff00" + "1b8756ef-8ea5-4af2-b4fd-795b423cc324", + "b6d40c91-2d45-4d34-937f-2a87bf98d413", + "6bb3755d-43a1-452e-a34e-7e3fa041e79d", + "f846dfd6-6fc7-4ea1-bff1-74bbffc0de7a", + "4a464c63-0afb-4a58-8011-0880eb06754b", + "da3a5453-fcb6-4864-a60e-3213f1d3cf8f", + "22c1f65d-edc8-4d04-9ee3-d30807f21e7b", + "49f9eb41-1531-443c-bd66-e3a76f89d9a7" ], "failures": [], "pending": [], "skipped": [], - "duration": 2, + "duration": 613, "root": false, "rootEmpty": false, - "_timeout": 30000 + "_timeout": 5000 }, { - "uuid": "de028db3-d88d-4d40-8cd2-f8271a5fe98b", - "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": "d5a169b0-32cf-47c2-be20-89a15bc541c8", + "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": "0f507d14-96d1-46c5-9607-1b16ca41779d", + "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", + "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.\"", + "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/apps/depenvt', { \n 'qs': {\"siteid\":4712,\"datasetid\":15304005,\"collectionunitid\":7254},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "d91ffd24-7141-47c5-aacd-3f0a12ecaf2c", + "parentUUID": "0f507d14-96d1-46c5-9607-1b16ca41779d", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "d91ffd24-7141-47c5-aacd-3f0a12ecaf2c" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 72, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "db8cb25e-8c7b-4c47-93cb-9e1c6c46bf36", + "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": "a5075bb9-af90-464e-af14-b7a108484076", + "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", + "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.\"", + "timedOut": false, + "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/dbtables/veniam', { \n 'qs': {\"count\":true,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "caea75c0-de5b-4f1d-9e3b-ec3d08f8500a", + "parentUUID": "a5075bb9-af90-464e-af14-b7a108484076", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "caea75c0-de5b-4f1d-9e3b-ec3d08f8500a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 70, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "a9b9282c-e547-4024-aad3-1cefaae04b3e", + "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": "1bf6ef34-7ea5-4150-8e85-8b0aaa81781e", + "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", + "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\"", + "timedOut": false, + "duration": 778, + "state": "passed", + "speed": "medium", + "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\":\"NDSU Insect Database\"},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "err": {}, + "uuid": "acea7b7b-e876-49e8-939f-116453c87a5a", + "parentUUID": "1bf6ef34-7ea5-4150-8e85-8b0aaa81781e", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "acea7b7b-e876-49e8-939f-116453c87a5a" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 778, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "9189c3e6-d56a-466a-bbde-f2241cf6d0b7", + "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": [], "suites": [ { - "uuid": "16718e5d-c479-4967-b5ca-0e18f1d74546", + "uuid": "eb6ff818-da2a-4c38-b8d1-03c272b430c7", "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", + "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 \"DOI\"", - "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/doi tests for get should respond 200 for \"DOI\"", + "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": 69, + "duration": 75, "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/doi', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/publications/5728', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "50ad85dd-70d8-40f5-8d48-d93d3bc70929", - "parentUUID": "16718e5d-c479-4967-b5ca-0e18f1d74546", + "uuid": "e6c46db7-3c3c-4134-8e83-1d967c90fee3", + "parentUUID": "eb6ff818-da2a-4c38-b8d1-03c272b430c7", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "50ad85dd-70d8-40f5-8d48-d93d3bc70929" + "e6c46db7-3c3c-4134-8e83-1d967c90fee3" ], "failures": [], "pending": [], "skipped": [], - "duration": 69, + "duration": 75, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5491,49 +5270,49 @@ "_timeout": 900000 }, { - "uuid": "a102f653-28f8-4135-9774-2da91d22e10b", - "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": "6189407d-b13f-4fd5-9e3d-96b04874917a", + "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": "7b574bf1-3297-4798-8847-33b4796c0361", + "uuid": "3bd9e1dc-41ce-4c2e-a28c-2ac10ecf671d", "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-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 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 \"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": 71, + "duration": 208, "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\":4,\"lower\":true},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "bf219868-ff52-4a43-8111-2c1fd6abccd0", - "parentUUID": "7b574bf1-3297-4798-8847-33b4796c0361", + "uuid": "52328ac3-60d7-4004-a0d3-4b8f83f33014", + "parentUUID": "3bd9e1dc-41ce-4c2e-a28c-2ac10ecf671d", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "bf219868-ff52-4a43-8111-2c1fd6abccd0" + "52328ac3-60d7-4004-a0d3-4b8f83f33014" ], "failures": [], "pending": [], "skipped": [], - "duration": 71, + "duration": 208, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5549,49 +5328,49 @@ "_timeout": 900000 }, { - "uuid": "49f685ef-c647-44cc-b056-1c91d054470e", - "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": "428f7808-0a3c-4088-9b9b-01b4cc013692", + "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": "6c8abf21-6151-41b3-af7f-e6016cae2ae3", + "uuid": "2d97c8a6-0563-4461-b91a-eaaf5e85dd1c", "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-datasets-{datasetid}-lithology-test.js", + "file": "/test/v2.0-data-datasets-{datasetid}-lithology-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 \"Lithology\"", + "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/lithology tests for get should respond 200 for \"Lithology\"", "timedOut": false, - "duration": 71, + "duration": 75, "state": "passed", "speed": "fast", "pass": true, "fail": false, "pending": false, "context": null, - "code": "var response = request('get', 'http://localhost:3001/v2.0/data/contacts', { \n 'qs': {\"contactid\":13367,\"familyname\":\"LqNGsFC\",\"contactname\":\"B\",\"contactstatus\":\"active\",\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", + "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": "679cd693-a5f5-49ce-a9af-360a67d1cdc9", - "parentUUID": "6c8abf21-6151-41b3-af7f-e6016cae2ae3", + "uuid": "85083a4b-70f2-44d0-883c-b323eb6dc06e", + "parentUUID": "2d97c8a6-0563-4461-b91a-eaaf5e85dd1c", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "679cd693-a5f5-49ce-a9af-360a67d1cdc9" + "85083a4b-70f2-44d0-883c-b323eb6dc06e" ], "failures": [], "pending": [], "skipped": [], - "duration": 71, + "duration": 75, "root": false, "rootEmpty": false, "_timeout": 900000 @@ -5607,280 +5386,400 @@ "_timeout": 900000 }, { - "uuid": "53cbc957-a080-4e83-a904-e460471ea59d", - "title": "Tests for Explorer App Services", - "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/explorerCalls.js", - "file": "/test/explorerCalls.js", + "uuid": "97f10825-adcd-4d11-85c8-1cd07fb4d05c", + "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": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "uuid": "e212f281-a71e-46b5-9dc2-0d29765f2c4a", "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-sites-{siteid}-contacts-test.js", + "file": "/test/v2.0-data-sites-{siteid}-contacts-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": 116, - "state": "passed", - "speed": "fast", - "pass": true, - "fail": false, - "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": {}, - "uuid": "762a30c2-f4c2-4efe-967a-497dc18e3b53", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", - "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": 15, - "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": "c870312f-fb6c-4aeb-8f3f-31a952777955", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", - "isHook": false, - "skipped": false - }, - { - "title": "should respond 200 for TaphonomySystems", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaphonomySystems", + "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": 67, + "duration": 73, "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();", + "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": "876d2f41-6293-42bc-af2d-9b2c67e13b89", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "uuid": "0c225809-f31e-4694-9895-9484612f1469", + "parentUUID": "e212f281-a71e-46b5-9dc2-0d29765f2c4a", "isHook": false, "skipped": false - }, + } + ], + "suites": [], + "passes": [ + "0c225809-f31e-4694-9895-9484612f1469" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 73, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "29dfcc03-77fc-4e62-827b-efbfff7551b9", + "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": "7ff6284e-421a-4264-a807-eaa8a406bc4a", + "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", + "beforeHooks": [], + "afterHooks": [], + "tests": [ { - "title": "should respond 200 for ElementTypes", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for ElementTypes", + "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": 69, + "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/8983', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "b3ee48da-a572-49bf-997f-52c37be169dd", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "uuid": "bf414129-c1d7-4957-acac-6ae9c4522cbc", + "parentUUID": "7ff6284e-421a-4264-a807-eaa8a406bc4a", "isHook": false, "skipped": false - }, + } + ], + "suites": [], + "passes": [ + "bf414129-c1d7-4957-acac-6ae9c4522cbc" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 72, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "46a4d7a9-a337-4b6f-b5cf-27169ba308de", + "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": [], + "suites": [ + { + "uuid": "e572730d-4f48-474d-8fcd-d1df80d751c7", + "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 TaxaInDatasets (a slow service)", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaxaInDatasets (a slow service)", + "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": 3231, + "duration": 2395, "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": "c10ab675-51f9-4183-99d6-137a2fc3c6fa", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", - "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": 66, - "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": "0093e034-332b-4838-ab03-d33b864befa5", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", - "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": 66, - "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": "ad82673c-11d6-48e8-bbb2-bf2d45d9cfca", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", - "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": 436, - "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": "7ce81a55-00ae-4f4d-9bd2-4c5f6c4f8e7d", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", - "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": 5, - "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();", + "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": "369d4c6d-76f9-4f06-8557-eac774fbd1b7", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "uuid": "46142c4f-93d5-4d01-9579-4e65ecf5d827", + "parentUUID": "e572730d-4f48-474d-8fcd-d1df80d751c7", "isHook": false, "skipped": false - }, + } + ], + "suites": [], + "passes": [ + "46142c4f-93d5-4d01-9579-4e65ecf5d827" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 2395, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "1f052b70-7f6f-42ad-87b5-052253adb4b4", + "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": [ + { + "uuid": "820b5a65-6360-4a1b-9101-cd9a826d8491", + "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 Search", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for Search", + "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": 2, + "duration": 722, "state": "passed", - "speed": "fast", + "speed": "medium", "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites', { \n 'qs': {\"sitename\":\"nostrud velit dolore in in\",\"database\":\"Diatom Paleolimnology Data Cooperative (DPDC)\",\"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\":2022,\"datasetid\":67760076,\"doi\":\"10)73259/W8;78U83/\",\"gpid\":5392,\"keyword\":\"bottom\",\"contactid\":20094,\"taxa\":\"adipisicing nostrud exercitation\",\"ageyoung\": 1000,\"ageold\": 10000,\"ageof\":19655794,\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "5e655abf-cced-48b8-bbbc-a5e5ed6d8f62", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "uuid": "280d4c79-a070-4ffe-92ea-d6fbd3f7c1d4", + "parentUUID": "820b5a65-6360-4a1b-9101-cd9a826d8491", "isHook": false, "skipped": false - }, + } + ], + "suites": [], + "passes": [ + "280d4c79-a070-4ffe-92ea-d6fbd3f7c1d4" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 722, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "b55ef900-847d-4b23-a7cb-19b7d1f6fc21", + "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": "87981a3f-9351-4e6f-8bc8-31b8efd221c4", + "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", + "beforeHooks": [], + "afterHooks": [], + "tests": [ { - "title": "should respond 200 for DatasetTypes", - "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for DatasetTypes", + "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": 88, + "duration": 341, "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();", + "code": "var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/9953/sites', { \n 'qs': {\"limit\": 10,\"offset\": 0},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "3e468037-3f0c-403f-86fc-21051a0cce5d", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "uuid": "d820ab97-03a2-41fe-aa7d-f7b0382dc8be", + "parentUUID": "87981a3f-9351-4e6f-8bc8-31b8efd221c4", "isHook": false, "skipped": false - }, + } + ], + "suites": [], + "passes": [ + "d820ab97-03a2-41fe-aa7d-f7b0382dc8be" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 341, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "82d5bed2-ac9c-4650-adb0-a3039b8c4f67", + "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": "cf6dc437-33a0-4af8-9ee8-65c79b2a2cff", + "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", + "beforeHooks": [], + "afterHooks": [], + "tests": [ { - "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 \"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": 140, + "duration": 72, "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();", + "code": "var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/716', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();", "err": {}, - "uuid": "3adb3f85-a81c-44b1-b739-c882bc49cdfc", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "uuid": "27cb1fb7-c5e6-4813-8ea4-9ce484f5ade1", + "parentUUID": "cf6dc437-33a0-4af8-9ee8-65c79b2a2cff", "isHook": false, "skipped": false - }, + } + ], + "suites": [], + "passes": [ + "27cb1fb7-c5e6-4813-8ea4-9ce484f5ade1" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 72, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": false, + "rootEmpty": false, + "_timeout": 900000 + }, + { + "uuid": "bb521393-df07-47f3-b761-7787aae8d310", + "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": "d8479aef-c913-4ca5-86ff-9a9cd896f352", + "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", + "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 \"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": 5, + "duration": 113, "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();", + "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": "ff70feb2-9c67-4f2a-9717-8f7bdd90f5ce", - "parentUUID": "9bfd06e9-91ef-438e-b23e-d404c4c881b0", + "uuid": "1331b2f4-363a-437a-a903-96b788610ae8", + "parentUUID": "d8479aef-c913-4ca5-86ff-9a9cd896f352", "isHook": false, "skipped": false } ], "suites": [], "passes": [ - "762a30c2-f4c2-4efe-967a-497dc18e3b53", - "c870312f-fb6c-4aeb-8f3f-31a952777955", - "876d2f41-6293-42bc-af2d-9b2c67e13b89", - "b3ee48da-a572-49bf-997f-52c37be169dd", - "c10ab675-51f9-4183-99d6-137a2fc3c6fa", - "0093e034-332b-4838-ab03-d33b864befa5", - "ad82673c-11d6-48e8-bbb2-bf2d45d9cfca", - "7ce81a55-00ae-4f4d-9bd2-4c5f6c4f8e7d", - "369d4c6d-76f9-4f06-8557-eac774fbd1b7", - "5e655abf-cced-48b8-bbbc-a5e5ed6d8f62", - "3e468037-3f0c-403f-86fc-21051a0cce5d", - "3adb3f85-a81c-44b1-b739-c882bc49cdfc", - "ff70feb2-9c67-4f2a-9717-8f7bdd90f5ce" + "1331b2f4-363a-437a-a903-96b788610ae8" ], "failures": [], "pending": [], "skipped": [], - "duration": 4306, + "duration": 113, "root": false, "rootEmpty": false, - "_timeout": 12000 + "_timeout": 900000 } ], "passes": [], @@ -5890,7 +5789,103 @@ "duration": 0, "root": false, "rootEmpty": false, - "_timeout": 12000 + "_timeout": 900000 + }, + { + "uuid": "525667f7-fce5-4313-b452-6dfa2efcccc7", + "title": "Get geopolitical data:", + "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/geopolitical.js", + "file": "/test/geopolitical.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": 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": "f306c623-5604-40dc-b170-2e9fe3990789", + "parentUUID": "525667f7-fce5-4313-b452-6dfa2efcccc7", + "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": 77, + "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": "b3b5a16b-02c4-4a8a-98b5-10a8bbe5b821", + "parentUUID": "525667f7-fce5-4313-b452-6dfa2efcccc7", + "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": 74, + "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": "80980772-19a0-4375-bb91-2fcdf3eced6a", + "parentUUID": "525667f7-fce5-4313-b452-6dfa2efcccc7", + "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": 68, + "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": "b7cb9a56-c958-47e0-9caf-cc5d26a507f3", + "parentUUID": "525667f7-fce5-4313-b452-6dfa2efcccc7", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "f306c623-5604-40dc-b170-2e9fe3990789", + "b3b5a16b-02c4-4a8a-98b5-10a8bbe5b821", + "80980772-19a0-4375-bb91-2fcdf3eced6a", + "b7cb9a56-c958-47e0-9caf-cc5d26a507f3" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 295, + "root": false, + "rootEmpty": false, + "_timeout": 5000 } ], "passes": [], diff --git a/test/v1.5-data-contacts-{contactid}-test.js b/test/v1.5-data-contacts-{contactid}-test.js index 1d548d3..35a0a17 100644 --- a/test/v1.5-data-contacts-{contactid}-test.js +++ b/test/v1.5-data-contacts-{contactid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v1.5/data/contacts/{contactid}', function() { describe('tests for get', function() { it('should respond 200 for "Contact"', function() { - var response = request('get', 'http://localhost:3001/v1.5/data/contacts/500', { + var response = request('get', 'http://localhost:3001/v1.5/data/contacts/-45400452', { 'time': true }); diff --git a/test/v1.5-data-geopoliticalunits-test.js b/test/v1.5-data-geopoliticalunits-test.js index 33b7906..4ac5288 100644 --- a/test/v1.5-data-geopoliticalunits-test.js +++ b/test/v1.5-data-geopoliticalunits-test.js @@ -8,7 +8,7 @@ describe('tests for /v1.5/data/geopoliticalunits', function() { describe('tests for get', function() { it('should respond 200 for "An array of geopolitical units."', function() { var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits', { - 'qs': {"gpid":5392,"gpname":"Canada","rank":2,"lower":false}, + 'qs': {"gpid":5392,"gpname":"Canada","rank":1,"lower":true}, 'time': true }); diff --git a/test/v1.5-data-geopoliticalunits-{gpid}-test.js b/test/v1.5-data-geopoliticalunits-{gpid}-test.js index e70c08a..573ac5a 100644 --- a/test/v1.5-data-geopoliticalunits-{gpid}-test.js +++ b/test/v1.5-data-geopoliticalunits-{gpid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v1.5/data/geopoliticalunits/{gpid}', function() { describe('tests for get', function() { it('should respond 200 for "An array of geopolitical units."', function() { - var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/6807', { + var response = request('get', 'http://localhost:3001/v1.5/data/geopoliticalunits/716', { 'time': true }); diff --git a/test/v2.0-apps-constdb-datasetages-test.js b/test/v2.0-apps-constdb-datasetages-test.js index 39374de..ab76546 100644 --- a/test/v2.0-apps-constdb-datasetages-test.js +++ b/test/v2.0-apps-constdb-datasetages-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasetages', function() { describe('tests for get', function() { it('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. "', function() { var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetages', { - 'qs': {"dbid":3}, + 'qs': {"dbid":25}, 'time': true }); diff --git a/test/v2.0-apps-constdb-datasets-test.js b/test/v2.0-apps-constdb-datasets-test.js index adfa6e9..f70ad58 100644 --- a/test/v2.0-apps-constdb-datasets-test.js +++ b/test/v2.0-apps-constdb-datasets-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasets', function() { describe('tests for get', function() { it('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. "', function() { var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasets', { - 'qs': {"dbid":8}, + 'qs': {"dbid":20}, 'time': true }); diff --git a/test/v2.0-apps-constdb-datasetuploads-test.js b/test/v2.0-apps-constdb-datasetuploads-test.js index 1201233..b7697f4 100644 --- a/test/v2.0-apps-constdb-datasetuploads-test.js +++ b/test/v2.0-apps-constdb-datasetuploads-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/constdb/datasetuploads', function() { describe('tests for get', function() { it('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. "', function() { var response = request('get', 'http://localhost:3001/v2.0/apps/constdb/datasetuploads', { - 'qs': {"dbid":12}, + 'qs': {"dbid":16}, 'time': true }); diff --git a/test/v2.0-apps-depenvt-test.js b/test/v2.0-apps-depenvt-test.js index 87f5866..e30ecda 100644 --- a/test/v2.0-apps-depenvt-test.js +++ b/test/v2.0-apps-depenvt-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/depenvt', function() { describe('tests for get', function() { it('should respond 200 for "This returns the information about depositional environment for selected dataset/collection unit/site."', function() { var response = request('get', 'http://localhost:3001/v2.0/apps/depenvt', { - 'qs': {"siteid":13692,"datasetid":30254140,"collectionunitid":61409}, + 'qs': {"siteid":4712,"datasetid":15304005,"collectionunitid":7254}, 'time': true }); diff --git a/test/v2.0-apps-taphonomysystems-test.js b/test/v2.0-apps-taphonomysystems-test.js index 73de67d..186127a 100644 --- a/test/v2.0-apps-taphonomysystems-test.js +++ b/test/v2.0-apps-taphonomysystems-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/apps/taphonomysystems', function() { describe('tests for get', function() { it('should respond 200 for "A table of Neotoma collection types."', function() { var response = request('get', 'http://localhost:3001/v2.0/apps/taphonomysystems', { - 'qs': {"datasettypeid":1}, + 'qs': {"datasettypeid":40}, 'time': true }); diff --git a/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js b/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js index c179a8e..d055555 100644 --- a/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js +++ b/test/v2.0-data-aggregatedatasets-{aggdatasetid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/aggregatedatasets/{aggdatasetid}', function() { describe('tests for get', function() { it('should respond 200 for "An array of datasets."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/aggregatedatasets/500', { + var response = request('get', 'http://localhost:3001/v2.0/data/aggregatedatasets/5536', { 'time': true }); diff --git a/test/v2.0-data-contacts-test.js b/test/v2.0-data-contacts-test.js index cc7f701..acadf0e 100644 --- a/test/v2.0-data-contacts-test.js +++ b/test/v2.0-data-contacts-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/contacts', function() { describe('tests for get', function() { it('should respond 200 for "contact"', function() { var response = request('get', 'http://localhost:3001/v2.0/data/contacts', { - 'qs': {"contactid":13367,"familyname":"LqNGsFC","contactname":"B","contactstatus":"active","limit": 10,"offset": 0}, + 'qs': {"contactid":8421,"familyname":"UcoCW","contactname":"FDc","contactstatus":"active","limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-contacts-{contactid}-test.js b/test/v2.0-data-contacts-{contactid}-test.js index 310b915..355cb01 100644 --- a/test/v2.0-data-contacts-{contactid}-test.js +++ b/test/v2.0-data-contacts-{contactid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/contacts/{contactid}', function() { describe('tests for get', function() { it('should respond 200 for "A Neotoma contacts object."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/contacts/1563', { + var response = request('get', 'http://localhost:3001/v2.0/data/contacts/1231', { 'time': true }); diff --git a/test/v2.0-data-datasets-db-test.js b/test/v2.0-data-datasets-db-test.js index 3703055..87eebf5 100644 --- a/test/v2.0-data-datasets-db-test.js +++ b/test/v2.0-data-datasets-db-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/datasets/db', function() { describe('tests for get', function() { it('should respond 200 for "Datasets"', function() { var response = request('get', 'http://localhost:3001/v2.0/data/datasets/db', { - 'qs': {"limit": 10,"offset": 0,"database":"Neotoma Testate Amoebae Database"}, + 'qs': {"limit": 10,"offset": 0,"database":"NDSU Insect Database"}, 'time': true }); diff --git a/test/v2.0-data-datasets-test.js b/test/v2.0-data-datasets-test.js index 8a79f98..a6bf4f9 100644 --- a/test/v2.0-data-datasets-test.js +++ b/test/v2.0-data-datasets-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/datasets', function() { describe('tests for get', function() { it('should respond 200 for "An array of datasets."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/datasets', { - 'qs': {"sitename":"aliqua qui esse consequat non","database":"Neotoma Biomarker Database","datasettype":"vertebrate fauna","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":43461,"datasetid":52178796,"doi":"10|6878/77/.X","gpid":5392,"keyword":"modern","contactid":5305,"taxa":"id labore","ageyoung": 1000,"ageold": 10000,"ageof":22158311,"limit": 10,"offset": 0}, + 'qs': {"sitename":"Excepteur sint anim sed do","database":"Canadian Pollen Database","datasettype":"charcoal surface sample","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":45345,"datasetid":12116711,"doi":"10d91690/6YEIVB","gpid":5392,"keyword":"modern","contactid":14536,"taxa":"dolore elit","ageyoung": 1000,"ageold": 10000,"ageof":13721899,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-datasets_elc-test.js b/test/v2.0-data-datasets_elc-test.js index 1b33836..0ec6f9e 100644 --- a/test/v2.0-data-datasets_elc-test.js +++ b/test/v2.0-data-datasets_elc-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/datasets_elc', function() { describe('tests for get', function() { it('should respond 200 for "A Neotoma datasets object suitable for the EarthLife Consortium API."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/datasets_elc', { - 'qs': {"siteid":34170,"contactid":948,"datasettype":"microcharcoal","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":10605188}, + 'qs': {"siteid":19427,"contactid":9808,"datasettype":"ostracode surface sample","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":22042396}, 'time': true }); diff --git a/test/v2.0-data-dbtables-test.js b/test/v2.0-data-dbtables-test.js index 5ef9b6f..29d49cc 100644 --- a/test/v2.0-data-dbtables-test.js +++ b/test/v2.0-data-dbtables-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/dbtables', function() { describe('tests for get', function() { it('should respond 200 for "Returned table."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/dbtables', { - 'qs': {"table":"adipisicing ipsum dolor","count":true,"limit": 10,"offset": 0}, + 'qs': {"table":"culpa qui aliqua","count":false,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-dbtables-{table}-test.js b/test/v2.0-data-dbtables-{table}-test.js index 6ef9b0d..a4d72ab 100644 --- a/test/v2.0-data-dbtables-{table}-test.js +++ b/test/v2.0-data-dbtables-{table}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/dbtables/{table}', function() { describe('tests for get', function() { it('should respond 200 for "Returned table."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/dbtables/incididuntDuissitullamcoofficia', { + var response = request('get', 'http://localhost:3001/v2.0/data/dbtables/veniam', { 'qs': {"count":true,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js b/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js index 2cdb76b..84939aa 100644 --- a/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js +++ b/test/v2.0-data-geopoliticalunits-{gpid}-datasets-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/geopoliticalunits/{gpid}/datasets', function() { describe('tests for get', function() { it('should respond 200 for "An array of datasets."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/500/datasets', { + var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/4013/datasets', { 'qs': {"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js b/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js index b2fe807..071ed57 100644 --- a/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js +++ b/test/v2.0-data-geopoliticalunits-{gpid}-sites-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/geopoliticalunits/{gpid}/sites', function() { describe('tests for get', function() { it('should respond 200 for "An array of sites."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/1486/sites', { + var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/9953/sites', { 'qs': {"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-geopoliticalunits-{gpid}-test.js b/test/v2.0-data-geopoliticalunits-{gpid}-test.js index 5408072..f3b9a5c 100644 --- a/test/v2.0-data-geopoliticalunits-{gpid}-test.js +++ b/test/v2.0-data-geopoliticalunits-{gpid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/geopoliticalunits/{gpid}', function() { describe('tests for get', function() { it('should respond 200 for "An array of geopolitical units."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/500', { + var response = request('get', 'http://localhost:3001/v2.0/data/geopoliticalunits/8983', { 'time': true }); diff --git a/test/v2.0-data-occurrences-test.js b/test/v2.0-data-occurrences-test.js index 5491db8..fdc9128 100644 --- a/test/v2.0-data-occurrences-test.js +++ b/test/v2.0-data-occurrences-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/occurrences', function() { describe('tests for get', function() { it('should respond 200 for "occurrence"', function() { var response = request('get', 'http://localhost:3001/v2.0/data/occurrences', { - 'qs': {"taxonname":"aliquip eiusmod","taxonid":7890,"siteid":16610,"sitename":"officia dolore cupidatat eu ea","datasettype":"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]]]}","ageof":10193875,"ageyoung": 1000,"ageold": 10000,"limit": 10,"offset": 0}, + 'qs': {"taxonname":"do","taxonid":15630,"siteid":47495,"sitename":"Excepteur quis exercitation in voluptate","datasettype":"physical sedimentology","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":2824041,"ageyoung": 1000,"ageold": 10000,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-pollen-test.js b/test/v2.0-data-pollen-test.js index 1946374..d4f581a 100644 --- a/test/v2.0-data-pollen-test.js +++ b/test/v2.0-data-pollen-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/pollen', function() { describe('tests for get', function() { it('should respond 200 for "A record of all pollen samples in time/space for a particular taxon."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/pollen', { - 'qs': {"taxonname":"esse ut dolore labore","taxonid":32590,"siteid":30859,"sitename":"sit","datasettype":"geochronologic","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":15225459,"ageyoung": 1000,"ageold": 10000,"limit": 10,"offset": 0}, + 'qs': {"taxonname":"mollit ea exercitation","taxonid":26150,"siteid":43990,"sitename":"sint cupidatat deserunt quis laboris","datasettype":"X-ray diffraction (XRD)","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":17402500,"ageyoung": 1000,"ageold": 10000,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-publications-test.js b/test/v2.0-data-publications-test.js index f6aaf24..099410b 100644 --- a/test/v2.0-data-publications-test.js +++ b/test/v2.0-data-publications-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/publications', function() { describe('tests for get', function() { it('should respond 200 for "A list of publications."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/publications', { - 'qs': {"publicationid":11248,"datasetid":25838920,"siteid":43901,"familyname":"YhlWFYaSz ","pubtype":"Journal Article","year":1866,"search":"elit Duis sit aliqua in","limit": 10,"offset": 0}, + 'qs': {"publicationid":4903,"datasetid":19947503,"siteid":38778,"familyname":"'sLglW","pubtype":"Book Chapter","year":1527,"search":"ut sit in mollit","limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-publications-{publicationid}-test.js b/test/v2.0-data-publications-{publicationid}-test.js index 7126513..03a5c5d 100644 --- a/test/v2.0-data-publications-{publicationid}-test.js +++ b/test/v2.0-data-publications-{publicationid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/publications/{publicationid}', function() { describe('tests for get', function() { it('should respond 200 for "A list of publications."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/publications/500', { + var response = request('get', 'http://localhost:3001/v2.0/data/publications/5728', { 'time': true }); diff --git a/test/v2.0-data-sites-test.js b/test/v2.0-data-sites-test.js index af725d9..332ec86 100644 --- a/test/v2.0-data-sites-test.js +++ b/test/v2.0-data-sites-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/sites', function() { describe('tests for get', function() { it('should respond 200 for "An array of sites."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/sites', { - 'qs': {"sitename":"adipisicing non","database":"Neotoma Midden Database","datasettype":"diatom","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":47233,"datasetid":43001185,"doi":"10W6058/Y.UJO2","gpid":5392,"keyword":"modern","contactid":18443,"taxa":"sed ullamco culpa laborum","ageyoung": 1000,"ageold": 10000,"ageof":12270010,"limit": 10,"offset": 0}, + 'qs': {"sitename":"nostrud velit dolore in in","database":"Diatom Paleolimnology Data Cooperative (DPDC)","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":2022,"datasetid":67760076,"doi":"10)73259/W8;78U83/","gpid":5392,"keyword":"bottom","contactid":20094,"taxa":"adipisicing nostrud exercitation","ageyoung": 1000,"ageold": 10000,"ageof":19655794,"limit": 10,"offset": 0}, 'time': true }); diff --git a/test/v2.0-data-sites-{siteid}-datasets_elc-test.js b/test/v2.0-data-sites-{siteid}-datasets_elc-test.js index 7161f16..7150e27 100644 --- a/test/v2.0-data-sites-{siteid}-datasets_elc-test.js +++ b/test/v2.0-data-sites-{siteid}-datasets_elc-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/sites/{siteid}/datasets_elc', function() { describe('tests for get', function() { it('should respond 200 for "An array of datasets."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/sites/8091/datasets_elc', { + var response = request('get', 'http://localhost:3001/v2.0/data/sites/500/datasets_elc', { 'time': true }); diff --git a/test/v2.0-data-spatial-faunal-test.js b/test/v2.0-data-spatial-faunal-test.js index 41674e8..dda3fd5 100644 --- a/test/v2.0-data-spatial-faunal-test.js +++ b/test/v2.0-data-spatial-faunal-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/spatial/faunal', function() { describe('tests for get', function() { it('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) "', function() { var response = request('get', 'http://localhost:3001/v2.0/data/spatial/faunal', { - 'qs': {"sciname":"reprehenderit aute fugiat","proj": 4326,"prec": 1000}, + 'qs': {"sciname":"consectetur quis reprehenderit","proj": 4326,"prec": 1000}, 'time': true }); diff --git a/test/v2.0-data-spatial-icesheet-test.js b/test/v2.0-data-spatial-icesheet-test.js index c80bcbb..0ad635c 100644 --- a/test/v2.0-data-spatial-icesheet-test.js +++ b/test/v2.0-data-spatial-icesheet-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/spatial/icesheet', function() { describe('tests for get', function() { it('should respond 200 for "An object containing glacial extents for the selected time period (in **calibrated radiocarbon years**). "', function() { var response = request('get', 'http://localhost:3001/v2.0/data/spatial/icesheet', { - 'qs': {"age":13023,"proj": 4326,"prec": 1000}, + 'qs': {"age":13209,"proj": 4326,"prec": 1000}, 'time': true }); diff --git a/test/v2.0-data-spatial-lakes-test.js b/test/v2.0-data-spatial-lakes-test.js index 9b63be1..f828826 100644 --- a/test/v2.0-data-spatial-lakes-test.js +++ b/test/v2.0-data-spatial-lakes-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/spatial/lakes', function() { describe('tests for get', function() { it('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) "', function() { var response = request('get', 'http://localhost:3001/v2.0/data/spatial/lakes', { - 'qs': {"siteid":43280,"buffer":1148,"prec": 1000,"proj": 4326}, + 'qs': {"siteid":14853,"buffer":3021,"prec": 1000,"proj": 4326}, 'time': true }); diff --git a/test/v2.0-data-speleothems-{collectionunitid}-test.js b/test/v2.0-data-speleothems-{collectionunitid}-test.js index a928d7f..3bfc604 100644 --- a/test/v2.0-data-speleothems-{collectionunitid}-test.js +++ b/test/v2.0-data-speleothems-{collectionunitid}-test.js @@ -7,7 +7,7 @@ var expect = chakram.expect; describe('tests for /v2.0/data/speleothems/{collectionunitid}', function() { describe('tests for get', function() { it('should respond 200 for "Metadata associated with speleothems submitted through SISAL."', function() { - var response = request('get', 'http://localhost:3001/v2.0/data/speleothems/500', { + var response = request('get', 'http://localhost:3001/v2.0/data/speleothems/7950', { 'time': true }); diff --git a/test/v2.0-data-taxa-test.js b/test/v2.0-data-taxa-test.js index 060920c..3eae6ad 100644 --- a/test/v2.0-data-taxa-test.js +++ b/test/v2.0-data-taxa-test.js @@ -8,7 +8,7 @@ describe('tests for /v2.0/data/taxa', function() { describe('tests for get', function() { it('should respond 200 for "A taxon or array of taxa."', function() { var response = request('get', 'http://localhost:3001/v2.0/data/taxa', { - 'qs': {"taxonname":"Excepteur irure","taxagroup":"Ut aute ea et dolore","ecolgroup":"in nulla eu","status":0,"limit": 10,"offset": 0}, + 'qs': {"taxonname":"do exercitation magna officia cupidatat","taxagroup":"sit commodo","ecolgroup":"laboris elit","status":0,"limit": 10,"offset": 0}, 'time': true });