]> git.openstreetmap.org Git - nominatim.git/commitdiff
adapt BDD tests to stricter partial search
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 26 Oct 2021 10:07:13 +0000 (12:07 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 26 Oct 2021 13:52:57 +0000 (15:52 +0200)
test/bdd/api/search/params.feature
test/bdd/api/search/queries.feature

index 9c4d1f10b3cd2ae639c2715439b0c6430bc3c610..b3df7d1952b1ca4a90d383ce6db5361f695b7363 100644 (file)
@@ -169,9 +169,9 @@ Feature: Search queries
         Then at most 50 results are returned
 
     Scenario: Limit number of search results
-        When sending json search query "schloss"
+        When sending json search query "landstr"
         Then more than 4 results are returned
-        When sending json search query "schloss"
+        When sending json search query "landstr"
           | limit |
           | 4 |
         Then exactly 4 results are returned
@@ -227,7 +227,7 @@ Feature: Search queries
           | place | village |
 
     Scenario Outline: Search with polygon threshold (json)
-        When sending json search query "switzerland"
+        When sending json search query "triesenberg"
           | polygon_geojson | polygon_threshold |
           | 1               | <th> |
         Then at least 1 result is returned
@@ -241,7 +241,7 @@ Feature: Search queries
         | 999 |
 
     Scenario Outline: Search with polygon threshold (xml)
-        When sending xml search query "switzerland"
+        When sending xml search query "triesenberg"
           | polygon_geojson | polygon_threshold |
           | 1               | <th> |
         Then at least 1 result is returned
@@ -255,7 +255,7 @@ Feature: Search queries
         | 999 |
 
     Scenario Outline: Search with invalid polygon threshold (xml)
-        When sending xml search query "switzerland"
+        When sending xml search query "triesenberg"
           | polygon_geojson | polygon_threshold |
           | 1               | <th> |
         Then a HTTP 400 is returned
@@ -355,11 +355,11 @@ Feature: Search queries
         | geokml             |
 
     Scenario: Search along a route
-        When sending json search query "schloss" with address
+        When sending json search query "rathaus" with address
         Then result addresses contain
           | ID | town |
-          | 0  | Vaduz |
-        When sending json search query "schloss" with address
+          | 0  | Schaan |
+        When sending json search query "rathaus" with address
           | bounded | routewidth | route                              |
           | 1       | 0.1        |  9.54353,47.11772,9.54314,47.11894 |
         Then result addresses contain
index 6d697ef96fe7ea3a3cded93f086d8e4f96ab1174..8b70dac188ad968e36a9f2d80c3fb21021064b0b 100644 (file)
@@ -66,7 +66,7 @@ Feature: Search queries
          | way      | ^697,.* |
 
     Scenario: Search with class-type feature
-        When sending jsonv2 search query "Hotel in California"
+        When sending jsonv2 search query "bars in ebenholz"
         Then results contain
           | place_rank |
           | 30 |