source: osm/applications/editors/josm/plugins/reverter/test/data/regress/22520/mappings/06_way_233056719_3-14834ba3-60fa-41c7-a36d-d3bbf8408bf3.json@ 36042

Last change on this file since 36042 was 36042, checked in by taylor.smock, 20 months ago

Fix #22520: IllegalStateException: Missing merge target for node (patch by GerdP, modified to add tests)

The added test is essentially an integration test instead of a unit test, mostly
due to having no good way to do a test specifically for the method at issue.
The test uses wiremock to (a) speed up the test and (b) avoid adding a test-time
dependency on the OSM API servers. The test required a custom wiremock response
transformer for the OSM multi-fetch API, since it is not guaranteed that the
order of objects will remain the same, which will lead to stub misses, failing
the test.

File size: 2.9 KB
Line 
1{
2 "id": "14834ba3-60fa-41c7-a36d-d3bbf8408bf3",
3 "name": "06_way_233056719_3",
4 "request": {
5 "url": "/0.6/way/233056719/3",
6 "method": "GET"
7 },
8 "response": {
9 "status": 200,
10 "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<osm version=\"0.6\" generator=\"OpenStreetMap server\" copyright=\"OpenStreetMap and contributors\" attribution=\"http://www.openstreetmap.org/copyright\" license=\"http://opendatacommons.org/licenses/odbl/1-0/\">\n<way id=\"233056719\" visible=\"true\" version=\"3\" changeset=\"37936976\" timestamp=\"2016-03-19T12:10:33Z\" user=\"Zibi-importy\" uid=\"1879367\">\n <nd ref=\"3942339738\"/>\n <nd ref=\"3942339739\"/>\n <nd ref=\"3942339737\"/>\n <nd ref=\"3942339736\"/>\n <nd ref=\"3942339735\"/>\n <nd ref=\"3942339732\"/>\n <nd ref=\"3942339734\"/>\n <nd ref=\"3942339740\"/>\n <nd ref=\"3942339738\"/>\n <tag k=\"addr:city\" v=\"Ostrów Wielkopolski\"/>\n <tag k=\"addr:city:simc\" v=\"0937132\"/>\n <tag k=\"addr:housenumber\" v=\"53\"/>\n <tag k=\"addr:postcode\" v=\"63-400\"/>\n <tag k=\"addr:street\" v=\"Długa\"/>\n <tag k=\"addr:street:sym_ul\" v=\"03839\"/>\n <tag k=\"building\" v=\"yes\"/>\n <tag k=\"source:addr\" v=\"mostrowwielkopolski.e-mapa.net\"/>\n</way>\n</osm>\n",
11 "headers": {
12 "Date": "Thu, 08 Dec 2022 20:43:22 GMT",
13 "Server": "Apache/2.4.54 (Ubuntu)",
14 "Cache-Control": "max-age=0, private, must-revalidate",
15 "Vary": "Origin,Accept-Encoding",
16 "Referrer-Policy": "strict-origin-when-cross-origin",
17 "X-Permitted-Cross-Domain-Policies": "none",
18 "X-XSS-Protection": "1; mode=block",
19 "X-Request-Id": "Y5JMapsGFlyjTCuFEkrzpQAAA00",
20 "X-Download-Options": "noopen",
21 "X-Runtime": "0.030566",
22 "X-Frame-Options": "sameorigin",
23 "X-Content-Type-Options": "nosniff",
24 "Content-Security-Policy": "default-src 'self'; child-src 'self'; connect-src 'self' matomo.openstreetmap.org; font-src 'none'; form-action 'self'; frame-ancestors 'self'; frame-src 'self'; img-src 'self' data: www.gravatar.com *.wp.com tile.openstreetmap.org *.tile.openstreetmap.org *.tile.thunderforest.com tileserver.memomaps.de *.openstreetmap.fr matomo.openstreetmap.org https://openstreetmap-user-avatars.s3.dualstack.eu-west-1.amazonaws.com https://openstreetmap-gps-images.s3.dualstack.eu-west-1.amazonaws.com; manifest-src 'self'; media-src 'none'; object-src 'self'; script-src 'self' matomo.openstreetmap.org; style-src 'self'; worker-src 'none'",
25 "X-Powered-By": "Phusion Passenger(R) 6.0.14",
26 "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
27 "Expect-CT": "max-age=0, report-uri=\"https://openstreetmap.report-uri.com/r/d/ct/reportOnly\"",
28 "Upgrade": "h2,h2c",
29 "Last-Modified": "Sat, 19 Mar 2016 12:10:33 GMT",
30 "Status": "200 OK",
31 "Keep-Alive": "timeout=5, max=100",
32 "Content-Type": "application/xml; charset=utf-8"
33 }
34 },
35 "uuid": "14834ba3-60fa-41c7-a36d-d3bbf8408bf3",
36 "insertionIndex": 1
37}
Note: See TracBrowser for help on using the repository browser.