regulators: Fix 'rule' test cases fail.
Fix test case failures for the 'rule' object.
The failures are caused by new logic in the validator that checks for invalid rule IDs.
Signed-off-by: Bob King <Bob_King@wistron.com>
Change-Id: I68c80abbd73c94d3ff6b63633e046f9b6bb956b0
diff --git a/phosphor-regulators/test/validate-regulators-config_tests.cpp b/phosphor-regulators/test/validate-regulators-config_tests.cpp
index b2c7c9f..2191db1 100644
--- a/phosphor-regulators/test/validate-regulators-config_tests.cpp
+++ b/phosphor-regulators/test/validate-regulators-config_tests.cpp
@@ -2175,8 +2175,7 @@
// valid test rule with multiple actions
{
json configFile = validConfigFile;
- configFile["rules"][0]["actions"][1]["run_rule"] =
- "set_page0_voltage_rule";
+ configFile["rules"][0]["actions"][1]["run_rule"] = "read_sensors_rule";
EXPECT_JSON_VALID(configFile);
}