Minor fixes to make redfish pass compliance tests
1. Role members needs to be an array, not an object
2. Fix accounts schema to use the new user manager
3. Remove "status" field hardcodes
4. Hardcode chassisType to rackmount for now
5. Work around bug in get sub routes
6. Add ID to SessionService Schema
Change-Id: Ibb13d6ace747ac028e840638868c3a01d65dedfa
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
diff --git a/redfish-core/lib/managers.hpp b/redfish-core/lib/managers.hpp
index ad042cb..7032a20 100644
--- a/redfish-core/lib/managers.hpp
+++ b/redfish-core/lib/managers.hpp
@@ -29,9 +29,6 @@
Node::json["Name"] = "OpenBmc Manager";
Node::json["Description"] = "Baseboard Management Controller";
Node::json["PowerState"] = "On";
- Node::json["Status"]["Health"] = "OK";
- Node::json["Status"]["HealthRollup"] = "OK";
- Node::json["Status"]["State"] = "Enabled";
Node::json["UUID"] =
app.template get_middleware<crow::PersistentData::Middleware>()
.system_uuid;
@@ -80,7 +77,7 @@
"/redfish/v1/$metadata#ManagerCollection.ManagerCollection";
Node::json["Name"] = "Manager Collection";
Node::json["Members@odata.count"] = 1;
- Node::json["Members"] = {{"@odata.id", "/redfish/v1/Managers/openbmc"}};
+ Node::json["Members"] = {{{"@odata.id", "/redfish/v1/Managers/openbmc"}}};
entityPrivileges = {{crow::HTTPMethod::GET, {{"Login"}}},
{crow::HTTPMethod::HEAD, {{"Login"}}},