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.cpp35 nlohmann::json jsonRequest = {{"integer", 1}, in TEST() local
42 ASSERT_TRUE(readJson(jsonRequest, res, "integer", integer, "string", str, in TEST()
55 nlohmann::json::object_t jsonRequest; in TEST() local
56 jsonRequest["integer"] = 1; in TEST()
57 jsonRequest["string"] = "hello"; in TEST()
58 jsonRequest["vector"] = std::vector<uint64_t>{1, 2, 3}; in TEST()
63 ASSERT_TRUE(readJsonObject(jsonRequest, res, "integer", integer, "string", in TEST()
76 nlohmann::json jsonRequest = {{"nullval", nullptr}}; in TEST() local
80 ASSERT_TRUE(readJson(jsonRequest, res, "nullval", str)); in TEST()
89 nlohmann::json jsonRequest = {{"stringval", "mystring"}}; in TEST() local
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Djson_utils.hpp631 bool readJsonObject(nlohmann::json::object_t& jsonRequest, crow::Response& res, in readJsonObject() argument
639 return readJsonHelperObject(jsonRequest, res, toUnpack2); in readJsonObject()
643 bool readJson(nlohmann::json& jsonRequest, crow::Response& res, in readJson() argument
647 jsonRequest.get_ptr<nlohmann::json::object_t*>(); in readJson()
661 nlohmann::json jsonRequest; in readJsonPatchHelper() local
662 if (!json_util::processJsonFromRequest(res, req, jsonRequest)) in readJsonPatchHelper()
668 jsonRequest.get_ptr<nlohmann::json::object_t*>(); in readJsonPatchHelper()
730 std::optional<nlohmann::json::object_t> jsonRequest = in readJsonPatch() local
732 if (!jsonRequest) in readJsonPatch()
736 if (jsonRequest->empty()) in readJsonPatch()
[all …]