Purpose:
For each dataset available the OpenSearch description must contain a "Query" element" element that has a "role" attribute with the value "example" and "spatial_dataset_identifier_code" and "spatial_dataset_identifier_namespace" attributes together containing unique spatial dataset identifier. The value of the "crs" and "language" attributes must be set to the values considered as the default ones by the service provider.
Test method
- test if there is at least one "Query" element
For each "Query" element:
- create a Describe Spatial Dataset url with the values of the provided inspire_dls:spatial_dataset_identifier_code and inspire_dls:spatial_dataset_identifier_namespace from the "Query" element
- resolve that Describe Spatial Dataset url
- test if the response is an Atom feed containing at least one category CRS
- For each category CRS, create a Get Spatial Dataset url with the CRS, the provided inspire_dls:spatial_dataset_identifier_code and inspire_dls:spatial_dataset_identifier_namespace
- resolve the Get Spatial Dataset url
- check the HTTP response code to be a valid code from: 200,206,301,303,303
Reference(s):
- IR NS, M1, section 3 (3.1-3.2.1), 4 (4.1-4.2.1)
- TG DL, Req 44
- OpenSearch
Test type:
Automated
Notes
[1] Are the "crs" and "language" attributes mandatory? This is not clear from the requirement, but would make sense and is assumed to be so.
The namespace prefixes used as described in README.md.