X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e62ae5b090661f7fa56cc68981457e5b4d4bd9ca..7486bd8c0db3f34f69125a26a1fd5d4ab36dc25a:/tests/features/api/regression.feature diff --git a/tests/features/api/regression.feature b/tests/features/api/regression.feature index f1887e1a..08156d62 100644 --- a/tests/features/api/regression.feature +++ b/tests/features/api/regression.feature @@ -1,19 +1,6 @@ Feature: API regression tests Tests error cases reported in tickets. - @poldi-only - Scenario Outline: github #36 - When sending json search query "" with address - Then result addresses contain - | ID | road | city - | 0 | Seegasse | Gemeinde Wieselburg-Land - - Examples: - | query - | Seegasse, Gemeinde Wieselburg-Land - | Seegasse, Wieselburg-Land - | Seegasse, Wieselburg - Scenario: trac #2430 When sending json search query "89 River Avenue, Hoddesdon, Hertfordshire, EN11 0JT" Then at least 1 result is returned @@ -121,13 +108,13 @@ Feature: API regression tests | 0 | Philippstraße | Düren Scenario: trac #2830 - When sending json search query "528, Merkley Drive, K4A 1N5,CA" with address + When sending json search query "207, Boardman Street, S0J 1L0, CA" with address Then result addresses contain - | ID | house_number | road | postcode | country - | 0 | 528 | Merkley Drive | K4A 1N5 | Canada + | ID | house_number | road | postcode | country + | 0 | 207 | Boardman Street | S0J 1L0 | Canada Scenario: trac #2830 - When sending json search query "K4A 1N5,CA" + When sending json search query "S0J 1L0,CA" Then results contain | ID | class | type | display_name | 0 | place | postcode | .*, Canada @@ -147,17 +134,8 @@ Feature: API regression tests Scenario: trac #2871 When looking up coordinates -33.906895553,150.99609375 Then result addresses contain - | ID | city | postcode | country - | 0 | [^0-9]* | 2197 | Australia - - Scenario: trac #2974 - When sending json search query "Azadi Square, Faruj" with address - Then result addresses contain - | ID | road | city - | 0 | ميدان آزادي | فاروج - And results contain - | ID | latlon - | 0 | 37.2323,58.2193 +-1km + | ID | city | country + | 0 | [^0-9]*$ | Australia Scenario: trac #2981 When sending json search query "Ohmstraße 7, Berlin" with address @@ -178,9 +156,62 @@ Feature: API regression tests | ID | class | latlon | 0 | highway | 51.8324206,1.2447352 +-100m + Scenario Outline: trac #5025 + When sending json search query "Kriegsstr , Karlsruhe" with address + Then result addresses contain + | house_number | road + | | Kriegsstraße + + Examples: + | house_nr + | 5c + | 25 + | 78 + | 80 + | 99 + | 130 + | 153 + | 196 + | 256 + | 294 + Scenario: trac #5238 Given the request parameters | bounded | viewbox - | 1 | 0,0,-1,-1 + | 1 | -1,0,0,-1 When sending json search query "sy" Then exactly 0 results are returned + + Scenario: trac #5274 + When sending json search query "Goedestraat 41-BS, Utrecht" with address + Then result addresses contain + | house_number | road | city + | 41-BS | Goedestraat | Utrecht + + @poldi-only + Scenario Outline: github #36 + When sending json search query "" with address + Then result addresses contain + | ID | road | city + | 0 | Seegasse | .*Wieselburg-Land + + Examples: + | query + | Seegasse, Gemeinde Wieselburg-Land + | Seegasse, Wieselburg-Land + | Seegasse, Wieselburg + + Scenario: github #190 + When looking up place N257363453 + Then the results contain + | osm_type | osm_id | latlon + | node | 257363453 | 35.8404121,128.5586643 +-100m + + Scenario: trac #5427 + Given the request parameters + | countrycodes | + | DE | + When sending json search query "12345" with address + Then result addresses contain + | country_code | + | de |