]> git.openstreetmap.org Git - nominatim.git/commitdiff
adapt API tests to latest data
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 21 Jan 2015 23:06:44 +0000 (00:06 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 21 Jan 2015 23:06:44 +0000 (00:06 +0100)
tests/features/api/regression.feature
tests/features/api/search.feature
tests/features/api/search_order.feature
tests/features/api/search_params.feature

index fcc11dd2abc9e5ed9b0a3ff3c899e2b5da6e6578..f5a94d30daa6ee085229c93da08ef2846814b8ef 100644 (file)
@@ -6,7 +6,7 @@ Feature: API regression tests
         When sending json search query "<query>" with address
         Then result addresses contain
          | ID | road     | city
-         | 0  | Seegasse | Gemeinde Wieselburg-Land
+         | 0  | Seegasse | Wieselburg-Land
 
     Examples:
          | query
index 9b861a7bb5be61e1731e6e4c258fc96852ca2e37..a98468010ba30e0147d2ea63fa3eb0c1dc4cc240 100644 (file)
@@ -16,12 +16,12 @@ Feature: Search queries
     Scenario: House number search for non-street address
         Given the request parameters
           | accept-language
-          | en        
-        When sending json search query "4 Pomocnia, Poland" with address
+          | en
+        When sending json search query "4 Pomocnia, Pokrzywnica, Poland" with address
         Then address of result 0 is
           | type         | value
           | house_number | 4
-          | suburb       | Pomocnia
+          | city         | Pomocnia
           | county       | gmina Pokrzywnica
           | state        | Masovian Voivodeship
           | postcode     | 06-121
index 11db163fae84dac4b79dddca2d3bfd55e2206b2f..fad5e89cd2425ab994c57862920d33e1e68b94b2 100644 (file)
@@ -2,6 +2,9 @@ Feature: Result order for Geocoding
     Testing that importance ordering returns sensible results
 
     Scenario Outline: city order in street search
+        Given the request parameters
+          | limit
+          | 100
         When sending json search query "<street>, <city>" with address
         Then address of result 0 contains
          | type   | value
index 5733af417bc97d20b8b74c92a7a9049610f5be11..8a49c20d0a24a58b312244543ca21426b8ec178a 100644 (file)
@@ -31,6 +31,7 @@ Feature: Search queries
           | type         | value
           | city         | Inuvik
           | state        | Northwest Territories
+          | postcode     | X0E 0T0
           | country      | Canada
           | country_code | ca