mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-18 18:41:51 +03:00
86d90bc460
These are the tests that were formerly located at https://github.com/lonvia/test-nominatim
42 lines
1.2 KiB
Gherkin
42 lines
1.2 KiB
Gherkin
Feature: Structured search queries
|
|
Testing correctness of results with
|
|
structured queries
|
|
|
|
Scenario: Country only
|
|
When sending json structured query with address
|
|
| country
|
|
| Canada
|
|
Then address of result 0 is
|
|
| type | value
|
|
| country | Canada
|
|
| country_code | ca
|
|
|
|
Scenario: Postcode only
|
|
When sending json structured query with address
|
|
| postalcode
|
|
| 22547
|
|
Then at least 1 result is returned
|
|
And results contain
|
|
| type
|
|
| post(al_)?code
|
|
And result addresses contain
|
|
| postcode
|
|
| 22547
|
|
|
|
|
|
Scenario: Street, postcode and country
|
|
When sending xml structured query with address
|
|
| street | postalcode | country
|
|
| Old Palace Road | GU2 7UP | United Kingdom
|
|
Then at least 1 result is returned
|
|
Then result header contains
|
|
| attr | value
|
|
| querystring | Old Palace Road, GU2 7UP, United Kingdom
|
|
|
|
|
|
Scenario: gihub #176
|
|
When sending json structured query with address
|
|
| city
|
|
| Washington
|
|
Then at least 1 result is returned
|