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 73f3f4c..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 2fc6f43..995e2d2 100644
--- a/public/tests.json
+++ b/public/tests.json
@@ -5,9 +5,9 @@
"passes": 145,
"pending": 1,
"failures": 0,
- "start": "2026-05-11T22:30:29.477Z",
- "end": "2026-05-11T22:32:40.178Z",
- "duration": 130701,
+ "start": "2026-05-13T21:31:33.627Z",
+ "end": "2026-05-13T21:33:17.425Z",
+ "duration": 103798,
"testsRegistered": 146,
"passPercent": 100,
"pendingPercent": 0.684931506849315,
@@ -18,7 +18,7 @@
},
"results": [
{
- "uuid": "6c4e73f7-d18e-4aaa-9583-a20a61ae590d",
+ "uuid": "ccba6456-5fe6-4a3b-a66a-251379d151e3",
"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": "cc4fec91-94b9-4998-87bc-48b71d183492",
+ "parentUUID": "ccba6456-5fe6-4a3b-a66a-251379d151e3",
"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": "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": "88d2cddf-3aea-41fb-af41-7f0ce00b7f3f",
+ "uuid": "795460c2-97ae-43be-a29b-e4da218f47d0",
"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-taxaindatasets-test.js",
+ "file": "/test/v2.0-apps-taxaindatasets-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 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": 610,
+ "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/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/taxaindatasets', { \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": "1a5eaaf9-daec-447e-93f7-f5a9974260cd",
+ "parentUUID": "795460c2-97ae-43be-a29b-e4da218f47d0",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "ca1fa063-c753-48ed-96c0-f4e9b413e928"
+ "1a5eaaf9-daec-447e-93f7-f5a9974260cd"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 610,
+ "duration": 2988,
"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": "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": "5976fea5-2918-423b-bd26-16dfd8430eb6",
+ "uuid": "03ee7e46-3fa5-499c-950e-f32c5e0730b1",
"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/v1.5-data-sites-{siteid}-test.js",
+ "file": "/test/v1.5-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 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": 71,
+ "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/89938284/publications', { \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": "a67d0e24-1a08-4738-a537-f4f50d01bb00",
- "parentUUID": "5976fea5-2918-423b-bd26-16dfd8430eb6",
+ "uuid": "bff6de9e-5981-4838-9f3d-50adf64dfee2",
+ "parentUUID": "03ee7e46-3fa5-499c-950e-f32c5e0730b1",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "a67d0e24-1a08-4738-a537-f4f50d01bb00"
+ "bff6de9e-5981-4838-9f3d-50adf64dfee2"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 71,
+ "duration": 79,
"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": "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": "f919e262-5233-4107-b500-77a28bc53728",
+ "uuid": "3ef0b65c-c2cd-4186-b33e-b0bb1de73624",
"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-taxa-test.js",
+ "file": "/test/v2.0-data-taxa-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 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": 81,
+ "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/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/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": "7aeb7eee-cd9a-439f-b334-3ccda13b1866",
- "parentUUID": "f919e262-5233-4107-b500-77a28bc53728",
+ "uuid": "756a77f6-74c7-4f0d-bcb6-2aed659a5ed7",
+ "parentUUID": "3ef0b65c-c2cd-4186-b33e-b0bb1de73624",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "7aeb7eee-cd9a-439f-b334-3ccda13b1866"
+ "756a77f6-74c7-4f0d-bcb6-2aed659a5ed7"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 81,
+ "duration": 171,
"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": "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": "3c3551e0-e3f5-4416-9981-29c522289a0c",
+ "uuid": "92cb5f3d-90a3-4899-832b-567097bc326b",
"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-pollen-{id}-test.js",
+ "file": "/test/v2.0-data-pollen-{id}-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 \"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": 86,
+ "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/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/pollen/500', { \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": "ca2898b0-0659-483e-a2ab-54b3039fa454",
+ "parentUUID": "92cb5f3d-90a3-4899-832b-567097bc326b",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "9c95725f-44f0-4295-855b-8fddcac7672a"
+ "ca2898b0-0659-483e-a2ab-54b3039fa454"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 86,
+ "duration": 5,
"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": "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": "8adafcf2-7af0-4f78-857d-98ace1f00b37",
+ "uuid": "df9f4eee-2e7d-4ecb-bc7d-180b70ce1e02",
"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-contacts-{contactid}-test.js",
+ "file": "/test/v2.0-data-contacts-{contactid}-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 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": 1,
+ "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/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/contacts/1231', { \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": "dd25704a-6629-4270-befa-9e9d9f2055c9",
+ "parentUUID": "df9f4eee-2e7d-4ecb-bc7d-180b70ce1e02",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "cc7d130a-f699-4f24-aff3-a28555274e6a"
+ "dd25704a-6629-4270-befa-9e9d9f2055c9"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 1,
+ "duration": 71,
"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": "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": "d6b2f8d4-083d-40a4-b8a9-8ead10c469a0",
+ "uuid": "4b0b9bc0-f776-4bf0-ae98-5f3b5adbfffb",
"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/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/taxagrouptypes 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": 133,
+ "duration": 104,
"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/v1.5/apps/DatasetTypes', { \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": "858c96e5-7f5f-4506-b8fb-98eb3fe697d7",
+ "parentUUID": "4b0b9bc0-f776-4bf0-ae98-5f3b5adbfffb",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "8526eb23-1cae-4615-ac1b-b8f371cc23cc"
+ "858c96e5-7f5f-4506-b8fb-98eb3fe697d7"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 133,
+ "duration": 104,
"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": "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": "23b227a2-34d3-459e-a173-e2ba22e7b789",
+ "uuid": "0f60d08b-dd3d-47fa-bbd9-f6ff636ebc2a",
"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-{datasetid}-sites-test.js",
+ "file": "/test/v2.0-data-datasets-{datasetid}-sites-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 \"Site\"",
+ "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/sites tests for get should respond 200 for \"Site\"",
"timedOut": false,
- "duration": 1716,
+ "duration": 93,
"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/500/sites', { \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": "0d02d4a9-5728-4e16-b3d1-bd4ac4179564",
+ "parentUUID": "0f60d08b-dd3d-47fa-bbd9-f6ff636ebc2a",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "a7aab7e7-698f-4db9-a292-84b2027fecd3"
+ "0d02d4a9-5728-4e16-b3d1-bd4ac4179564"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 1716,
+ "duration": 93,
"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": "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": "da7af6d4-c602-42a8-9d81-91ebf3c7b552",
+ "uuid": "04752d37-7500-4cec-a266-b728192b6ff8",
"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-datasets-{datasetid}-chronologies-test.js",
+ "file": "/test/v2.0-data-datasets-{datasetid}-chronologies-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 \"chronology\"",
+ "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/chronologies tests for get should respond 200 for \"chronology\"",
"timedOut": false,
- "duration": 68,
+ "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/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/datasets/500/chronologies', { \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": "f40d5595-1e1d-44a1-af9c-e13d8a2b255d",
+ "parentUUID": "04752d37-7500-4cec-a266-b728192b6ff8",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "ca03ad21-2e48-42d0-b826-c3243ea14134"
+ "f40d5595-1e1d-44a1-af9c-e13d8a2b255d"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 68,
+ "duration": 107,
"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": "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": "ee7af3f4-a905-455e-b8a2-ff78b0479d3b",
+ "uuid": "0e2c7c9e-dab5-4a1e-a6e7-b418d04fd28b",
"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-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 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 \"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": 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/apps/constdb/datasetuploads', { \n 'qs': {\"dbid\":16},\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": "39aa4265-bc36-4234-ad59-a065c39960e5",
+ "parentUUID": "0e2c7c9e-dab5-4a1e-a6e7-b418d04fd28b",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "456efcf9-fb91-41a5-964c-6149ad48a8d5"
+ "39aa4265-bc36-4234-ad59-a065c39960e5"
],
"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": "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": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284",
+ "uuid": "68c055b6-36c1-45f9-a472-1689c9e88709",
"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-datasets-test.js",
+ "file": "/test/v2.0-data-datasets-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/datasets tests for get should respond 200 for \"An array of datasets.\"",
"timedOut": false,
- "duration": 1,
+ "duration": 161,
"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', { \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": "e5d14142-8b49-400e-ae1f-69f990a861ca",
- "parentUUID": "cdaf9edd-968f-4ac0-9daf-b0aa103f4284",
+ "uuid": "27a39509-d249-4c2c-9f43-18fe73b60643",
+ "parentUUID": "68c055b6-36c1-45f9-a472-1689c9e88709",
"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"
+ "27a39509-d249-4c2c-9f43-18fe73b60643"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 6288,
+ "duration": 161,
"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": "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": "176fc265-27de-45f2-ae3a-dcee9cf409c4",
+ "uuid": "c1fc4b5b-3ce7-4d3a-b7b4-f097636fdbf8",
"title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets-{datasetid}-sites-test.js",
- "file": "/test/v2.0-data-datasets-{datasetid}-sites-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasetages-test.js",
+ "file": "/test/v2.0-apps-constdb-datasetages-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 \"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": 83,
+ "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/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/apps/constdb/datasetages', { \n 'qs': {\"dbid\":25},\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": "119b3384-9f86-4c3b-abc1-82a074993b4c",
+ "parentUUID": "c1fc4b5b-3ce7-4d3a-b7b4-f097636fdbf8",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "43193649-b594-486c-8668-0a8a75c6f647"
+ "119b3384-9f86-4c3b-abc1-82a074993b4c"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 83,
+ "duration": 15589,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1066,165 +684,316 @@
"_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": "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": "1ff67ce4-e8d8-4f03-9c94-7041ce07cf2d",
- "title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-datasets_elc-test.js",
- "file": "/test/v2.0-data-sites-{siteid}-datasets_elc-test.js",
- "beforeHooks": [],
- "afterHooks": [],
- "tests": [
- {
- "title": "should respond 200 for \"An array of datasets.\"",
- "fullTitle": "tests for /v2.0/data/sites/{siteid}/datasets_elc tests for get should respond 200 for \"An array of datasets.\"",
- "timedOut": false,
- "duration": 3116,
- "state": "passed",
- "speed": "slow",
- "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();",
- "err": {},
- "uuid": "f6df063b-cc04-418d-bb0f-60e40752b476",
- "parentUUID": "1ff67ce4-e8d8-4f03-9c94-7041ce07cf2d",
- "isHook": false,
- "skipped": false
- }
- ],
- "suites": [],
- "passes": [
- "f6df063b-cc04-418d-bb0f-60e40752b476"
- ],
- "failures": [],
- "pending": [],
- "skipped": [],
- "duration": 3116,
- "root": false,
- "rootEmpty": false,
- "_timeout": 900000
- }
- ],
- "passes": [],
- "failures": [],
- "pending": [],
- "skipped": [],
- "duration": 0,
- "root": false,
- "rootEmpty": false,
- "_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",
- "beforeHooks": [],
- "afterHooks": [],
- "tests": [],
- "suites": [
+ "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": 2,
+ "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": "3a4e2957-c1f0-43af-a149-824c41f5aa70",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "isHook": false,
+ "skipped": false
+ },
{
- "uuid": "814ff459-eede-4f1d-b8f4-76d0d9966e72",
- "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",
- "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\"",
- "timedOut": false,
- "duration": 99,
- "state": "passed",
- "speed": "fast",
- "pass": true,
- "fail": false,
- "pending": false,
- "context": null,
- "code": "var response = request('get', 'http://localhost:3001/v2.0/data/taxa/38219/occurrences', { \n 'qs': {\"limit\":1224,\"offset\":49084421},\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",
- "isHook": false,
- "skipped": false
- }
- ],
- "suites": [],
- "passes": [
- "0dd4d02d-10d6-4597-92a9-7df2cf0a7dd4"
- ],
- "failures": [],
- "pending": [],
- "skipped": [],
- "duration": 99,
- "root": false,
- "rootEmpty": false,
- "_timeout": 900000
+ "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": "7be429bd-c20d-4275-8bae-2e892d8def6e",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "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": "2fd6ff3f-da92-49ba-a5df-fc5b4e68b09d",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "isHook": false,
+ "skipped": false
+ },
+ {
+ "title": "Get occurrence by taxon:",
+ "fullTitle": "Get occurrence data any number of ways: Get occurrence by taxon:",
+ "timedOut": false,
+ "duration": 1,
+ "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": "79f27fd7-0359-474d-8ec2-1dc7df0a1b2a",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "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": "84340dd3-9180-4477-8c17-ad9c6caa5654",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "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": "068a1593-a137-467c-8a50-9a7c4a31ec24",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "isHook": false,
+ "skipped": false
+ },
+ {
+ "title": "Occurrences filter by age:",
+ "fullTitle": "Get occurrence data any number of ways: Occurrences filter by age:",
+ "timedOut": false,
+ "duration": 0,
+ "state": "passed",
+ "speed": "fast",
+ "pass": true,
+ "fail": false,
+ "pending": false,
+ "context": null,
+ "code": "api.get('v2.0/data/occurrences/?ageyoung=3000&ageold=5000')\n .set('Accept', 'application/json')\n .expect(function(res) {\n })\n .expect(200);\ndone();",
+ "err": {},
+ "uuid": "cdb51c1b-587c-47b9-ab73-ad07205d8b63",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "isHook": false,
+ "skipped": false
+ },
+ {
+ "title": "Get occurrences with comma separated fields:",
+ "fullTitle": "Get occurrence data any number of ways: Get occurrences with comma separated fields:",
+ "timedOut": false,
+ "duration": 0,
+ "state": "passed",
+ "speed": "fast",
+ "pass": true,
+ "fail": false,
+ "pending": false,
+ "context": null,
+ "code": "api.get('v2.0/data/occurrences/' +\n '?siteid=12,13,14,15&taxonname=Betula&limit=200')\n .set('Accept', 'application/json')\n .expect(function(res) {\n const allSite = res.body['data'];\n const siteids = [];\n for (let i = 0; i < allSite.length; i++) {\n siteids.push(allSite[i]['site']['siteid']);\n };\n const uniqueSites = Array.from(new Set(siteids)).sort(function(a, b) {\n return a - b;\n });\n return (uniqueSites.every((item) => [12, 13, 14, 15].includes(item)));\n })\n .expect(200);\ndone();",
+ "err": {},
+ "uuid": "f808db8a-1d73-4bc5-945b-afacaf86dc81",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "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": "2407d71d-a9c7-4ee3-bcd5-73b14de08679",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "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": "d34d6f19-a9a7-43c6-87c1-a6e8fdf1b488",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "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": "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": "24c84a9f-cb0d-48f6-8046-0a38290dad50",
+ "parentUUID": "e0b21655-5b8c-4ec7-b016-792972a54b98",
+ "isHook": false,
+ "skipped": false
}
],
- "passes": [],
+ "suites": [],
+ "passes": [
+ "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": 0,
+ "duration": 4,
"root": false,
"rootEmpty": false,
- "_timeout": 900000
+ "_timeout": 30000
},
{
- "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": "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": "527195a6-1df3-44dc-9cc5-95f7b7a439cf",
+ "uuid": "d6f1e7b1-f56a-4755-920a-686fdde654f8",
"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/v1.5-dbtables-{table}-test.js",
+ "file": "/test/v1.5-dbtables-{table}-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 \"Returned table.\"",
+ "fullTitle": "tests for /v1.5/dbtables/{table} tests for get should respond 200 for \"Returned table.\"",
"timedOut": false,
- "duration": 169,
+ "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', { \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();",
+ "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": "0023a129-5b56-4bfd-bb18-f778e6d34e36",
- "parentUUID": "527195a6-1df3-44dc-9cc5-95f7b7a439cf",
+ "uuid": "a0eebf15-1453-4e0a-9ef4-45f9843c8173",
+ "parentUUID": "d6f1e7b1-f56a-4755-920a-686fdde654f8",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "0023a129-5b56-4bfd-bb18-f778e6d34e36"
+ "a0eebf15-1453-4e0a-9ef4-45f9843c8173"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 169,
+ "duration": 71,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1240,49 +1009,88 @@
"_timeout": 900000
},
{
- "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": "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": "f7326cff-bf34-4674-9cdd-e126eafe43f6",
+ "uuid": "52fcf11d-8fe6-4ca7-932c-30338a851eef",
"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-datasets-{datasetid}-taxa-test.js",
+ "file": "/test/v2.0-data-datasets-{datasetid}-taxa-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 \"Taxa\"",
+ "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/taxa tests for get should respond 200 for \"Taxa\"",
"timedOut": false,
- "duration": 70,
+ "duration": 141,
"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/datasets/500/taxa', { \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": "285268b2-bbda-4948-b5d6-7beacaba934b",
+ "parentUUID": "52fcf11d-8fe6-4ca7-932c-30338a851eef",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "8e66dca7-d4a4-4370-94a3-a72da2d7d2db"
+ "285268b2-bbda-4948-b5d6-7beacaba934b"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 70,
+ "duration": 141,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1298,49 +1106,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": "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": "aeeedb15-59b0-4fa2-953b-67feab1a8a62",
+ "uuid": "4a8f1d66-d366-44ac-8769-d9eb4a963800",
"title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-occurrences-test.js",
- "file": "/test/v2.0-data-occurrences-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-taxa-{taxonid}-occurrences-test.js",
+ "file": "/test/v2.0-data-taxa-{taxonid}-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\"",
+ "fullTitle": "tests for /v2.0/data/taxa/{taxonid}/occurrences tests for get should respond 200 for \"occurrence\"",
"timedOut": false,
- "duration": 97,
+ "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/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/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": "039c7aec-0c70-47f7-9550-a22f0180a13a",
- "parentUUID": "aeeedb15-59b0-4fa2-953b-67feab1a8a62",
+ "uuid": "4d723455-90c4-4906-8276-244cd55549de",
+ "parentUUID": "4a8f1d66-d366-44ac-8769-d9eb4a963800",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "039c7aec-0c70-47f7-9550-a22f0180a13a"
+ "4d723455-90c4-4906-8276-244cd55549de"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 97,
+ "duration": 5,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1356,49 +1164,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": "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 occurrence data using a simple geoJSON:",
+ "fullTitle": "Get Neotoma data with geoJSON extents: Get occurrence data using a simple geoJSON:",
+ "timedOut": false,
+ "duration": 331,
+ "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": "031ef58e-d58b-465a-a92d-b511c7fdc1a3",
+ "parentUUID": "c02be42b-bdca-4410-a3f8-6386e3a7f22c",
+ "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": 3742,
+ "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": "ed1eda04-67db-486d-bd2f-e42a5872180d",
+ "parentUUID": "c02be42b-bdca-4410-a3f8-6386e3a7f22c",
+ "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": 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": 240,
+ "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": "51466f61-f55c-4e47-95a7-34307dc6c5f4",
+ "parentUUID": "68ef889b-f06f-4806-8560-0a4564f51bda",
+ "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": 205,
+ "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": "307c587e-75cb-4dad-8a95-af9f93a488c0",
+ "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": 182,
+ "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": "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": "e685f0d6-ee22-4acd-a570-05fa5a265445",
+ "parentUUID": "68ef889b-f06f-4806-8560-0a4564f51bda",
+ "isHook": false,
+ "skipped": false
+ }
+ ],
+ "suites": [],
+ "passes": [
+ "51466f61-f55c-4e47-95a7-34307dc6c5f4",
+ "307c587e-75cb-4dad-8a95-af9f93a488c0",
+ "d10e5bef-5ef5-4d97-9050-e6dcdb8b0775",
+ "e685f0d6-ee22-4acd-a570-05fa5a265445"
+ ],
+ "failures": [],
+ "pending": [],
+ "skipped": [],
+ "duration": 802,
+ "root": false,
+ "rootEmpty": false,
+ "_timeout": 15000
+ },
+ {
+ "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": "bfe7f86f-0a80-43e9-af23-10ab8b501523",
+ "uuid": "7b785d6f-ea53-4799-94e4-e80f0aa77825",
"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-summary-rawbymonth-test.js",
+ "file": "/test/v2.0-data-summary-rawbymonth-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
- "title": "should respond 200 for \"A list of all taxa in neotoma and the datasets in which they are found.\"",
- "fullTitle": "tests for /v2.0/apps/taxaindatasets tests for get should respond 200 for \"A list of all taxa in neotoma and the datasets in which they are found.\"",
+ "title": "should respond 200 for \"A 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": 3075,
+ "duration": 12125,
"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();",
+ "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": "9f288836-326a-479d-be75-ce2c0049950f",
- "parentUUID": "bfe7f86f-0a80-43e9-af23-10ab8b501523",
+ "uuid": "c89cf0e7-8e51-4f84-b12b-1374a06ca4c3",
+ "parentUUID": "7b785d6f-ea53-4799-94e4-e80f0aa77825",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "9f288836-326a-479d-be75-ce2c0049950f"
+ "c89cf0e7-8e51-4f84-b12b-1374a06ca4c3"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 3075,
+ "duration": 12125,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1414,49 +1395,49 @@
"_timeout": 900000
},
{
- "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": "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": "5f2f6cce-5a4e-4027-b644-c5063cb64c77",
+ "uuid": "e6d7b9db-15ad-44eb-9d83-f07bf9f26e69",
"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-geopoliticalunits-test.js",
+ "file": "/test/v2.0-data-geopoliticalunits-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
- "title": "should respond 200 for \"An array of taxon identities with associated dataset IDs.\"",
- "fullTitle": "tests for /v1.5/apps/TaxaInDatasets tests for get should respond 200 for \"An array of taxon identities with associated dataset IDs.\"",
+ "title": "should respond 200 for \"An 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": 2255,
+ "duration": 73,
"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/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": "547a2a26-a17f-47be-809d-d8ed3b7bee9f",
- "parentUUID": "5f2f6cce-5a4e-4027-b644-c5063cb64c77",
+ "uuid": "8d6568b7-ee20-47f6-bbb1-f6164a654f77",
+ "parentUUID": "e6d7b9db-15ad-44eb-9d83-f07bf9f26e69",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "547a2a26-a17f-47be-809d-d8ed3b7bee9f"
+ "8d6568b7-ee20-47f6-bbb1-f6164a654f77"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 2255,
+ "duration": 73,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1472,7 +1453,7 @@
"_timeout": 900000
},
{
- "uuid": "64d662d6-6ea6-4e89-8e55-3f9fba35c8d1",
+ "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",
@@ -1481,7 +1462,7 @@
"tests": [],
"suites": [
{
- "uuid": "3e744724-7d10-49b7-8206-4ee5d3eb0a85",
+ "uuid": "ef1d125a-656e-4c88-90c2-e09855a6012f",
"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",
@@ -1492,7 +1473,7 @@
"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": 69,
+ "duration": 80,
"state": "passed",
"speed": "fast",
"pass": true,
@@ -1501,20 +1482,20 @@
"context": null,
"code": "var response = request('get', 'http://localhost:3001/v2.0/apps/depositionalenvironments/root', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();",
"err": {},
- "uuid": "c62bc7f8-f7d5-4462-98ce-dcaa3bd14a3e",
- "parentUUID": "3e744724-7d10-49b7-8206-4ee5d3eb0a85",
+ "uuid": "5508e00e-d935-43e6-b6df-6376af26bead",
+ "parentUUID": "ef1d125a-656e-4c88-90c2-e09855a6012f",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "c62bc7f8-f7d5-4462-98ce-dcaa3bd14a3e"
+ "5508e00e-d935-43e6-b6df-6376af26bead"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 69,
+ "duration": 80,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1530,49 +1511,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": "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": "4c1018ec-c536-4d1c-87f9-766b644d17c1",
+ "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}-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-geopoliticalunits-{gpid}-datasets-test.js",
+ "file": "/test/v2.0-data-geopoliticalunits-{gpid}-datasets-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 \"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": 69,
+ "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/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/geopoliticalunits/4013/datasets', { \n 'qs': {\"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": "efb76184-054b-4482-ae06-1c44fa1d9b1d",
+ "parentUUID": "b11c68f9-8883-4003-8e45-153ac2712d8a",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "f0981086-40b6-407b-996c-d9904acc79c1"
+ "efb76184-054b-4482-ae06-1c44fa1d9b1d"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 69,
+ "duration": 102,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1588,49 +1569,49 @@
"_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": "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": "244a06ad-85cd-4012-a66c-837834eddf42",
+ "uuid": "169076c8-e454-4df7-9957-a8da5303aed0",
"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-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 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 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": 85,
+ "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/sites/30362', { \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": "e52c3477-8cf8-460b-a37e-2e5509cfa606",
- "parentUUID": "244a06ad-85cd-4012-a66c-837834eddf42",
+ "uuid": "9e78d93e-756d-4658-b203-239113da1d2a",
+ "parentUUID": "169076c8-e454-4df7-9957-a8da5303aed0",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "e52c3477-8cf8-460b-a37e-2e5509cfa606"
+ "9e78d93e-756d-4658-b203-239113da1d2a"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 85,
+ "duration": 5,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1646,49 +1627,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": "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": "9f00c9b9-156e-4bcb-94f0-33eef76722c7",
+ "uuid": "f4771b40-27c3-4aa4-bf52-180180ca835a",
"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-{siteid}-geopoliticalunits-test.js",
+ "file": "/test/v2.0-data-sites-{siteid}-geopoliticalunits-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 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": 2,
+ "duration": 74,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
- "code": "var response = request('get', 'http://localhost:3001/v2.0/data/pollen/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/500/geopoliticalunits', { \n 'qs': {\"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": "e0adddba-9ff6-42c1-ad79-da3c47365db4",
+ "parentUUID": "f4771b40-27c3-4aa4-bf52-180180ca835a",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "6096ec71-545f-4174-920e-dce149a8de0a"
+ "e0adddba-9ff6-42c1-ad79-da3c47365db4"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 2,
+ "duration": 74,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1704,52 +1685,280 @@
"_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": "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": "96f9f83d-bff5-478d-b110-6614d555590b",
+ "uuid": "9c441d08-391e-498d-a995-42fea15ecdaa",
"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/explorerCalls.js",
+ "file": "/test/explorerCalls.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 TaxaGroupTypes",
+ "fullTitle": "Tests for Explorer App Services tests for get should respond 200 for TaxaGroupTypes",
+ "timedOut": false,
+ "duration": 113,
+ "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": "1ee66666-6a22-4e02-8840-e74edbe17016",
+ "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa",
+ "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": 12,
+ "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": "ee1005ee-8622-492a-aac8-051786153a8f",
+ "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa",
+ "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": 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": 202,
+ "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/datasets', { \n 'qs': {\"dbid\":32},\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": "d2b22457-3a7e-4535-8e79-23812031a586",
- "parentUUID": "96f9f83d-bff5-478d-b110-6614d555590b",
+ "uuid": "544b3df5-7ccc-48b0-94cf-9539df182e14",
+ "parentUUID": "9c441d08-391e-498d-a995-42fea15ecdaa",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "d2b22457-3a7e-4535-8e79-23812031a586"
+ "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": 202,
+ "duration": 6928,
"root": false,
"rootEmpty": false,
- "_timeout": 900000
+ "_timeout": 12000
}
],
"passes": [],
@@ -1759,52 +1968,52 @@
"duration": 0,
"root": false,
"rootEmpty": false,
- "_timeout": 900000
+ "_timeout": 12000
},
{
- "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": "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": "6d6d8fd2-891c-4036-872d-4df1b348e400",
+ "uuid": "5009acc5-12e4-462f-9cb7-862ffc854bde",
"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-spatial-faunal-test.js",
+ "file": "/test/v2.0-data-spatial-faunal-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 \"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": 93,
+ "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/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/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": "984f3bdc-cda5-404a-9d72-e4ee345c41fb",
- "parentUUID": "6d6d8fd2-891c-4036-872d-4df1b348e400",
+ "uuid": "e9e6fc25-90bc-4e8b-9a3a-89f3b1421d98",
+ "parentUUID": "5009acc5-12e4-462f-9cb7-862ffc854bde",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "984f3bdc-cda5-404a-9d72-e4ee345c41fb"
+ "e9e6fc25-90bc-4e8b-9a3a-89f3b1421d98"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 93,
+ "duration": 78,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1820,49 +2029,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": "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": "ed0b6ec4-c83a-49ab-9d52-8182ac855894",
+ "uuid": "87557ba1-2257-4181-a2b7-db1ac3817a39",
"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-authorpis-test.js",
+ "file": "/test/v2.0-apps-authorpis-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/authorpis tests for get should respond 200 for \"A table of Neotoma collection types.\"",
"timedOut": false,
- "duration": 13630,
+ "duration": 595,
"state": "passed",
- "speed": "slow",
+ "speed": "medium",
"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/authorpis', { \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": "3b2d65c4-cabe-4a41-9a8d-544484e9f7d2",
+ "parentUUID": "87557ba1-2257-4181-a2b7-db1ac3817a39",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "dad89b85-3b95-4d58-8cbe-c483c9e25a76"
+ "3b2d65c4-cabe-4a41-9a8d-544484e9f7d2"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 13630,
+ "duration": 595,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1878,49 +2087,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": "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": "40e3af24-fce9-4ab9-a0cd-29ff343fa89d",
+ "uuid": "9d422c7d-67d9-42e0-9a3d-556a9fd3fe54",
"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-downloads-{datasetid}-test.js",
+ "file": "/test/v1.5-data-downloads-{datasetid}-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
- "title": "should respond 200 for \"An array of geopolitical units.\"",
- "fullTitle": "tests for /v1.5/data/geopoliticalunits/{gpid} tests for get should respond 200 for \"An array of geopolitical units.\"",
+ "title": "should respond 200 for \"Returned download object.\"",
+ "fullTitle": "tests for /v1.5/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"",
"timedOut": false,
- "duration": 76,
+ "duration": 616,
"state": "passed",
- "speed": "fast",
+ "speed": "medium",
"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/v1.5/data/downloads/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": "796972e9-3d04-4845-aca7-421a177627cd",
+ "parentUUID": "9d422c7d-67d9-42e0-9a3d-556a9fd3fe54",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "23d7c9db-5eb8-4efe-9098-7af2eceaadc2"
+ "796972e9-3d04-4845-aca7-421a177627cd"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 76,
+ "duration": 616,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1936,49 +2145,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": "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": "d557c0ad-f92f-4e4c-9f44-e5cac7a3d817",
+ "uuid": "d578e6fd-b67b-4bd5-9012-6a75462ac059",
"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/v1.5-apps-TaxaInDatasets-test.js",
+ "file": "/test/v1.5-apps-TaxaInDatasets-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 \"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": 70,
+ "duration": 3167,
"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/contacts/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/TaxaInDatasets', { \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": "57ae4fc3-a27f-4585-b7f6-afb2247ab0c6",
+ "parentUUID": "d578e6fd-b67b-4bd5-9012-6a75462ac059",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "6b32937d-4868-4140-9e15-e23c960508a8"
+ "57ae4fc3-a27f-4585-b7f6-afb2247ab0c6"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 70,
+ "duration": 3167,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -1994,49 +2203,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": "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": "d5e5b824-86d1-48f7-a08d-fef67bbfecb3",
+ "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": 381,
+ "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\":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/aggregatedatasets/5536', { \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": "61a94051-b2ba-4355-85aa-2103ce316a11",
+ "parentUUID": "4c430674-f274-4915-9cb5-471cfa1f2c07",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "aee4071e-ea82-42b3-80a9-a87ac03c4b66"
+ "61a94051-b2ba-4355-85aa-2103ce316a11"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 381,
+ "duration": 79,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2052,49 +2261,49 @@
"_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": "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": "477a39d8-75be-444b-984f-e569606bf4a0",
+ "uuid": "6c313249-b5ce-42ae-a659-7f6742c2c4d3",
"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-summary-dsdbmonth-test.js",
+ "file": "/test/v2.0-data-summary-dsdbmonth-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 \"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": 167,
+ "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/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/data/summary/dsdbmonth', { \n 'qs': {\"start\": 1,\"end\": 10},\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": "bd7154c4-dd6c-498a-a9d6-29d37fd5009d",
+ "parentUUID": "6c313249-b5ce-42ae-a659-7f6742c2c4d3",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "c0d326a7-c12d-4b20-9444-bda961f52bde"
+ "bd7154c4-dd6c-498a-a9d6-29d37fd5009d"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 167,
+ "duration": 206,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2110,49 +2319,221 @@
"_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": "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": "0d4c25d7-cabd-4e81-be05-b1f83bfd3ba6",
+ "uuid": "05b146f4-7e04-42d6-a7c5-14fa1abc3810",
"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-occurrences-{occurrenceid}-test.js",
+ "file": "/test/v2.0-data-occurrences-{occurrenceid}-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 \"occurrence\"",
+ "fullTitle": "tests for /v2.0/data/occurrences/{occurrenceid} tests for get should respond 200 for \"occurrence\"",
"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/occurrences/500', { \n 'qs': {\"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": "f2293bb0-4d32-4ac3-990d-a011e65445f9",
+ "parentUUID": "05b146f4-7e04-42d6-a7c5-14fa1abc3810",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "ba8280a2-3929-4626-b24e-8cbc85655353"
+ "f2293bb0-4d32-4ac3-990d-a011e65445f9"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 71,
+ "duration": 5,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2168,49 +2549,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": "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": "41608679-ac64-4aa6-ba54-bcce8f0ffa12",
+ "uuid": "cfbf65e8-4331-422c-93c4-ad20ca702bdf",
"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}-doi-test.js",
+ "file": "/test/v2.0-data-datasets-{datasetid}-doi-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 \"DOI\"",
+ "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/doi tests for get should respond 200 for \"DOI\"",
"timedOut": false,
- "duration": 648,
+ "duration": 74,
"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/doi', { \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": "0ce937ab-1d5d-465b-9f7d-96a4eb46ee1d",
+ "parentUUID": "cfbf65e8-4331-422c-93c4-ad20ca702bdf",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "a834fea9-e152-497e-968c-c7725f30c60c"
+ "0ce937ab-1d5d-465b-9f7d-96a4eb46ee1d"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 648,
+ "duration": 74,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2226,49 +2607,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": "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": "3a7af812-fc50-4a83-8903-0ad0f0d2574c",
+ "uuid": "07cf6dd0-7f72-4d3e-b230-02d1c85a587e",
"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-spatial-icesheet-test.js",
+ "file": "/test/v2.0-data-spatial-icesheet-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 \"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": 82,
+ "duration": 145,
"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/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": "20982b05-d738-4bc2-9921-e6b8f2e38f68",
- "parentUUID": "3a7af812-fc50-4a83-8903-0ad0f0d2574c",
+ "uuid": "774a094b-cd5a-4e7a-a414-8ccf9dbce06a",
+ "parentUUID": "07cf6dd0-7f72-4d3e-b230-02d1c85a587e",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "20982b05-d738-4bc2-9921-e6b8f2e38f68"
+ "774a094b-cd5a-4e7a-a414-8ccf9dbce06a"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 82,
+ "duration": 145,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2284,49 +2665,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": "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": "eb26b263-ae87-40d7-b236-19d3f8c5f88d",
+ "uuid": "6b5a49f8-c307-4b55-820b-471371e70dfc",
"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-taxa-{taxonid}-test.js",
+ "file": "/test/v2.0-data-taxa-{taxonid}-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 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": 36093,
+ "duration": 72,
"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/taxa/500', { \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": "324bb658-de29-466c-88e9-ece31f3ac6a9",
+ "parentUUID": "6b5a49f8-c307-4b55-820b-471371e70dfc",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "087c444b-978a-4083-aa67-9c60c054459f"
+ "324bb658-de29-466c-88e9-ece31f3ac6a9"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 36093,
+ "duration": 72,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2342,49 +2723,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": "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": "4c3fab65-4cd5-4886-ad1a-3a0fef9d6b57",
+ "uuid": "459e8bac-efcf-4895-b56b-da1e9682a5b5",
"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-publications-test.js",
+ "file": "/test/v2.0-data-publications-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
- "title": "should respond 200 for \"A Neotoma sites object.\"",
- "fullTitle": "tests for /v2.0/data/contacts/{contactid}/sites tests for get should respond 200 for \"A Neotoma sites object.\"",
+ "title": "should respond 200 for \"A list of publications.\"",
+ "fullTitle": "tests for /v2.0/data/publications tests for get should respond 200 for \"A list of publications.\"",
"timedOut": false,
- "duration": 163,
+ "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/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/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": "b9e06b8f-78a5-4725-99fe-acbd290e483e",
- "parentUUID": "4c3fab65-4cd5-4886-ad1a-3a0fef9d6b57",
+ "uuid": "b30ff1c7-abed-48d1-9cf2-c780ed764df0",
+ "parentUUID": "459e8bac-efcf-4895-b56b-da1e9682a5b5",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "b9e06b8f-78a5-4725-99fe-acbd290e483e"
+ "b30ff1c7-abed-48d1-9cf2-c780ed764df0"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 163,
+ "duration": 82,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2400,49 +2781,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": "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": "1d82a3f7-9deb-4f9c-99b7-e0d2076f3bf7",
+ "uuid": "112d19a0-e3a9-4b3d-97eb-41c3e6bc592c",
"title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-datasets_elc-{datasetid}-test.js",
- "file": "/test/v2.0-data-datasets_elc-{datasetid}-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taxagrouptypes-test.js",
+ "file": "/test/v2.0-apps-taxagrouptypes-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 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": 76,
+ "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_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/apps/taxagrouptypes', { \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": "94369cd7-2554-4d47-b910-6d025c244c38",
+ "parentUUID": "112d19a0-e3a9-4b3d-97eb-41c3e6bc592c",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "0f1d9b55-f5ce-4947-b170-4ee930a5a390"
+ "94369cd7-2554-4d47-b910-6d025c244c38"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 76,
+ "duration": 113,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2458,202 +2839,49 @@
"_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",
- "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
- },
- {
- "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
- }
- ],
- "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"
- ],
- "failures": [],
- "pending": [],
- "skipped": [],
- "duration": 775,
- "root": false,
- "rootEmpty": false,
- "_timeout": 15000
- },
- {
- "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": "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": "dd6029bd-e1b1-4a4c-a65e-de0a743ba827",
+ "uuid": "603af640-bdad-4e82-87d3-502c582e38c1",
"title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-depenvt-test.js",
- "file": "/test/v2.0-apps-depenvt-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-{siteid}-chronologies-test.js",
+ "file": "/test/v2.0-data-sites-{siteid}-chronologies-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 \"chronology\"",
+ "fullTitle": "tests for /v2.0/data/sites/{siteid}/chronologies tests for get should respond 200 for \"chronology\"",
"timedOut": false,
- "duration": 90,
+ "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/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/data/sites/500/chronologies', { \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": "85eba53f-80e3-43fb-b278-be417a192d6a",
+ "parentUUID": "603af640-bdad-4e82-87d3-502c582e38c1",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "abf13907-41e0-4f42-ab1b-163886904ab5"
+ "85eba53f-80e3-43fb-b278-be417a192d6a"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 90,
+ "duration": 157,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2669,49 +2897,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": "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": "f149f92f-a079-40a4-aadf-915ae1eb1b5f",
+ "uuid": "d23345cd-65fa-4908-9542-c66fe51c33d5",
"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-chronologies-{chronid}-test.js",
+ "file": "/test/v2.0-data-chronologies-{chronid}-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
- "title": "should respond 200 for \"chronology\"",
- "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/chronologies tests for get should respond 200 for \"chronology\"",
+ "title": "should respond 200 for \"A 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": 100,
+ "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/28048893/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/chronologies/500', { \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": "e10c02a4-ca3a-432a-bd3d-63afcc19ff2d",
+ "parentUUID": "d23345cd-65fa-4908-9542-c66fe51c33d5",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "f385699d-b077-48ae-a930-13dc9932d794"
+ "e10c02a4-ca3a-432a-bd3d-63afcc19ff2d"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 100,
+ "duration": 79,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2727,221 +2955,88 @@
"_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": "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": "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.",
+ "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": 68,
+ "duration": 4,
"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 });",
+ "code": "api.get('v2')\n .set('Accept', 'application/json')\n .expect(302, done);",
"err": {},
- "uuid": "6716a440-cf01-4ec8-9248-87b73d801d2e",
- "parentUUID": "79d63182-b1dc-4412-99a7-bbb0b5882e53",
+ "uuid": "cc23e395-71f2-4615-87a5-89a3283d6a7a",
+ "parentUUID": "00aa662b-1058-4cfc-9c60-0bcef4d6f2b1",
"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"
+ "cc23e395-71f2-4615-87a5-89a3283d6a7a"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 576,
+ "duration": 4,
"root": false,
"rootEmpty": false,
- "_timeout": 5000
+ "_timeout": 900000
},
{
- "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",
+ "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": "5f780873-9ec0-44a1-a70e-35fc53a7394c",
+ "uuid": "f5d4c37f-84ed-4a1a-80b3-f990b21a4ec6",
"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-sites-{siteid}-test.js",
+ "file": "/test/v2.0-data-sites-{siteid}-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 \"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": 71,
+ "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/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/sites/500', { \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": "7a0fbc79-4b92-403e-9d31-ae8ad2b700e3",
+ "parentUUID": "f5d4c37f-84ed-4a1a-80b3-f990b21a4ec6",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "5b0c6d7b-9ef8-4bcc-b8ce-03e797431192"
+ "7a0fbc79-4b92-403e-9d31-ae8ad2b700e3"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 71,
+ "duration": 5,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -2957,49 +3052,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": "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": "ac2a3841-cfd5-4f6d-a85f-a430eff255e9",
+ "uuid": "c35e4f1b-54b1-4a34-8ce1-ae59489bdb92",
"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-data-dbtables-test.js",
+ "file": "/test/v2.0-data-dbtables-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 \"Returned table.\"",
+ "fullTitle": "tests for /v2.0/data/dbtables tests for get should respond 200 for \"Returned table.\"",
"timedOut": false,
- "duration": 78,
+ "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/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/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": "c4521981-1936-4fb7-8cf7-82576ba14163",
- "parentUUID": "ac2a3841-cfd5-4f6d-a85f-a430eff255e9",
+ "uuid": "18c75360-f81d-40df-add3-894df06404db",
+ "parentUUID": "c35e4f1b-54b1-4a34-8ce1-ae59489bdb92",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "c4521981-1936-4fb7-8cf7-82576ba14163"
+ "18c75360-f81d-40df-add3-894df06404db"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 78,
+ "duration": 71,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3015,49 +3110,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": "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": "7061bd3e-a001-4006-9e69-c8ca0bfb3b0f",
+ "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}-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-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 \"chronology\"",
- "fullTitle": "tests for /v2.0/data/sites/{siteid}/chronologies tests for get should respond 200 for \"chronology\"",
+ "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": 85,
+ "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/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/sites/500/datasets_elc', { \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": "1d419c2a-8134-42d9-b1d2-3015bbfcb043",
+ "parentUUID": "22ffdf52-f46b-4053-b37d-0067a995ce4e",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "b1bb31a7-5efd-49da-8781-e5ce7216bb85"
+ "1d419c2a-8134-42d9-b1d2-3015bbfcb043"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 85,
+ "duration": 2417,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3073,49 +3168,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": "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": "c246792b-ff56-47bc-87f8-e07343b6e392",
+ "uuid": "f0d79586-95ef-4851-a023-f8f7a8a6d7e1",
"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/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 /v2.0/data/frozen/{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": 71,
+ "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/frozen/18750323', { \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": "540d06a3-624f-4119-b356-74b29932939c",
- "parentUUID": "c246792b-ff56-47bc-87f8-e07343b6e392",
+ "uuid": "c6466063-c685-40c3-b538-070c42ca91b7",
+ "parentUUID": "f0d79586-95ef-4851-a023-f8f7a8a6d7e1",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "540d06a3-624f-4119-b356-74b29932939c"
+ "c6466063-c685-40c3-b538-070c42ca91b7"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 71,
+ "duration": 1485,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3131,49 +3226,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": "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": "effc45bd-d4a8-4c54-ba95-49d65a43cea1",
+ "uuid": "bca15e83-d64b-47c6-9276-071c6b0fbd72",
"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-speleothems-{collectionunitid}-test.js",
+ "file": "/test/v2.0-data-speleothems-{collectionunitid}-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 \"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": 73,
+ "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/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/data/speleothems/7950', { \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": "643fd5f9-5f22-4cdc-bbd7-f7cb70b05db4",
+ "parentUUID": "bca15e83-d64b-47c6-9276-071c6b0fbd72",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "c5b90b5f-a935-40e7-b4d2-b65a4f3963e5"
+ "643fd5f9-5f22-4cdc-bbd7-f7cb70b05db4"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 73,
+ "duration": 76,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3189,49 +3284,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": "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": "38faa981-1064-4023-bdfe-f1b405a70cc8",
+ "uuid": "82029f80-3a41-47b0-bdc6-80caa3fe27f9",
"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": 79,
"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": "b0da2658-2082-4b8f-ade1-6ad75c0a7a4a",
+ "parentUUID": "82029f80-3a41-47b0-bdc6-80caa3fe27f9",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "082887b0-4fb7-417c-9a20-4abee1095b57"
+ "b0da2658-2082-4b8f-ade1-6ad75c0a7a4a"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 72,
+ "duration": 79,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3247,49 +3342,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": "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": "4fedf4d7-6441-4cf7-9e79-fae4ff01d3e8",
+ "uuid": "f281310b-5fbb-4f19-95f9-cc5a05b4708d",
"title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-taphonomysystems-test.js",
- "file": "/test/v2.0-apps-taphonomysystems-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-test.js",
+ "file": "/test/v2.0-data-contacts-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 \"contact\"",
+ "fullTitle": "tests for /v2.0/data/contacts tests for get should respond 200 for \"contact\"",
"timedOut": false,
- "duration": 71,
+ "duration": 73,
"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/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": "3e04a7be-d9ed-4084-a315-ae60adcad35c",
- "parentUUID": "4fedf4d7-6441-4cf7-9e79-fae4ff01d3e8",
+ "uuid": "5c65f9c4-cfa1-44b1-b49c-d4bf55584be5",
+ "parentUUID": "f281310b-5fbb-4f19-95f9-cc5a05b4708d",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "3e04a7be-d9ed-4084-a315-ae60adcad35c"
+ "5c65f9c4-cfa1-44b1-b49c-d4bf55584be5"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 71,
+ "duration": 73,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3304,50 +3399,50 @@
"rootEmpty": false,
"_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",
+ {
+ "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": [],
"suites": [
{
- "uuid": "6ec8fb09-5a83-4289-a6cc-cd3c725eb3d5",
+ "uuid": "2fe32e2d-c095-4f5e-9dbb-7f0c1a064a76",
"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/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 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": 158,
+ "duration": 75,
"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();",
+ "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": "25ee5a90-e278-4fad-9a4e-747020b3a9b2",
- "parentUUID": "6ec8fb09-5a83-4289-a6cc-cd3c725eb3d5",
+ "uuid": "04803b4c-7ad5-4226-87f5-41e4c1db25f3",
+ "parentUUID": "2fe32e2d-c095-4f5e-9dbb-7f0c1a064a76",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "25ee5a90-e278-4fad-9a4e-747020b3a9b2"
+ "04803b4c-7ad5-4226-87f5-41e4c1db25f3"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 158,
+ "duration": 75,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3363,49 +3458,49 @@
"_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": "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": "f31bf9a2-3793-4b66-9328-62fcdb7798e5",
+ "uuid": "3d78797f-19df-4dc5-ba40-eb3be294d6e3",
"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-datasets-{datasetid}-contacts-test.js",
+ "file": "/test/v2.0-data-datasets-{datasetid}-contacts-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
- "title": "should respond 200 for \"An array of datasets.\"",
- "fullTitle": "tests for /v2.0/data/aggregatedatasets/{aggdatasetid} tests for get should respond 200 for \"An array of datasets.\"",
+ "title": "should respond 200 for \"contact\"",
+ "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/contacts tests for get should respond 200 for \"contact\"",
"timedOut": false,
- "duration": 80,
+ "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/aggregatedatasets/21500', { \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": "485611d8-1def-49ed-92ec-9041c23ff194",
- "parentUUID": "f31bf9a2-3793-4b66-9328-62fcdb7798e5",
+ "uuid": "3afff4cb-2e42-433e-a195-b69e288243ff",
+ "parentUUID": "3d78797f-19df-4dc5-ba40-eb3be294d6e3",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "485611d8-1def-49ed-92ec-9041c23ff194"
+ "3afff4cb-2e42-433e-a195-b69e288243ff"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 80,
+ "duration": 68,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3421,49 +3516,49 @@
"_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",
+ "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": "07b093ac-0f4c-4c99-b77c-a4a36cbde983",
+ "uuid": "c8c14c48-1e21-44e8-867b-898d81c901c0",
"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-sites-{siteid}-datasets-test.js",
+ "file": "/test/v2.0-data-sites-{siteid}-datasets-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 \"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": 16252,
+ "duration": 3,
"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/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": "1b55fcf0-a53e-4af6-9329-bfbe5c3b22bb",
+ "parentUUID": "c8c14c48-1e21-44e8-867b-898d81c901c0",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "393a3e5b-11aa-4c02-a958-9a7e2f62c326"
+ "1b55fcf0-a53e-4af6-9329-bfbe5c3b22bb"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 16252,
+ "duration": 3,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3479,49 +3574,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": "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": "c6f48312-3514-4c1b-84ad-27753ae112f0",
+ "uuid": "28081e74-ca87-44a8-ab4d-cbb2c4ec10a9",
"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-apps-constdb-test.js",
+ "file": "/test/v2.0-apps-constdb-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 \"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": 1738,
+ "duration": 34396,
"state": "passed",
"speed": "slow",
"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/apps/constdb', { \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": "6085c591-a0b7-4469-b020-630f778ffce5",
+ "parentUUID": "28081e74-ca87-44a8-ab4d-cbb2c4ec10a9",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "13d5f13a-58a8-45f9-b8dc-f413451fe0e4"
+ "6085c591-a0b7-4469-b020-630f778ffce5"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 1738,
+ "duration": 34396,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3537,49 +3632,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": "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": "39041d87-3e21-4c9c-9145-9cf430e9150b",
+ "uuid": "c4947959-53d8-412f-b19a-2671e3fa9b2a",
"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-occurrences-test.js",
+ "file": "/test/v2.0-data-occurrences-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 \"occurrence\"",
+ "fullTitle": "tests for /v2.0/data/occurrences tests for get should respond 200 for \"occurrence\"",
"timedOut": false,
- "duration": 209,
+ "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/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/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": "5a3f0c17-8b0c-40d1-b09d-0f97b91d45a2",
- "parentUUID": "39041d87-3e21-4c9c-9145-9cf430e9150b",
+ "uuid": "bb63ccee-95e5-412d-a74e-2e8fd39f6e7e",
+ "parentUUID": "c4947959-53d8-412f-b19a-2671e3fa9b2a",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "5a3f0c17-8b0c-40d1-b09d-0f97b91d45a2"
+ "bb63ccee-95e5-412d-a74e-2e8fd39f6e7e"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 209,
+ "duration": 91,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3595,49 +3690,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": "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": "237e5bfe-a44b-4e88-b5b6-2366c2ebaa43",
+ "uuid": "77c1eff6-8979-4807-8c1b-a61ee9032d84",
"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-downloads-{datasetid}-test.js",
+ "file": "/test/v2.0-data-downloads-{datasetid}-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 \"Returned download object.\"",
+ "fullTitle": "tests for /v2.0/data/downloads/{datasetid} tests for get should respond 200 for \"Returned download object.\"",
"timedOut": false,
- "duration": 82,
+ "duration": 3073,
"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/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/data/downloads/500', { \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": "4add68ec-2b25-4ad4-9efd-3576da8b500e",
+ "parentUUID": "77c1eff6-8979-4807-8c1b-a61ee9032d84",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "84bc14b7-3fc8-497e-8166-fe1e382b56d2"
+ "4add68ec-2b25-4ad4-9efd-3576da8b500e"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 82,
+ "duration": 3073,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3653,49 +3748,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": "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": "89a42fe4-a83d-4ba7-b84f-76c6c3dbbe7c",
+ "uuid": "816d1d04-f64c-4fd3-9d20-ded3237c15c2",
"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-datasets_elc-test.js",
+ "file": "/test/v2.0-data-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.\"",
+ "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": 103,
+ "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/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/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": "2cb25604-9802-44f5-8aeb-a09cedf79cea",
- "parentUUID": "89a42fe4-a83d-4ba7-b84f-76c6c3dbbe7c",
+ "uuid": "44a233b4-f35d-418d-b3c9-69581ff54b12",
+ "parentUUID": "816d1d04-f64c-4fd3-9d20-ded3237c15c2",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "2cb25604-9802-44f5-8aeb-a09cedf79cea"
+ "44a233b4-f35d-418d-b3c9-69581ff54b12"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 103,
+ "duration": 91,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3711,179 +3806,123 @@
"_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": "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": [
- {
- "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": 101,
- "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": "ec2a25a3-d7a7-4147-83d8-0f92cd5c5bf0",
- "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354",
- "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": 78,
- "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": "67ee0da2-f238-4990-846c-a5beae956c05",
- "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354",
- "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": 144,
- "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": "80faef20-6512-452e-afff-9851f6fe2ea3",
- "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354",
- "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": 148,
- "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": "e76a0e22-c939-4e52-9f19-d933f9b2325d",
- "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354",
- "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": 256,
- "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": "9a827c78-dc0c-401e-9613-7866a304f0e9",
- "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354",
- "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": 149,
- "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 });",
- "err": {},
- "uuid": "2b6438dc-6ba7-426f-8b88-19014e6a448b",
- "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354",
- "isHook": false,
- "skipped": false
- },
+ "tests": [],
+ "suites": [
{
- "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": 592,
- "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": "1b5c2030-cc85-4611-87da-cc0dcc87b1c5",
- "parentUUID": "16bb2e56-5e6a-4ac5-a497-d22dfc3f4354",
- "isHook": false,
- "skipped": false
+ "uuid": "9e02eb05-7071-46c6-ad3f-7018427a5a50",
+ "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",
+ "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.\"",
+ "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/apps/keywords', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();",
+ "err": {},
+ "uuid": "763984e9-37cc-4f12-823f-b9e34bdf9703",
+ "parentUUID": "9e02eb05-7071-46c6-ad3f-7018427a5a50",
+ "isHook": false,
+ "skipped": false
+ }
+ ],
+ "suites": [],
+ "passes": [
+ "763984e9-37cc-4f12-823f-b9e34bdf9703"
+ ],
+ "failures": [],
+ "pending": [],
+ "skipped": [],
+ "duration": 70,
+ "root": false,
+ "rootEmpty": false,
+ "_timeout": 900000
}
],
- "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"
+ "passes": [],
+ "failures": [],
+ "pending": [],
+ "skipped": [],
+ "duration": 0,
+ "root": false,
+ "rootEmpty": false,
+ "_timeout": 900000
+ },
+ {
+ "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": "516f7139-779e-4a02-8e60-41ac8a4b50f3",
+ "title": "tests for get",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-spatial-lakes-test.js",
+ "file": "/test/v2.0-data-spatial-lakes-test.js",
+ "beforeHooks": [],
+ "afterHooks": [],
+ "tests": [
+ {
+ "title": "should respond 200 for \"An object containing all matched lakes within some buffer distance of a site. Data derived from the [HydroLakes database](https://www.hydrosheds.org/products/hydrolakes):
* Messager, M.L., Lehner, B., Grill, G., Nedeva, I., Schmitt, O. (2016). Estimating the volume and age of water stored in global lakes using a geo-statistical approach. *Nature Communications*, 7: 13603. doi: [10.1038/ncomms13603](https://doi.org/10.1038/ncomms13603) \"",
+ "fullTitle": "tests for /v2.0/data/spatial/lakes tests for get should respond 200 for \"An object containing all matched lakes within some buffer distance of a site. Data derived from the [HydroLakes database](https://www.hydrosheds.org/products/hydrolakes):
* Messager, M.L., Lehner, B., Grill, G., Nedeva, I., Schmitt, O. (2016). Estimating the volume and age of water stored in global lakes using a geo-statistical approach. *Nature Communications*, 7: 13603. doi: [10.1038/ncomms13603](https://doi.org/10.1038/ncomms13603) \"",
+ "timedOut": false,
+ "duration": 78,
+ "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\":14853,\"buffer\":3021,\"prec\": 1000,\"proj\": 4326},\n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();",
+ "err": {},
+ "uuid": "3e066e8c-d21e-4fd1-8dbe-469f0dfa9f96",
+ "parentUUID": "516f7139-779e-4a02-8e60-41ac8a4b50f3",
+ "isHook": false,
+ "skipped": false
+ }
+ ],
+ "suites": [],
+ "passes": [
+ "3e066e8c-d21e-4fd1-8dbe-469f0dfa9f96"
+ ],
+ "failures": [],
+ "pending": [],
+ "skipped": [],
+ "duration": 78,
+ "root": false,
+ "rootEmpty": false,
+ "_timeout": 900000
+ }
],
+ "passes": [],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 2189,
+ "duration": 0,
"root": false,
"rootEmpty": false,
"_timeout": 900000
},
{
- "uuid": "65469ef2-c751-4907-8cd0-71707825cb34",
+ "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",
@@ -3892,7 +3931,7 @@
"tests": [],
"suites": [
{
- "uuid": "d341e8bb-2294-44ed-bab1-2ef2d4a03497",
+ "uuid": "bd63eabf-792f-4abc-87a4-6822620579d1",
"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",
@@ -3903,7 +3942,7 @@
"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": 93,
+ "duration": 90,
"state": "passed",
"speed": "fast",
"pass": true,
@@ -3912,20 +3951,20 @@
"context": null,
"code": "var response = request('get', 'http://localhost:3001/v2.0/apps/datasettypes', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();",
"err": {},
- "uuid": "50ae73f8-103c-4bc7-b58a-7e89e8d1e43c",
- "parentUUID": "d341e8bb-2294-44ed-bab1-2ef2d4a03497",
+ "uuid": "9deeb431-8f37-4dd3-b8ed-a74082f9daf0",
+ "parentUUID": "bd63eabf-792f-4abc-87a4-6822620579d1",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "50ae73f8-103c-4bc7-b58a-7e89e8d1e43c"
+ "9deeb431-8f37-4dd3-b8ed-a74082f9daf0"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 93,
+ "duration": 90,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3941,49 +3980,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": "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": "3d3f29bf-8464-445a-8a78-4174160c01d2",
+ "uuid": "3aca58c6-b2a0-4272-aa59-2ea3a9769902",
"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-apps-collectiontypes-test.js",
+ "file": "/test/v2.0-apps-collectiontypes-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 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": 92,
+ "duration": 68,
"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/apps/collectiontypes', { \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": "16ee98c4-dc0b-4d1c-a619-b4ea9e5efb13",
+ "parentUUID": "3aca58c6-b2a0-4272-aa59-2ea3a9769902",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "571c6216-7841-4ef5-9970-6b5fc6524276"
+ "16ee98c4-dc0b-4d1c-a619-b4ea9e5efb13"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 92,
+ "duration": 68,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -3999,49 +4038,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": "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": "e5900ac6-2bd5-45ea-98d8-ef3b60b2b3fe",
+ "uuid": "5c4ae7ab-c2fe-4d05-a2ea-f105d45b09d3",
"title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-contacts-{contactid}-test.js",
- "file": "/test/v2.0-data-contacts-{contactid}-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-pollen-test.js",
+ "file": "/test/v2.0-data-pollen-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
- "title": "should respond 200 for \"A Neotoma contacts object.\"",
- "fullTitle": "tests for /v2.0/data/contacts/{contactid} tests for get should respond 200 for \"A Neotoma contacts object.\"",
+ "title": "should respond 200 for \"A record of all pollen samples in time/space for a particular taxon.\"",
+ "fullTitle": "tests for /v2.0/data/pollen tests for get should respond 200 for \"A record of all pollen samples in time/space for a particular taxon.\"",
"timedOut": false,
- "duration": 72,
+ "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/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/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": "da7f8342-e2cc-4f7f-99cc-2e72dc07b748",
- "parentUUID": "e5900ac6-2bd5-45ea-98d8-ef3b60b2b3fe",
+ "uuid": "03fa2d3f-8354-4e7f-a3b3-92dd231f2a50",
+ "parentUUID": "5c4ae7ab-c2fe-4d05-a2ea-f105d45b09d3",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "da7f8342-e2cc-4f7f-99cc-2e72dc07b748"
+ "03fa2d3f-8354-4e7f-a3b3-92dd231f2a50"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 72,
+ "duration": 5,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -4057,49 +4096,203 @@
"_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": "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": "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": 105,
+ "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": "2b940b76-1189-41ad-a5ee-7a8ba0974760",
+ "parentUUID": "af300879-3a62-450c-9916-82689077cd27",
+ "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": 106,
+ "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": "7acf0946-698a-4b92-bee3-3ecc583a6921",
+ "parentUUID": "af300879-3a62-450c-9916-82689077cd27",
+ "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": 82,
+ "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": "78662fc5-cc5b-41af-a261-ef92269e417f",
+ "parentUUID": "af300879-3a62-450c-9916-82689077cd27",
+ "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": 100,
+ "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": "3dcc6024-5275-47b7-a57b-b765c9bbefa7",
+ "parentUUID": "af300879-3a62-450c-9916-82689077cd27",
+ "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": 5,
+ "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": "29a8df0b-faab-4c5c-9b5f-2337f580b654",
+ "parentUUID": "af300879-3a62-450c-9916-82689077cd27",
+ "isHook": false,
+ "skipped": false
+ },
+ {
+ "title": "Limits work:",
+ "fullTitle": "Get datasets any number of ways: Limits work:",
+ "timedOut": false,
+ "duration": 161,
+ "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": "0159e5db-2e13-483d-aec2-80bb9b436605",
+ "parentUUID": "af300879-3a62-450c-9916-82689077cd27",
+ "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": "aec7aa5b-4111-4004-8d43-10a3a73acf8f",
+ "parentUUID": "af300879-3a62-450c-9916-82689077cd27",
+ "isHook": false,
+ "skipped": false
+ }
+ ],
+ "suites": [],
+ "passes": [
+ "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": [
+ "aec7aa5b-4111-4004-8d43-10a3a73acf8f"
+ ],
+ "skipped": [],
+ "duration": 559,
+ "root": false,
+ "rootEmpty": false,
+ "_timeout": 50000
+ },
+ {
+ "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": "cc648f17-b69a-4941-adc3-a466c4220f33",
+ "uuid": "fe8ae6d1-1563-457e-af7a-2c39c4f1dfba",
"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-apps-collectionTypes-test.js",
+ "file": "/test/v1.5-apps-collectionTypes-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 \"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": 12196,
+ "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/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/apps/collectionTypes', { \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": "28fcfcf6-1a5b-40a0-bfa7-a33e51ec13bd",
+ "parentUUID": "fe8ae6d1-1563-457e-af7a-2c39c4f1dfba",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "0cf3fd2f-8508-452e-8dbe-821b51ee0424"
+ "28fcfcf6-1a5b-40a0-bfa7-a33e51ec13bd"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 12196,
+ "duration": 71,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -4115,49 +4308,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": "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": "ccbe9bc8-4bf1-4ae4-8612-3fb1416b14f8",
+ "uuid": "c54c3bdc-ed47-41b1-b50b-a1150c441593",
"title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-sites-test.js",
- "file": "/test/v2.0-data-sites-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-geopoliticalunits-test.js",
+ "file": "/test/v1.5-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 /v1.5/data/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"",
"timedOut": false,
- "duration": 731,
+ "duration": 98,
"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\":\"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/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": "e079c1af-ec07-444a-a043-72c9beef339f",
- "parentUUID": "ccbe9bc8-4bf1-4ae4-8612-3fb1416b14f8",
+ "uuid": "f07b0957-0f5d-44eb-b2cb-7e4986df263c",
+ "parentUUID": "c54c3bdc-ed47-41b1-b50b-a1150c441593",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "e079c1af-ec07-444a-a043-72c9beef339f"
+ "f07b0957-0f5d-44eb-b2cb-7e4986df263c"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 731,
+ "duration": 98,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -4173,49 +4366,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": "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": "1e356e37-c63e-4ec7-b2fc-f79e6cd054d3",
+ "uuid": "3a19fee6-0f7f-47cc-8268-be7a3895e6dd",
"title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-occurrences-{occurrenceid}-test.js",
- "file": "/test/v2.0-data-occurrences-{occurrenceid}-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-frozen-{datasetid}-test.js",
+ "file": "/test/v2.0-data-frozen-{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 \"Returned download object.\"",
+ "fullTitle": "tests for /v2.0/data/frozen/{datasetid} tests for get should respond 200 for \"Returned download object.\"",
"timedOut": false,
- "duration": 116,
+ "duration": 210,
"state": "passed",
"speed": "fast",
"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/data/frozen/500', { \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": "2a57d982-de41-4bab-a731-b50a3b2179bc",
+ "parentUUID": "3a19fee6-0f7f-47cc-8268-be7a3895e6dd",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "2d5dfbd8-ced8-48d4-ad55-1b4422476a79"
+ "2a57d982-de41-4bab-a731-b50a3b2179bc"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 116,
+ "duration": 210,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -4231,49 +4424,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": "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": "6523623e-be58-464f-abb7-287840d20928",
+ "uuid": "4276fbd5-da92-4f2a-a8d8-307d141f4af6",
"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-apps-taphonomysystems-test.js",
+ "file": "/test/v2.0-apps-taphonomysystems-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 \"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": 104,
+ "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/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/apps/taphonomysystems', { \n 'qs': {\"datasettypeid\":40},\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": "ef02c162-8af4-4e6b-8848-ed780c9bc852",
+ "parentUUID": "4276fbd5-da92-4f2a-a8d8-307d141f4af6",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "24687d7e-2426-42e9-b2e1-fe7a2833eb67"
+ "ef02c162-8af4-4e6b-8848-ed780c9bc852"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 104,
+ "duration": 70,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -4289,145 +4482,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": "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": "eb478fb7-7f87-4645-81cd-644611bf8286",
+ "uuid": "25d864d9-29cc-4211-ad5f-16825c2eb8f5",
"title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasetuploads-test.js",
- "file": "/test/v2.0-apps-constdb-datasetuploads-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-contacts-{contactid}-test.js",
+ "file": "/test/v1.5-data-contacts-{contactid}-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 /v1.5/data/contacts/{contactid} tests for get should respond 200 for \"Contact\"",
"timedOut": false,
- "duration": 72,
+ "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/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/v1.5/data/contacts/-45400452', { \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": "08f364ce-6d06-4dff-9171-de4e16ee9c5b",
+ "parentUUID": "25d864d9-29cc-4211-ad5f-16825c2eb8f5",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "a5b83735-5954-4443-b10f-de7d63786715"
+ "08f364ce-6d06-4dff-9171-de4e16ee9c5b"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 72,
+ "duration": 71,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -4443,374 +4540,317 @@
"_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": "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:",
- "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:",
+ "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?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/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": "b1efed38-166a-4396-aa8e-6bf7f5dc7da0",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "ed1d3937-79dc-420c-af9f-0e92ab056c13",
+ "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": "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": "fast",
+ "speed": "medium",
"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/?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": "230c640d-aaa4-4154-a1b0-3f9c0e9716a2",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "364508ed-49b9-4d13-8035-62c83e793f78",
+ "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": "Break sites by flipping altitudes:",
+ "fullTitle": "Get site data any number of ways: Break sites by flipping altitudes:",
"timedOut": false,
- "duration": 0,
+ "duration": 5,
"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/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": "c2e16189-3204-4bf1-a5c8-5b7cd38bb48f",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "88b4049d-7304-4d75-bbd4-10b8ba489317",
+ "parentUUID": "912c6a25-c480-44d2-80b0-5a2d9335ca26",
"isHook": false,
"skipped": false
},
{
- "title": "Break occurrences by flipping altitudes:",
- "fullTitle": "Get occurrence data any number of ways: Break occurrences by flipping altitudes:",
+ "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": "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/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": "4df233c8-3d40-41c5-bcfa-d1dfc71e410e",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "c0e1dea9-4480-4743-960f-a673984ae12a",
+ "parentUUID": "912c6a25-c480-44d2-80b0-5a2d9335ca26",
"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 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/occurrences/?ageyoung=5000&ageold=3000')\n .set('Accept', 'application/json')\n .expect(500);\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": "e71866d1-be34-404c-b877-28cbdc268d1d",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "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": "Occurrences filter by age:",
- "fullTitle": "Get occurrence data any number of ways: Occurrences filter by age:",
+ "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": 0,
+ "duration": 93,
"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/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": "35698b2b-efe6-4754-ad87-dbceeeaa1f6a",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "c03a0d40-a969-4bfb-8fc0-0a6257541e9e",
+ "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3",
"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 publication by comma sepatarated ids:",
+ "fullTitle": "Get publication data any number of ways: Get publication by comma sepatarated ids:",
"timedOut": false,
- "duration": 0,
+ "duration": 83,
"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/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": "5edf9e82-7f2e-4221-9645-57160fc7597b",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "418ea4bc-2290-42b7-8dc6-6d0ec0bab832",
+ "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3",
"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 publication by querying author:",
+ "fullTitle": "Get publication data any number of ways: Get publication by querying author:",
"timedOut": false,
- "duration": 0,
+ "duration": 200,
"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/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": "5477fa9e-7f16-454a-a597-6a0d701efa44",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "41a5b361-0b42-403a-9a50-7b3473b44647",
+ "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3",
"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 publications using pubs with missing links:",
+ "fullTitle": "Get publication data any number of ways: Get publications using pubs with missing links:",
"timedOut": false,
- "duration": 0,
+ "duration": 76,
"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/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": "fed5eeb9-b947-4c8f-86cc-b385224c0f60",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "74923098-1e85-4aed-b86f-5d7be33791ea",
+ "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3",
"isHook": false,
"skipped": false
},
{
- "title": "Get occurrences returns lower taxa:",
- "fullTitle": "Get occurrence data any number of ways: Get occurrences returns lower taxa:",
+ "title": "Get publication by site id:",
+ "fullTitle": "Get publication data any number of ways: Get publication by site id:",
"timedOut": false,
- "duration": 0,
+ "duration": 72,
"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/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": "82f45421-cb17-4986-b23b-3f51ea1fbd97",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "28064eca-1d0e-4bf1-8fca-70992479bdb7",
+ "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3",
"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": "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": 0,
+ "duration": 78,
"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/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": "78c338fd-080f-49c6-8596-2872f9bbfff9",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "decc292e-b8c2-4ac9-80e8-94e4b1e7a774",
+ "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3",
"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": "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": 0,
+ "duration": 81,
"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/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": "77944c35-e347-465e-ad88-aa85d2098f7f",
- "parentUUID": "a11a1880-23ce-49a1-805b-00fb631b1f26",
+ "uuid": "3e583e23-d059-4ee1-8a08-eedd49c8de08",
+ "parentUUID": "5fbaad44-fe82-421e-9d7c-42d995430ad3",
"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"
- ],
- "failures": [],
- "pending": [],
- "skipped": [],
- "duration": 1,
- "root": false,
- "rootEmpty": false,
- "_timeout": 30000
- },
- {
- "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",
- "beforeHooks": [],
- "afterHooks": [],
- "tests": [],
- "suites": [
- {
- "uuid": "d5b678a1-14ba-4659-9fda-1db826ec0e13",
- "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",
- "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\"",
- "timedOut": false,
- "duration": 74,
- "state": "passed",
- "speed": "fast",
- "pass": true,
- "fail": false,
- "pending": false,
- "context": null,
- "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets/95602233/taxa', { \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",
- "isHook": false,
- "skipped": false
- }
- ],
- "suites": [],
- "passes": [
- "b61ad6fc-e26f-4183-9bac-96627746dd97"
- ],
- "failures": [],
- "pending": [],
- "skipped": [],
- "duration": 74,
- "root": false,
- "rootEmpty": false,
- "_timeout": 900000
- }
+ "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"
],
- "passes": [],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 0,
+ "duration": 683,
"root": false,
"rootEmpty": false,
- "_timeout": 900000
+ "_timeout": 15000
},
{
- "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": "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": "2016697a-8133-4737-af6c-76ddea40419b",
+ "uuid": "d7f38d20-ea6d-4367-bc45-128623b12850",
"title": "tests for get",
- "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v1.5-data-occurrence-{occurrenceid}-test.js",
- "file": "/test/v1.5-data-occurrence-{occurrenceid}-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-apps-constdb-datasets-test.js",
+ "file": "/test/v2.0-apps-constdb-datasets-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 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": 79,
+ "duration": 228,
"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/v2.0/apps/constdb/datasets', { \n 'qs': {\"dbid\":20},\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": "cd3b2802-4d43-49b5-a892-00400f65811b",
+ "parentUUID": "d7f38d20-ea6d-4367-bc45-128623b12850",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "be6cb2b1-c07a-4ab9-befa-782789c40d20"
+ "cd3b2802-4d43-49b5-a892-00400f65811b"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 79,
+ "duration": 228,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -4826,280 +4866,221 @@
"_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": "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": "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": 74,
"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": "1b8756ef-8ea5-4af2-b4fd-795b423cc324",
+ "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b",
"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": 91,
"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": "b6d40c91-2d45-4d34-937f-2a87bf98d413",
+ "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b",
"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": 78,
"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": "6bb3755d-43a1-452e-a34e-7e3fa041e79d",
+ "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b",
"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": 82,
"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": "f846dfd6-6fc7-4ea1-bff1-74bbffc0de7a",
+ "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b",
"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": 70,
"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": "4a464c63-0afb-4a58-8011-0880eb06754b",
+ "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b",
"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": 73,
"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": "da3a5453-fcb6-4864-a60e-3213f1d3cf8f",
+ "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b",
"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": 74,
"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": "22c1f65d-edc8-4d04-9ee3-d30807f21e7b",
+ "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b",
+ "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": 71,
+ "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": "49f9eb41-1531-443c-bd66-e3a76f89d9a7",
+ "parentUUID": "eb2209e1-dd83-4755-adb6-d8e42c7ebb4b",
"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
- }
+ "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"
],
- "passes": [],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 0,
+ "duration": 613,
"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": "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": "d94f817a-c3da-4e1d-83a2-b8a95bb010a5",
+ "uuid": "0f507d14-96d1-46c5-9607-1b16ca41779d",
"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-depenvt-test.js",
+ "file": "/test/v2.0-apps-depenvt-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 \"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": 71,
+ "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/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/depenvt', { \n 'qs': {\"siteid\":4712,\"datasetid\":15304005,\"collectionunitid\":7254},\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": "d91ffd24-7141-47c5-aacd-3f0a12ecaf2c",
+ "parentUUID": "0f507d14-96d1-46c5-9607-1b16ca41779d",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "53ed165e-6035-4a33-a591-60c9dfdf062a"
+ "d91ffd24-7141-47c5-aacd-3f0a12ecaf2c"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 71,
+ "duration": 72,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -5115,49 +5096,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": "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": "4b936a76-0a7b-4f48-ab99-5198d7d3c447",
+ "uuid": "a5075bb9-af90-464e-af14-b7a108484076",
"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-dbtables-{table}-test.js",
+ "file": "/test/v2.0-data-dbtables-{table}-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 \"Returned table.\"",
+ "fullTitle": "tests for /v2.0/data/dbtables/{table} tests for get should respond 200 for \"Returned table.\"",
"timedOut": false,
- "duration": 3195,
+ "duration": 70,
"state": "passed",
- "speed": "slow",
+ "speed": "fast",
"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/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": "a9cd21ee-9b10-4cb1-8b1e-9fbdcd131c94",
- "parentUUID": "4b936a76-0a7b-4f48-ab99-5198d7d3c447",
+ "uuid": "caea75c0-de5b-4f1d-9e3b-ec3d08f8500a",
+ "parentUUID": "a5075bb9-af90-464e-af14-b7a108484076",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "a9cd21ee-9b10-4cb1-8b1e-9fbdcd131c94"
+ "caea75c0-de5b-4f1d-9e3b-ec3d08f8500a"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 3195,
+ "duration": 70,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -5173,49 +5154,49 @@
"_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",
+ "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": "6dd90bd5-0d42-4490-9173-66168cb7ff85",
+ "uuid": "1bf6ef34-7ea5-4150-8e85-8b0aaa81781e",
"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-data-datasets-db-test.js",
+ "file": "/test/v2.0-data-datasets-db-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 \"Datasets\"",
+ "fullTitle": "tests for /v2.0/data/datasets/db tests for get should respond 200 for \"Datasets\"",
"timedOut": false,
- "duration": 76,
+ "duration": 778,
"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/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/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": "2a0f4602-d332-4017-ba1c-f41e114af84a",
- "parentUUID": "6dd90bd5-0d42-4490-9173-66168cb7ff85",
+ "uuid": "acea7b7b-e876-49e8-939f-116453c87a5a",
+ "parentUUID": "1bf6ef34-7ea5-4150-8e85-8b0aaa81781e",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "2a0f4602-d332-4017-ba1c-f41e114af84a"
+ "acea7b7b-e876-49e8-939f-116453c87a5a"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 76,
+ "duration": 778,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -5231,49 +5212,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": "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": "71b7b8d5-e1e7-49e6-9d79-251ca456e2bd",
+ "uuid": "eb6ff818-da2a-4c38-b8d1-03c272b430c7",
"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-data-publications-{publicationid}-test.js",
+ "file": "/test/v2.0-data-publications-{publicationid}-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
- "title": "should respond 200 for \"An array of geopolitical units.\"",
- "fullTitle": "tests for /v2.0/data/sites/{siteid}/geopoliticalunits tests for get should respond 200 for \"An array of geopolitical units.\"",
+ "title": "should respond 200 for \"A list of publications.\"",
+ "fullTitle": "tests for /v2.0/data/publications/{publicationid} tests for get should respond 200 for \"A list of publications.\"",
"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/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/v2.0/data/publications/5728', { \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": "e6c46db7-3c3c-4134-8e83-1d967c90fee3",
+ "parentUUID": "eb6ff818-da2a-4c38-b8d1-03c272b430c7",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "d4c70c1e-91b9-418c-a5b2-132a7819ac20"
+ "e6c46db7-3c3c-4134-8e83-1d967c90fee3"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 71,
+ "duration": 75,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -5289,88 +5270,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": "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": "79bec42c-f89b-4e3e-8b59-48d55e3fa3c3",
+ "uuid": "3bd9e1dc-41ce-4c2e-a28c-2ac10ecf671d",
"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-summary-dstypemonth-test.js",
+ "file": "/test/v2.0-data-summary-dstypemonth-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 \"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": 76,
+ "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/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/summary/dstypemonth', { \n 'qs': {\"start\": 1,\"end\": 10},\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": "52328ac3-60d7-4004-a0d3-4b8f83f33014",
+ "parentUUID": "3bd9e1dc-41ce-4c2e-a28c-2ac10ecf671d",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "8eae134e-3e01-4a06-bf45-780631083039"
+ "52328ac3-60d7-4004-a0d3-4b8f83f33014"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 76,
+ "duration": 208,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -5386,261 +5328,107 @@
"_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": "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": "f5361504-7e0f-49e2-9231-ea7bceb024a6",
+ "uuid": "2d97c8a6-0563-4461-b91a-eaaf5e85dd1c",
"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-datasets-{datasetid}-lithology-test.js",
+ "file": "/test/v2.0-data-datasets-{datasetid}-lithology-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 \"Lithology\"",
+ "fullTitle": "tests for /v2.0/data/datasets/{datasetid}/lithology tests for get should respond 200 for \"Lithology\"",
"timedOut": false,
- "duration": 81,
+ "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/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/datasets/500/lithology', { \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": "85083a4b-70f2-44d0-883c-b323eb6dc06e",
+ "parentUUID": "2d97c8a6-0563-4461-b91a-eaaf5e85dd1c",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "2eff9a81-31ac-420b-b37a-f0afec107776"
+ "85083a4b-70f2-44d0-883c-b323eb6dc06e"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 81,
+ "duration": 75,
"root": false,
"rootEmpty": false,
- "_timeout": 900000
- }
- ],
- "passes": [],
- "failures": [],
- "pending": [],
- "skipped": [],
- "duration": 0,
- "root": false,
- "rootEmpty": false,
- "_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",
- "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": 110,
- "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": "17e05c9f-e433-442c-81f4-4a6cf8cba8b0",
- "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320",
- "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": 110,
- "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": "568f3da6-46b5-4ed7-903b-79debe5058e8",
- "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320",
- "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": 90,
- "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": "46dab848-619e-4a62-8af5-1ec3cbb5d2eb",
- "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320",
- "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": 97,
- "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": "09c7409a-85bc-4af2-ad8f-5ecea2c5cc10",
- "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320",
- "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": 4,
- "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": "5469495d-a8f4-4228-a8e4-6f97beeabab7",
- "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320",
- "isHook": false,
- "skipped": false
- },
- {
- "title": "Limits work:",
- "fullTitle": "Get datasets any number of ways: Limits work:",
- "timedOut": false,
- "duration": 515,
- "state": "passed",
- "speed": "medium",
- "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": "ae8ece47-35bd-4274-94d3-d0522daed2ab",
- "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320",
- "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": "bd89f4ae-2506-4563-97d2-91b7cf57d03b",
- "parentUUID": "2e5628ee-9fad-41a1-beeb-f9a0cee66320",
- "isHook": false,
- "skipped": false
+ "_timeout": 900000
}
],
- "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"
- ],
+ "passes": [],
"failures": [],
- "pending": [
- "bd89f4ae-2506-4563-97d2-91b7cf57d03b"
- ],
+ "pending": [],
"skipped": [],
- "duration": 926,
+ "duration": 0,
"root": false,
"rootEmpty": false,
- "_timeout": 50000
+ "_timeout": 900000
},
{
- "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": "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": "8c65cf9b-c3d7-49d1-9bc5-0755b9c8628d",
+ "uuid": "e212f281-a71e-46b5-9dc2-0d29765f2c4a",
"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-sites-{siteid}-contacts-test.js",
+ "file": "/test/v2.0-data-sites-{siteid}-contacts-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
- "title": "should respond 200 for \"A count of the 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 \"contact\"",
+ "fullTitle": "tests for /v2.0/data/sites/{siteid}/contacts tests for get should respond 200 for \"contact\"",
"timedOut": false,
- "duration": 190,
+ "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/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/sites/500/contacts', { \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": "0c225809-f31e-4694-9895-9484612f1469",
+ "parentUUID": "e212f281-a71e-46b5-9dc2-0d29765f2c4a",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "28349c36-22a7-4b4b-841e-f6d1a6c46aa5"
+ "0c225809-f31e-4694-9895-9484612f1469"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 190,
+ "duration": 73,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -5656,49 +5444,49 @@
"_timeout": 900000
},
{
- "uuid": "4e0ad04b-8661-47e5-85e5-1ecf5a7faa1e",
- "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": "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": "563f0e0e-58f2-4ab1-b5c8-32c981f121af",
+ "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-test.js",
- "file": "/test/v2.0-data-geopoliticalunits-test.js",
+ "fullFile": "/Users/sedv8808/HT-Data/UWisc/01_API/api_nodetest/test/v2.0-data-geopoliticalunits-{gpid}-test.js",
+ "file": "/test/v2.0-data-geopoliticalunits-{gpid}-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "should respond 200 for \"An array of geopolitical units.\"",
- "fullTitle": "tests for /v2.0/data/geopoliticalunits tests for get 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": 73,
+ "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/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/8983', { \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": "bf414129-c1d7-4957-acac-6ae9c4522cbc",
+ "parentUUID": "7ff6284e-421a-4264-a807-eaa8a406bc4a",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "931cdffb-c01e-45c8-9057-deb42dfac428"
+ "bf414129-c1d7-4957-acac-6ae9c4522cbc"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 73,
+ "duration": 72,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -5714,49 +5502,165 @@
"_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": "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": "01c097e5-2f7d-413f-906f-b1d7dfc9f732",
+ "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-{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-datasets_elc-{datasetid}-test.js",
+ "file": "/test/v2.0-data-datasets_elc-{datasetid}-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 \"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": 2395,
+ "state": "passed",
+ "speed": "slow",
+ "pass": true,
+ "fail": false,
+ "pending": false,
+ "context": null,
+ "code": "var response = request('get', 'http://localhost:3001/v2.0/data/datasets_elc/500', { \n 'time': true\n});\nexpect(response).to.have.status(200);\nreturn chakram.wait();",
+ "err": {},
+ "uuid": "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 \"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": 722,
+ "state": "passed",
+ "speed": "medium",
+ "pass": true,
+ "fail": false,
+ "pending": false,
+ "context": null,
+ "code": "var response = request('get', 'http://localhost:3001/v2.0/data/sites', { \n 'qs': {\"sitename\":\"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": "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 \"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": 69,
+ "duration": 341,
"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/geopoliticalunits/9953/sites', { \n 'qs': {\"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": "d820ab97-03a2-41fe-aa7d-f7b0382dc8be",
+ "parentUUID": "87981a3f-9351-4e6f-8bc8-31b8efd221c4",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "47b846a4-6f69-4564-821b-e033a8eab789"
+ "d820ab97-03a2-41fe-aa7d-f7b0382dc8be"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 69,
+ "duration": 341,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -5772,49 +5676,49 @@
"_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": "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": "700cbb6c-5d0d-41c3-ac40-b503b739cafd",
+ "uuid": "cf6dc437-33a0-4af8-9ee8-65c79b2a2cff",
"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/v1.5-data-geopoliticalunits-{gpid}-test.js",
+ "file": "/test/v1.5-data-geopoliticalunits-{gpid}-test.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
- "title": "should respond 200 for \"An array of site elements.\"",
- "fullTitle": "tests for /v1.5/data/sites/{siteid} tests for get should respond 200 for \"An array of site elements.\"",
+ "title": "should respond 200 for \"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": 73,
+ "duration": 72,
"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": "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": "98d63971-e19c-4785-be80-67d7b552ee5e",
- "parentUUID": "700cbb6c-5d0d-41c3-ac40-b503b739cafd",
+ "uuid": "27cb1fb7-c5e6-4813-8ea4-9ce484f5ade1",
+ "parentUUID": "cf6dc437-33a0-4af8-9ee8-65c79b2a2cff",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "98d63971-e19c-4785-be80-67d7b552ee5e"
+ "27cb1fb7-c5e6-4813-8ea4-9ce484f5ade1"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 73,
+ "duration": 72,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -5830,7 +5734,7 @@
"_timeout": 900000
},
{
- "uuid": "4e536344-4763-4c1f-9253-634b6ff5833f",
+ "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",
@@ -5839,7 +5743,7 @@
"tests": [],
"suites": [
{
- "uuid": "22682868-d17a-4393-8a10-e3b317c7469f",
+ "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",
@@ -5850,29 +5754,29 @@
"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": 96,
+ "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/51049927', { \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": "7094ac4e-3d8e-4cfb-9791-366949070696",
- "parentUUID": "22682868-d17a-4393-8a10-e3b317c7469f",
+ "uuid": "1331b2f4-363a-437a-a903-96b788610ae8",
+ "parentUUID": "d8479aef-c913-4ca5-86ff-9a9cd896f352",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
- "7094ac4e-3d8e-4cfb-9791-366949070696"
+ "1331b2f4-363a-437a-a903-96b788610ae8"
],
"failures": [],
"pending": [],
"skipped": [],
- "duration": 96,
+ "duration": 113,
"root": false,
"rootEmpty": false,
"_timeout": 900000
@@ -5886,6 +5790,102 @@
"root": false,
"rootEmpty": false,
"_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 7973f95..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/-43687448', {
+ 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 189aee3..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":4,"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 bfeba1b..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/7324', {
+ 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 1e85303..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":7},
+ '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 47a47f6..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":7},
+ '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 a3379d6..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":17},
+ 'qs': {"dbid":16},
'time': true
});
diff --git a/test/v2.0-apps-depenvt-test.js b/test/v2.0-apps-depenvt-test.js
index 7a89202..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":7138,"datasetid":98069349,"collectionunitid":52407},
+ '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 26367f4..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":18},
+ '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-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..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":16344,"familyname":"va","contactname":"CRiRvaalLDp","contactstatus":"defunct","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}-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..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/500', {
+ var response = request('get', 'http://localhost:3001/v2.0/data/contacts/1231', {
'time': true
});
diff --git a/test/v2.0-data-datasets-test.js b/test/v2.0-data-datasets-test.js
index 2b204fa..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":"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":"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 962c650..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":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":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 59b97dd..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":"Duis pariatur","count":false,"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 6668566..a4d72ab 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/veniam', {
+ '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..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/7248/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 e56b4ab..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/4146/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 9868f72..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/523', {
+ 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 6994ad7..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":"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":"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 d1e779a..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":"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":"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-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..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":16502,"datasetid":78894653,"siteid":36633,"familyname":"jBMy ","pubtype":"Undergraduate thesis","year":1584,"search":"adipisicing ad ut","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 501b621..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/6927', {
+ 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 42a2050..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":"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":"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}-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-spatial-faunal-test.js b/test/v2.0-data-spatial-faunal-test.js
index 1be23ba..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":"nulla cupidatat pariatur laboris aliquip","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 f2bd7ad..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":7703,"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 6e8af77..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":22014,"buffer":7113,"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 6599c1a..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":"in labore proident","taxagroup":"est esse dolore","ecolgroup":"dolor exercitation nostrud","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
});