]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/osm2pgsql/update/simple.feature
allow nginx to serve files without php extensions
[nominatim.git] / test / bdd / osm2pgsql / update / simple.feature
1 @DB
2 Feature: Update of simple objects by osm2pgsql
3     Testing basic update functions of osm2pgsql.
4
5     Scenario: Import object with two main tags
6         When loading osm data
7           """
8           n1 Ttourism=hotel,amenity=restaurant,name=foo
9           n2 Tplace=locality,name=spotty
10           """
11         Then place contains
12           | object     | type       | name+name |
13           | N1:tourism | hotel      | foo |
14           | N1:amenity | restaurant | foo |
15           | N2:place   | locality   | spotty |
16         When updating osm data
17           """
18           n1 dV Ttourism=hotel,name=foo
19           n2 dD
20           """
21         Then place has no entry for N1:amenity
22         And place has no entry for N2
23         And place contains
24           | object     | class   | type       | name |
25           | N1:tourism | tourism | hotel      | 'name' : 'foo' |
26