X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/86d90bc46005c00f2367ad759804f528adc4c6a5..5c187e131a372d0cbdbba3372668862e3f1c47f9:/tests/features/db/update/simple.feature diff --git a/tests/features/db/update/simple.feature b/tests/features/db/update/simple.feature index 4493bffb..517e7bde 100644 --- a/tests/features/db/update/simple.feature +++ b/tests/features/db/update/simple.feature @@ -2,20 +2,6 @@ Feature: Update of simple objects Testing simple stuff - Scenario: Remove name from a landuse object - Given the place nodes - | osm_id | class | type | name - | 1 | landuse | wood | 'name' : 'Foo' - When importing - Then table placex contains - | object | class | type | name - | N1 | landuse| wood | 'name' : 'Foo' - When updating place nodes - | osm_id | class | type - | 1 | landuse | wood - Then table placex has no entry for N1 - - Scenario: Do delete small boundary features Given the place areas | osm_type | osm_id | class | type | admin_level | geometry @@ -53,3 +39,35 @@ Feature: Update of simple objects When marking for delete R1,W1 Then table placex has no entry for W1 Then table placex has no entry for R1 + + + Scenario: type mutation + Given the place nodes + | osm_id | class | type | geometry + | 3 | shop | toys | 1 -1 + When importing + Then table placex contains + | object | class | type + | N3 | shop | toys + When updating place nodes + | osm_id | class | type | geometry + | 3 | shop | grocery | 1 -1 + Then table placex contains + | object | class | type + | N3 | shop | grocery + + + Scenario: remove postcode place when house number is added + Given the place nodes + | osm_id | class | type | postcode | geometry + | 3 | place | postcode | 12345 | 1 -1 + When importing + Then table placex contains + | object | class | type + | N3 | place | postcode + When updating place nodes + | osm_id | class | type | postcode | housenumber | geometry + | 3 | place | house | 12345 | 13 | 1 -1 + Then table placex contains + | object | class | type + | N3 | place | house