HAPI server verifier. See verifier-nodejs for source code for tests.
In the following, {id,dataset}
means id
or dataset
allowed;
{time.min,start}
means time.min
or start
allowed;
{time.max,start}
means time.max
or start
allowed
?url=URL
?url=URL&{id,dataset}=ID
?url=URL&id={id,dataset}¶meter=PARAMETER
(note parameter
is not plural - only a single parameter may be specified)
?url=URL&id={id,dataset}¶meter=PARAMETER&{time.min,start}=HAPIDATETIME&{time.max,start}=HAPIDATETIME
where HAPIDATETIME
is decribed in the HAPI specification.
?url=URL&...&metatimeout=MILLISECONDS
See below for additional details.
?url=URL&...&datatimeout=MILLISECONDS
See below for additional details.
?url=URL&...&version=VERSION
Allowed values are 2.0
, 2.1
, 3.0
, and 3.1
.
?url=URL&...&output=OUTPUT
Allowed values are html
and json
.
If id
or dataset
starts with a ^
, it is interpreted as a regular expression and only datasets with ids that match will be tested.
Only a URL
that ends in /hapi
is required. Only one ID
and one PARAMETER
may be specified (a comma-separated list is not supported).
When only a URL
is provided, all datasets and all parameters are checked. For data requests, start=sampleStartDate
and stop=sampleStopDate
are used if both are given in a dataset's /info
response; otherwise start=startDate
and stop=startDate+P1D
from the /info
response are used.
The parameters metatimeout
and datatimeout
set the amount of time in milliseconds before a warning about response time is given. metatimeout
applies to all non-/data
requests. The defaults are described and given in the function timeout
in tests.js.
dataset1
only: ?url=http://hapi-server.org/servers/TestData2.0/hapi&id=dataset1
scalar
in dataset1
: ?url=http://hapi-server.org/servers/TestData2.0/hapi&id=dataset1¶meter=scalar
scalar
in dataset1
and use a given timerange for data requests: ?url=http://hapi-server.org/servers/TestData2.0/hapi&id=dataset1¶meter=scalar&time.min=1970-01-01&time.max=1970-01-01T00:00:10
The following URLs are tested when the verifier is updated.