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/chassis.hpp b/redfish-core/lib/chassis.hpp
index 8f88eb1..02a614b 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -213,6 +213,7 @@
Node::json["@odata.id"] = "/redfish/v1/Chassis";
Node::json["@odata.context"] = "/redfish/v1/$metadata#Chassis.Chassis";
Node::json["Name"] = "Chassis Collection";
+ Node::json["ChassisType"] = "RackMount";
entityPrivileges = {{crow::HTTPMethod::GET, {{"Login"}}},
{crow::HTTPMethod::HEAD, {{"Login"}}},
@@ -256,8 +257,8 @@
output) {
json_response[chassis_item.first] = chassis_item.second;
}
- json_response["Id"] = chassis_id;
+ json_response["Id"] = chassis_id;
// prepare respond, and send
res.json_value = json_response;
} else {