Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #138 #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private Set<String> extractCollectionIDs(URI rootUri) {
* Abstract Test 66 : Validate that an error is returned by a Cube query if no query parameters are specified.
* Abstract Test 82 : Validate that an error is returned by a Trajectory query if no query parameters are specified.
* Abstract Test 100 : Validate that an error is returned by a Corridor query if no query parameters are specified.
* Abstract Test 136 : Validate that an error is returned by a Locations query if no query parameters are specified.
* Abstract Test 136 : Validate that a GeoJSON document was returned with a status code 200 containing at least a list of features one for each location supported by the collection.
*
* @param collectionIdentifiers collection identifiers
*/
Expand Down Expand Up @@ -141,10 +141,12 @@ public void validateNoQueryParameters(Object collectionIdentifiers) {
+ collectionId);
}
if (supportsLocationsQuery) {

//https://github.com/opengeospatial/ets-ogcapi-edr10/issues/138
//test expects HTTP 200 for location query with no parameters
//see https://docs.ogc.org/is/19-086r4/19-086r4.html, Abstract Test 136
response = getCollectionResponse(collectionId + "/locations");
assertTrue(response.getStatusCode() == 400,
"Fails Abstract Test 136. Expected status code 400 when a Locations query with no query parameters are specified for collection "
assertTrue(response.getStatusCode() == 200,
"Fails Abstract Test 136. Expected status code 200 when a Locations query with no query parameters are specified for collection "
+ collectionId);
}

Expand Down