X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/36fa21d7ce88a71cb6ac723b741b9fb5085f1993..3e64019afe8419ea5b35a3fbd1e6c9dabfc8d983:/test/bdd/osm2pgsql/update/simple.feature diff --git a/test/bdd/osm2pgsql/update/simple.feature b/test/bdd/osm2pgsql/update/simple.feature index e8d96d44..072f83fa 100644 --- a/test/bdd/osm2pgsql/update/simple.feature +++ b/test/bdd/osm2pgsql/update/simple.feature @@ -24,3 +24,38 @@ Feature: Update of simple objects by osm2pgsql | object | class | type | name | | N1:tourism | tourism | hotel | 'name' : 'foo' | + Scenario: Downgrading a highway to one that is dropped without name + When loading osm data + """ + n100 x0 y0 + n101 x0.0001 y0.0001 + w1 Thighway=residential Nn100,n101 + """ + Then place contains + | object | + | W1:highway | + When updating osm data + """ + w1 Thighway=service Nn100,n101 + """ + Then place has no entry for W1 + + Scenario: Downgrading a highway when a second tag is present + When loading osm data + """ + n100 x0 y0 + n101 x0.0001 y0.0001 + w1 Thighway=residential,tourism=hotel Nn100,n101 + """ + Then place contains + | object | + | W1:highway | + | W1:tourism | + When updating osm data + """ + w1 Thighway=service,tourism=hotel Nn100,n101 + """ + Then place has no entry for W1:highway + And place contains + | object | + | W1:tourism |