X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3cdfe066336ad19772d300a85d6c1feaadc074ea..2bd6c761b0e573189a03e8819c6db715eb711eb1:/test/bdd/api/reverse/params.feature diff --git a/test/bdd/api/reverse/params.feature b/test/bdd/api/reverse/params.feature index 374272d0..d6ef3794 100644 --- a/test/bdd/api/reverse/params.feature +++ b/test/bdd/api/reverse/params.feature @@ -25,6 +25,39 @@ Feature: Parameters for Reverse API | -45.3,; | | gkjd,50 | + Scenario Outline: Zoom levels between 4 and 18 are allowed + When sending reverse coordinates 47.14122383,9.52169581334 + | zoom | + | | + Then exactly 1 result is returned + And result addresses contain + | country_code | + | li | + + Examples: + | zoom | + | 4 | + | 5 | + | 6 | + | 7 | + | 8 | + | 9 | + | 10 | + | 11 | + | 12 | + | 13 | + | 14 | + | 15 | + | 16 | + | 17 | + | 18 | + + Scenario: Non-numerical zoom levels return an error + When sending reverse coordinates 47.14122383,9.52169581334 + | zoom | + | adfe | + Then a HTTP 400 is returned + Scenario Outline: Reverse Geocoding with extratags When sending reverse coordinates 47.1395013150811,9.522098077031046 | extratags |