source: osm/applications/editors/josm/plugins/reverter/test/data/regress/22520/mappings/06_changeset_36536612-c29c9e52-42ec-45c1-ad09-cf995c45c9a9.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: 1.5 KB
Line 
1{
2 "id": "c29c9e52-42ec-45c1-ad09-cf995c45c9a9",
3 "name": "06_changeset_36536612",
4 "request": {
5 "url": "/0.6/changeset/36536612",
6 "method": "GET"
7 },
8 "response": {
9 "status": 200,
10 "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<osm version=\"0.6\" generator=\"CGImap 0.8.8 (1864938 spike-06.openstreetmap.org)\" copyright=\"OpenStreetMap and contributors\" attribution=\"http://www.openstreetmap.org/copyright\" license=\"http://opendatacommons.org/licenses/odbl/1-0/\">\n <changeset id=\"36536612\" created_at=\"2016-01-12T19:48:18Z\" closed_at=\"2016-01-12T23:12:08Z\" open=\"false\" user=\"jendrusk\" uid=\"432920\" min_lat=\"51.6311533\" min_lon=\"17.7485732\" max_lat=\"51.6652257\" max_lon=\"17.8922560\" comments_count=\"0\" changes_count=\"18795\">\n <tag k=\"comment\" v=\"Ostrów wlkp - doszczegółowienie mapy, budynki, obszary\"/>\n <tag k=\"created_by\" v=\"JOSM/1.5 (9329 pl)\"/>\n <tag k=\"source\" v=\"geoportal\"/>\n </changeset>\n</osm>\n",
11 "headers": {
12 "Date": "Thu, 08 Dec 2022 20:43:24 GMT",
13 "Server": "Apache/2.4.54 (Ubuntu)",
14 "Cache-Control": "private, max-age=0, must-revalidate",
15 "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload",
16 "Expect-CT": "max-age=0, report-uri=\"https://openstreetmap.report-uri.com/r/d/ct/reportOnly\"",
17 "Upgrade": "h2,h2c",
18 "Keep-Alive": "timeout=5, max=100",
19 "Content-Type": "application/xml; charset=utf-8"
20 }
21 },
22 "uuid": "c29c9e52-42ec-45c1-ad09-cf995c45c9a9",
23 "insertionIndex": 3
24}
Note: See TracBrowser for help on using the repository browser.