X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5d656891ba072d88b8b281d239d0dce9f7bd6a1c..5a9fb6eaf73ebfc5a82e553744328ade60b50f8a:/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 |