2 Feature: Update of simple objects by osm2pgsql
3 Testing basic update functions of osm2pgsql.
5 Scenario: Adding a new object
8 n1 Tplace=town,name=Middletown
10 Then place contains exactly
11 | object | type | name+name |
12 | N1:place | town | Middletown |
14 When updating osm data
16 n2 Tamenity=hotel,name=Posthotel
18 Then place contains exactly
19 | object | type | name+name |
20 | N1:place | town | Middletown |
21 | N2:amenity | hotel | Posthotel |
22 And placex contains exactly
23 | object | type | name+name | indexed_status |
24 | N1:place | town | Middletown | 0 |
25 | N2:amenity | hotel | Posthotel | 1 |
28 Scenario: Deleting an existing object
31 n1 Tplace=town,name=Middletown
32 n2 Tamenity=hotel,name=Posthotel
34 Then place contains exactly
35 | object | type | name+name |
36 | N1:place | town | Middletown |
37 | N2:amenity | hotel | Posthotel |
39 When updating osm data
43 Then place contains exactly
44 | object | type | name+name |
45 | N1:place | town | Middletown |
46 And placex contains exactly
47 | object | type | name+name | indexed_status |
48 | N1:place | town | Middletown | 0 |
49 | N2:amenity | hotel | Posthotel | 100 |