entry: use AdditionalData2 for serialization
Prefer the `map<std::string, std::string>` for serialization of
metadata over the `vector<std::string>` format. Add backwards
compatible parsing of the `vector<std::string>` format.
Tested: Loaded a "version 5" entry. Created a new entry and verified
it was "version 6" in the binary dump. Reloading the daemon restores
both version 5 and 6 objects.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I39b8a4099ad61161d52c3784d6325df7da031011
diff --git a/test/serialization_test_properties.cpp b/test/serialization_test_properties.cpp
index d7d5455..60fc6ae 100644
--- a/test/serialization_test_properties.cpp
+++ b/test/serialization_test_properties.cpp
@@ -13,7 +13,7 @@
{
auto id = 99;
phosphor::logging::AssociationList assocations{};
- std::vector<std::string> testData{"additional", "data"};
+ std::vector<std::string> testData{"additional=1", "data=yes"};
uint64_t timestamp{100};
std::string message{"test error"};
std::string fwLevel{"level42"};