X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/635ce30db5a5086a5881fdc766f0dc450677bf62..6e908fb81c5a1d66e80d71c7b4676cacb1d8e801:/test/bdd/api/reverse/simple.feature diff --git a/test/bdd/api/reverse/simple.feature b/test/bdd/api/reverse/simple.feature index b14d9e86..4da311e7 100644 --- a/test/bdd/api/reverse/simple.feature +++ b/test/bdd/api/reverse/simple.feature @@ -11,8 +11,8 @@ Feature: Simple Reverse Tests Then the result is valid json When sending jsonv2 reverse coordinates , Then the result is valid json - When sending html reverse coordinates , - Then the result is valid html + When sending geojson reverse coordinates , + Then the result is valid geojson Examples: | lat | lon | @@ -26,10 +26,6 @@ Feature: Simple Reverse Tests | param | value | | | | Then the result is valid xml - When sending html reverse coordinates 53.603,10.041 - | param | value | - | | | - Then the result is valid html When sending xml reverse coordinates 53.603,10.041 | param | value | | | | @@ -42,11 +38,17 @@ Feature: Simple Reverse Tests | param | value | | | | Then the result is valid json + When sending geojson reverse coordinates 53.603,10.041 + | param | value | + | | | + Then the result is valid geojson + When sending geocodejson reverse coordinates 53.603,10.041 + | param | value | + | | | + Then the result is valid geocodejson Examples: | parameter | value | - | polygon | 1 | - | polygon | 0 | | polygon_text | 1 | | polygon_text | 0 | | polygon_kml | 1 | @@ -60,28 +62,29 @@ Feature: Simple Reverse Tests When sending reverse coordinates 67.3245,0.456 | json_callback | | foo | - Then the result is valid json + Then the result is valid Examples: - | format | - | json | - | jsonv2 | + | format | outformat | + | json | json | + | jsonv2 | json | + | geojson | geojson | - Scenario Outline: Reverse-geocoding without address - When sending reverse coordinates 53.603,10.041 - | addressdetails | - | 0 | - Then exactly 1 result is returned + Scenario Outline: Boundingbox is returned + When sending reverse coordinates 47.11,9.57 + | zoom | + | 8 | + Then result has bounding box in 47,48,9,10 Examples: | format | | json | | jsonv2 | - | html | + | geojson | | xml | Scenario Outline: Reverse-geocoding with zoom - When sending reverse coordinates 53.603,10.041 + When sending reverse coordinates 47.11,9.57 | zoom | | 10 | Then exactly 1 result is returned @@ -90,7 +93,7 @@ Feature: Simple Reverse Tests | format | | json | | jsonv2 | - | html | + | geojson | | xml | Scenario: Missing lon parameter @@ -128,3 +131,7 @@ Feature: Simple Reverse Tests | 48.966 | 8.448.2 | | Nan | 8.448 | | 48.966 | Nan | + + Scenario: Reverse Debug output returns no errors + When sending debug reverse coordinates 47.11,9.57 + Then a HTTP 200 is returned