summaryrefslogtreecommitdiff
path: root/redfish-core/lib/log_services.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2023-02-09 02:43:27 +0300
committerEd Tanous <ed@tanous.net>2023-02-10 00:59:53 +0300
commited34a4adf3cc28c92c6d1d9262f47d1f35595d71 (patch)
treeb1c4d6d5730e3e30985eb3ce92be475e630f42b8 /redfish-core/lib/log_services.hpp
parent3179105b5d9be791d79302d27ceb8e94f8670a6c (diff)
downloadbmcweb-ed34a4adf3cc28c92c6d1d9262f47d1f35595d71.tar.xz
Correct Id parameter for two log services
The Journal and EventLog now fail redfish-service-validators new test. Per the specification, the "Id" parameter should match the elements odata id segment in the collection. The validator now tests for this, and these two fail. Tested: Redfish service validator now passes. Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I463eea7ae7a7dfd6a9d6d562ae4f03dc887a9478
Diffstat (limited to 'redfish-core/lib/log_services.hpp')
-rw-r--r--redfish-core/lib/log_services.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index 7930a88698..ef1652bd72 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -2338,7 +2338,7 @@ inline void requestRoutesBMCJournalLogService(App& app)
"/redfish/v1/Managers/bmc/LogServices/Journal";
asyncResp->res.jsonValue["Name"] = "Open BMC Journal Log Service";
asyncResp->res.jsonValue["Description"] = "BMC Journal Log Service";
- asyncResp->res.jsonValue["Id"] = "BMC Journal";
+ asyncResp->res.jsonValue["Id"] = "Journal";
asyncResp->res.jsonValue["OverWritePolicy"] = "WrapsWhenFull";
std::pair<std::string, std::string> redfishDateTimeOffset =
@@ -3541,7 +3541,7 @@ inline void requestRoutesPostCodesLogService(App& app)
"#LogService.v1_1_0.LogService";
asyncResp->res.jsonValue["Name"] = "POST Code Log Service";
asyncResp->res.jsonValue["Description"] = "POST Code Log Service";
- asyncResp->res.jsonValue["Id"] = "BIOS POST Code Log";
+ asyncResp->res.jsonValue["Id"] = "PostCodes";
asyncResp->res.jsonValue["OverWritePolicy"] = "WrapsWhenFull";
asyncResp->res.jsonValue["Entries"]["@odata.id"] =
"/redfish/v1/Systems/system/LogServices/PostCodes/Entries";