X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5c8fbe8186ea0fa06b7c96f08e8afba1744492c1..11ced26025fc5db0b5085b9b5abb012266ea2aef:/test/bdd/osm2pgsql/update/simple.feature?ds=inline diff --git a/test/bdd/osm2pgsql/update/simple.feature b/test/bdd/osm2pgsql/update/simple.feature index e8d96d44..5a86917c 100644 --- a/test/bdd/osm2pgsql/update/simple.feature +++ b/test/bdd/osm2pgsql/update/simple.feature @@ -2,25 +2,48 @@ Feature: Update of simple objects by osm2pgsql Testing basic update functions of osm2pgsql. - Scenario: Import object with two main tags + Scenario: Adding a new object When loading osm data """ - n1 Ttourism=hotel,amenity=restaurant,name=foo - n2 Tplace=locality,name=spotty + n1 Tplace=town,name=Middletown """ - Then place contains - | object | type | name+name | - | N1:tourism | hotel | foo | - | N1:amenity | restaurant | foo | - | N2:place | locality | spotty | - When updating osm data + Then place contains exactly + | object | type | name+name | + | N1:place | town | Middletown | + + When updating osm data + """ + n2 Tamenity=hotel,name=Posthotel + """ + Then place contains exactly + | object | type | name+name | + | N1:place | town | Middletown | + | N2:amenity | hotel | Posthotel | + And placex contains exactly + | object | type | name+name | indexed_status | + | N1:place | town | Middletown | 0 | + | N2:amenity | hotel | Posthotel | 1 | + + + Scenario: Deleting an existing object + When loading osm data """ - n1 dV Ttourism=hotel,name=foo - n2 dD + n1 Tplace=town,name=Middletown + n2 Tamenity=hotel,name=Posthotel """ - Then place has no entry for N1:amenity - And place has no entry for N2 - And place contains - | object | class | type | name | - | N1:tourism | tourism | hotel | 'name' : 'foo' | + Then place contains exactly + | object | type | name+name | + | N1:place | town | Middletown | + | N2:amenity | hotel | Posthotel | + When updating osm data + """ + n2 dD + """ + Then place contains exactly + | object | type | name+name | + | N1:place | town | Middletown | + And placex contains exactly + | object | type | name+name | indexed_status | + | N1:place | town | Middletown | 0 | + | N2:amenity | hotel | Posthotel | 100 |