]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/db/query/search_simple.feature
417df769857d9f947e8e713ecee1a2a363a93518
[nominatim.git] / test / bdd / db / query / search_simple.feature
1 @DB
2 Feature: Searching of simple objects
3     Testing simple stuff
4
5     Scenario: Search for place node
6         Given the places
7           | osm | class | type    | name+name | geometry   |
8           | N1  | place | village | Foo       | 10.0 -10.0 |
9         When importing
10         And searching for "Foo"
11         Then results contain
12          | ID | osm | class | type    | centroid |
13          | 0  | N1  | place | village | 10 -10   |
14
15      Scenario: Updating postcode in postcode boundaries without ref
16         Given the places
17           | osm | class    | type        | postcode | geometry |
18           | R1  | boundary | postal_code | 12345    | poly-area:1.0 |
19         When importing
20         And searching for "12345"
21         Then results contain
22          | ID | osm_type | osm_id |
23          | 0  | R        | 1 |
24         When updating places
25           | osm | class    | type        | postcode | geometry |
26           | R1  | boundary | postal_code | 54321    | poly-area:1.0 |
27         And searching for "12345"
28         Then exactly 0 results are returned
29         When searching for "54321"
30         Then results contain
31          | ID | osm_type | osm_id |
32          | 0  | R        | 1 |