[editor] Change xml root to comaps

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-05-19 20:55:08 +07:00
committed by Konstantin Pastbin
parent 54ab965822
commit 2b7246d463
5 changed files with 10 additions and 13 deletions

View File

@@ -82,7 +82,7 @@ UNIT_TEST(OSM_ServerAPI_ChangesetAndNode)
XMLFeature node(XMLFeature::Type::Node);
ServerApi06 const api = CreateAPI();
uint64_t changeSetId = api.CreateChangeSet({{"created_by", "OMaps Unit Test"},
uint64_t changeSetId = api.CreateChangeSet({{"created_by", "CoMaps Unit Test"},
{"comment", "For test purposes only."}});
auto const changesetCloser = [&]() { api.CloseChangeSet(changeSetId); };
@@ -110,7 +110,7 @@ UNIT_TEST(OSM_ServerAPI_ChangesetAndNode)
TEST_EQUAL(node.GetAttribute("version"), "2", ());
// All tags must be specified, because there is no merging of old and new tags.
api.UpdateChangeSet(changeSetId, {{"created_by", "OMaps Unit Test"},
api.UpdateChangeSet(changeSetId, {{"created_by", "CoMaps Unit Test"},
{"comment", "For test purposes only (updated)."}});
// To retrieve created node, changeset should be closed first.
@@ -124,7 +124,7 @@ UNIT_TEST(OSM_ServerAPI_ChangesetAndNode)
TEST_EQUAL(node.GetAttribute("id"), features[0].GetAttribute("id"), ());
// Cleanup - delete unit test node from the server.
changeSetId = api.CreateChangeSet({{"created_by", "OMaps Unit Test"},
changeSetId = api.CreateChangeSet({{"created_by", "CoMaps Unit Test"},
{"comment", "For test purposes only."}});
SCOPE_GUARD(guard, changesetCloser);
// New changeset has new id.