mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
finish search API tests
This commit is contained in:
@@ -56,3 +56,12 @@ Feature: Search queries
|
||||
Then results contain
|
||||
| place_rank |
|
||||
| 30 |
|
||||
|
||||
# https://trac.openstreetmap.org/ticket/5094
|
||||
Scenario: housenumbers are ordered by complete match first
|
||||
When sending json search query "6395 geminis, montevideo" with address
|
||||
Then result addresses contain
|
||||
| ID | house_number |
|
||||
| 0 | 6395 |
|
||||
| 1 | 6395 BIS |
|
||||
|
||||
|
||||
38
test/bdd/api/search/structured.feature
Normal file
38
test/bdd/api/search/structured.feature
Normal file
@@ -0,0 +1,38 @@
|
||||
@APIDB
|
||||
Feature: Structured search queries
|
||||
Testing correctness of results with
|
||||
structured queries
|
||||
|
||||
Scenario: Country only
|
||||
When sending json search query "" with address
|
||||
| country |
|
||||
| Liechtenstein |
|
||||
Then address of result 0 is
|
||||
| type | value |
|
||||
| country | Liechtenstein |
|
||||
| country_code | li |
|
||||
|
||||
Scenario: Postcode only
|
||||
When sending json search query "" with address
|
||||
| postalcode |
|
||||
| 22547 |
|
||||
Then results contain
|
||||
| type |
|
||||
| postcode |
|
||||
And result addresses contain
|
||||
| postcode |
|
||||
| 22547 |
|
||||
|
||||
Scenario: Street, postcode and country
|
||||
When sending xml search query "" with address
|
||||
| street | postalcode | country |
|
||||
| Old Palace Road | GU2 7UP | United Kingdom |
|
||||
Then result header contains
|
||||
| attr | value |
|
||||
| querystring | Old Palace Road, GU2 7UP, United Kingdom |
|
||||
|
||||
Scenario: gihub #176
|
||||
When sending json search query "" with address
|
||||
| city |
|
||||
| Mercedes |
|
||||
Then at least 1 result is returned
|
||||
Reference in New Issue
Block a user