test: fix bios JSON in the test file
1. `object_path` should contain `dbus` objects.
2. the difference between `default_value` and `lower_bound` should be
an integer multiple of `scalar_increment`.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Id91cbdcc13ed1af51deb7d049b65e9488767c5d6
diff --git a/test/bios_jsons/enum_attrs.json b/test/bios_jsons/enum_attrs.json
index 0b48be7..24c20ff 100644
--- a/test/bios_jsons/enum_attrs.json
+++ b/test/bios_jsons/enum_attrs.json
@@ -4,9 +4,9 @@
"attribute_name" : "HMCManagedState",
"possible_values" : [ "On", "Off" ],
"default_values" : [ "On" ],
- "object_path" : "/xyz/abc/def",
"dbus":
{
+ "object_path" : "/xyz/abc/def",
"interface" : "xyz.openbmc_project.HMCManaged.State",
"property_name" : "State",
"property_type" : "string",
diff --git a/test/bios_jsons/integer_attrs.json b/test/bios_jsons/integer_attrs.json
index dcbcc0a..b99a88b 100644
--- a/test/bios_jsons/integer_attrs.json
+++ b/test/bios_jsons/integer_attrs.json
@@ -25,7 +25,7 @@
"lower_bound" : 1,
"upper_bound" : 15,
"scalar_increment" : 2,
- "default_value" : 4
+ "default_value" : 3
}
]
}