bios: Converting bios json keys to lower snake case
Converting following bios attribute json keys to lower snake case
displayName --> display_name
helpText --> help_text
readOnly --> read_only
Tested:
Power on/off
Gtest passed
Change-Id: Iad88ed7bc381d66182c99e31e7d385f65750e0ed
Signed-off-by: Archana Kakani <archana.kakani@ibm.com>
diff --git a/libpldmresponder/test/libpldmresponder_bios_integer_attribute_test.cpp b/libpldmresponder/test/libpldmresponder_bios_integer_attribute_test.cpp
index 5301c77..f016649 100644
--- a/libpldmresponder/test/libpldmresponder_bios_integer_attribute_test.cpp
+++ b/libpldmresponder/test/libpldmresponder_bios_integer_attribute_test.cpp
@@ -35,9 +35,9 @@
"upper_bound" : 15,
"scalar_increment" : 1,
"default_value" : 2,
- "readOnly" : true,
- "helpText" : "HelpText",
- "displayName" : "DisplayName"
+ "read_only" : true,
+ "help_text" : "HelpText",
+ "display_name" : "DisplayName"
})"_json;
BIOSIntegerAttribute integerReadOnly{jsonIntegerReadOnly, nullptr};
@@ -55,9 +55,9 @@
"upper_bound" : 15,
"scalar_increment" : 1,
"default_valu" : 2,
- "readOnly" : true,
- "helpText" : "HelpText",
- "displayName" : "DisplayName"
+ "read_only" : true,
+ "help_text" : "HelpText",
+ "display_name" : "DisplayName"
})"_json; // default_valu -> default_value
EXPECT_THROW((BIOSIntegerAttribute{jsonIntegerReadOnlyError, nullptr}),
Json::exception);
@@ -68,9 +68,9 @@
"upper_bound" : 15,
"scalar_increment" : 1,
"default_value" : 0,
- "readOnly" : false,
- "helpText" : "HelpText",
- "displayName" : "DisplayName",
+ "read_only" : false,
+ "help_text" : "HelpText",
+ "display_name" : "DisplayName",
"dbus":{
"object_path" : "/xyz/openbmc_project/avsbus",
"interface" : "xyz.openbmc.AvsBus.Manager",
@@ -95,9 +95,9 @@
"upper_bound" : 15,
"scalar_increment" : 1,
"default_value" : 2,
- "readOnly" : true,
- "helpText" : "HelpText",
- "displayName" : "DisplayName"
+ "read_only" : true,
+ "help_text" : "HelpText",
+ "display_name" : "DisplayName"
})"_json;
std::vector<uint8_t> expectedAttrEntry{
@@ -129,9 +129,9 @@
"upper_bound" : 15,
"scalar_increment" : 1,
"default_value" : 2,
- "readOnly" : false,
- "helpText" : "HelpText",
- "displayName" : "DisplayName",
+ "read_only" : false,
+ "help_text" : "HelpText",
+ "display_name" : "DisplayName",
"dbus":{
"object_path" : "/xyz/openbmc_project/avsbus",
"interface" : "xyz.openbmc.AvsBus.Manager",
@@ -181,9 +181,9 @@
"upper_bound" : 15,
"scalar_increment" : 1,
"default_value" : 2,
- "readOnly" : false,
- "helpText" : "HelpText",
- "displayName" : "DisplayName",
+ "read_only" : false,
+ "help_text" : "HelpText",
+ "display_name" : "DisplayName",
"dbus":{
"object_path" : "/xyz/openbmc_project/avsbus",
"interface" : "xyz.openbmc.AvsBus.Manager",