X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/65500927c2955860d392f76fa9b2c318ccd716d2..fb012504b2a4fbeb82461f3fa59b383bf43f8521:/test/bdd/api/lookup/simple.feature diff --git a/test/bdd/api/lookup/simple.feature b/test/bdd/api/lookup/simple.feature index 5ec185c5..53b222a0 100644 --- a/test/bdd/api/lookup/simple.feature +++ b/test/bdd/api/lookup/simple.feature @@ -1,17 +1,33 @@ @APIDB Feature: Places by osm_type and osm_id Tests - Simple tests for internal server errors and response format. + Simple tests for response format. Scenario Outline: address lookup for existing node, way, relation When sending lookup query for N3284625766,W6065798,,R123924,X99,N0 - Then the result is valid + Then the result is valid And exactly 3 results are returned Examples: - | format | - | xml | - | json | + | format | outformat | + | xml | xml | + | json | json | + | jsonv2 | json | + | geojson | geojson | + | geocodejson | geocodejson | Scenario: address lookup for non-existing or invalid node, way, relation When sending xml lookup query for X99,,N0,nN158845944,ABC,,W9 Then exactly 0 results are returned + + Scenario Outline: Boundingbox is returned + When sending lookup query for N3284625766,W6065798 + Then exactly 2 results are returned + And result 0 has bounding box in -32.812,-32.811,-56.509,-56.508 + And result 1 has bounding box in 47.14,47.15,9.51,9.53 + + Examples: + | format | + | json | + | jsonv2 | + | geojson | + | xml |