diff options
author | Ed Tanous <ed.tanous@intel.com> | 2018-03-16 00:43:56 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2018-04-22 21:13:32 +0300 |
commit | 6c23301557b872240683babe6ab75c423a39e263 (patch) | |
tree | 92b3b22f5dd006f6181ca3a748d23143acbf4a82 /redfish-core/lib/redfish_sessions.hpp | |
parent | e37f8451795a5a17e14cf3bd13c72aa251c648f3 (diff) | |
download | bmcweb-6c23301557b872240683babe6ab75c423a39e263.tar.xz |
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>
Diffstat (limited to 'redfish-core/lib/redfish_sessions.hpp')
-rw-r--r-- | redfish-core/lib/redfish_sessions.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/redfish-core/lib/redfish_sessions.hpp b/redfish-core/lib/redfish_sessions.hpp index 326d5e04ae..4e429e8f72 100644 --- a/redfish-core/lib/redfish_sessions.hpp +++ b/redfish-core/lib/redfish_sessions.hpp @@ -25,7 +25,7 @@ class SessionCollection; class Sessions : public Node { public: Sessions(CrowApp& app) - : Node(app, "/redfish/v1/SessionService/Sessions/<str>", std::string()) { + : Node(app, "/redfish/v1/SessionService/Sessions/<str>/", std::string()) { Node::json["@odata.type"] = "#Session.v1_0_2.Session"; Node::json["@odata.context"] = "/redfish/v1/$metadata#Session.Session"; Node::json["Name"] = "User Session"; @@ -236,12 +236,10 @@ class SessionService : public Node { Node::json["@odata.context"] = "/redfish/v1/$metadata#SessionService.SessionService"; Node::json["Name"] = "Session Service"; + Node::json["Id"] = "SessionService"; Node::json["Description"] = "Session Service"; Node::json["SessionTimeout"] = crow::PersistentData::session_store->get_timeout_in_seconds(); - Node::json["Status"]["State"] = "Enabled"; - Node::json["Status"]["Health"] = "OK"; - Node::json["Status"]["HealthRollup"] = "OK"; Node::json["ServiceEnabled"] = true; entityPrivileges = {{crow::HTTPMethod::GET, {{"Login"}}}, |