846dde5d | 14-Aug-2021 |
Shawn McCarney <shawnmm@us.ibm.com> |
regulators: Add phase fault detection to schema
Add the following new JSON objects to the configuration file schema: * i2c_capture_bytes * log_phase_fault * phase_fault_detection
Add new automated
regulators: Add phase fault detection to schema
Add the following new JSON objects to the configuration file schema: * i2c_capture_bytes * log_phase_fault * phase_fault_detection
Add new automated tests to verify the schema additions.
Also make the following enhancements to the automated schema tests: * Add presence_detection rule to sample JSON * Modify the function called by EXPECT_JSON_INVALID(). Support passing an empty string as the expected first line written to stdout. This value means the stdout line should be ignored. This helps in cases where the output from jsonschema is very long, cryptic, and/or dependent on the jsonschema version. * Added a blank line between TEST functions to improve readability.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: Ie1dac1b9b2edaf055266c8b7868e017a57dda5fc
show more ...
|
4dc9a300 | 14-Aug-2021 |
Shawn McCarney <shawnmm@us.ibm.com> |
regulators: Standardize arrays in schema
Standardize the definition of arrays of objects in the JSON config file schema.
When an array contains objects as elements, then both the array and the obje
regulators: Standardize arrays in schema
Standardize the definition of arrays of objects in the JSON config file schema.
When an array contains objects as elements, then both the array and the object type need to be defined in the schema.
Currently the schema definitions for arrays of objects are inconsistent. Sometimes the object type is defined at the same time as the array, and sometimes the array references a separate object type.
Standardize the schema so that all array definitions reference a separate object type. This makes the array definition simpler, and it makes the object type reusable.
Also standardize use of white space in several places where it was inconsistent in the file.
Tested: * Ran automated schema tests.
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: If972c2a599e665e94f37e8942239074e2ec19c41
show more ...
|