]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/db/update/poi-inherited-postcode.feature
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / test / bdd / db / update / poi-inherited-postcode.feature
1 @DB
2 Feature: Update of POI-inherited poscode
3     Test updates of postcodes on street which was inherited from a related POI
4
5     Background: Street and house with postcode
6         Given the scene roads-with-pois
7         And the places
8          | osm | class | type  | housenr | postcode | street   | geometry |
9          | N1  | place | house | 1       | 12345    | North St |:p-S1 |
10         And the places
11          | osm | class   | type        | name     | geometry |
12          | W1  | highway | residential | North St | :w-north |
13         When importing
14         Then search_name contains
15          | object | nameaddress_vector |
16          | W1     | 12345 |
17
18     Scenario: POI-inherited postcode remains when way type is changed
19         When updating places
20          | osm | class   | type         | name     | geometry |
21          | W1  | highway | unclassified | North St | :w-north |
22         Then search_name contains
23          | object | nameaddress_vector |
24          | W1     | 12345 |
25
26     Scenario: POI-inherited postcode remains when way name is changed
27         When updating places
28          | osm | class   | type         | name     | geometry |
29          | W1  | highway | unclassified | South St | :w-north |
30         Then search_name contains
31          | object | nameaddress_vector |
32          | W1     | 12345 |
33
34     Scenario: POI-inherited postcode remains when way geometry is changed
35         When updating places
36          | osm | class   | type         | name     | geometry |
37          | W1  | highway | unclassified | South St | :w-south |
38         Then search_name contains
39          | object | nameaddress_vector |
40          | W1     | 12345 |
41
42     Scenario: POI-inherited postcode is added when POI postcode changes
43         When updating places
44          | osm | class | type  | housenr | postcode | street   | geometry |
45          | N1  | place | house | 1       | 54321    | North St |:p-S1 |
46         Then search_name contains
47          | object | nameaddress_vector |
48          | W1     | 54321 |
49
50     Scenario: POI-inherited postcode remains when POI geometry changes
51         When updating places
52          | osm | class | type  | housenr | postcode | street   | geometry |
53          | N1  | place | house | 1       | 12345    | North St |:p-S2 |
54         Then search_name contains
55          | object | nameaddress_vector |
56          | W1     | 12345 |
57