Home
last modified time | relevance | path

Searched refs:jsonRequest (Results 1 – 3 of 3) sorted by relevance

/openbmc/bmcweb/test/redfish-core/include/
H A Dredfish_aggregator_test.cpp59 nlohmann::json jsonRequest; in TEST() local
93 jsonRequest["@odata.id"] = initial; in TEST()
94 addPrefixToItem(jsonRequest["@odata.id"], "asdfjkl"); in TEST()
95 EXPECT_EQ(jsonRequest["@odata.id"], correct); in TEST()
102 nlohmann::json jsonRequest; in TEST() local
127 jsonRequest["@odata.id"] = initial; in TEST()
128 addPrefixToItem(jsonRequest["@odata.id"], "asdfjkl"); in TEST()
129 EXPECT_EQ(jsonRequest["@odata.id"], initial); in TEST()
136 nlohmann::json jsonRequest; in TEST() local
154 jsonRequest["@odata.id"] = initial; in TEST()
[all …]
/openbmc/bmcweb/test/redfish-core/include/utils/
H A Djson_utils_test.cpp34 nlohmann::json jsonRequest = {{"integer", 1}, in TEST() local
41 ASSERT_TRUE(readJson(jsonRequest, res, "integer", integer, "string", str, in TEST()
54 nlohmann::json::object_t jsonRequest; in TEST() local
55 jsonRequest["integer"] = 1; in TEST()
56 jsonRequest["string"] = "hello"; in TEST()
57 jsonRequest["vector"] = std::vector<uint64_t>{1, 2, 3}; in TEST()
62 ASSERT_TRUE(readJsonObject(jsonRequest, res, "integer", integer, "string", in TEST()
75 nlohmann::json jsonRequest = {{"nullval", nullptr}}; in TEST() local
79 ASSERT_TRUE(readJson(jsonRequest, res, "nullval", str)); in TEST()
88 nlohmann::json jsonRequest = {{"stringval", "mystring"}}; in TEST() local
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Djson_utils.hpp495 inline bool readJsonHelper(nlohmann::json& jsonRequest, crow::Response& res,
597 inline bool readJsonHelper(nlohmann::json& jsonRequest, crow::Response& res, in readJsonHelper() argument
601 jsonRequest.get_ptr<nlohmann::json::object_t*>(); in readJsonHelper()
628 bool readJsonObject(nlohmann::json::object_t& jsonRequest, crow::Response& res, in readJsonObject() argument
636 return readJsonHelperObject(jsonRequest, res, toUnpack2); in readJsonObject()
640 bool readJson(nlohmann::json& jsonRequest, crow::Response& res, in readJson() argument
644 jsonRequest.get_ptr<nlohmann::json::object_t*>(); in readJson()
658 nlohmann::json jsonRequest; in readJsonPatchHelper() local
659 if (!json_util::processJsonFromRequest(res, req, jsonRequest)) in readJsonPatchHelper()
665 jsonRequest in readJsonPatchHelper()
692 std::optional<nlohmann::json::object_t> jsonRequest = readJsonPatch() local
712 nlohmann::json jsonRequest; readJsonAction() local
[all...]