X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/80a74181e463efeb071a3904346107d05e88a7a6..b610118a88489c11249e9c0d30b252d3d98bd287:/test/bdd/osm2pgsql/update/relation.feature?ds=sidebyside diff --git a/test/bdd/osm2pgsql/update/relation.feature b/test/bdd/osm2pgsql/update/relation.feature index 88889f9a..83ce9129 100644 --- a/test/bdd/osm2pgsql/update/relation.feature +++ b/test/bdd/osm2pgsql/update/relation.feature @@ -104,7 +104,6 @@ Feature: Update of relations by osm2pgsql """ Then place has no entry for R1 - @wip Scenario: Type tag is renamed to something unknown When loading osm data """ @@ -124,3 +123,37 @@ Feature: Update of relations by osm2pgsql """ Then place has no entry for R1 + Scenario: Country boundary names are left untouched when country_code unknown + When loading osm data + """ + n200 Tamenity=prison x0 y0 + n201 x0 y0.0001 + n202 x0.0001 y0.0001 + n203 x0.0001 y0 + """ + And updating osm data + """ + w1 Nn200,n201,n202,n203,n200 + r1 Ttype=boundary,boundary=administrative,name=Foo,country_code=XX,admin_level=2 Mw1@ + """ + Then place contains + | object | addr+country | name | + | R1 | XX | 'name' : 'Foo' | + + Scenario: Country boundary names are extended when country_code known + When loading osm data + """ + n200 Tamenity=prison x0 y0 + n201 x0 y0.0001 + n202 x0.0001 y0.0001 + n203 x0.0001 y0 + """ + And updating osm data + """ + w1 Nn200,n201,n202,n203,n200 + r1 Ttype=boundary,boundary=administrative,name=Foo,country_code=ch,admin_level=2 Mw1@ + """ + Then place contains + | object | addr+country | name+name:de | name+name | + | R1 | ch | Schweiz | Foo | +