Home
last modified time | relevance | path

Searched refs:jsonValue (Results 1 – 25 of 85) sorted by relevance

1234

/openbmc/bmcweb/test/include/
H A Dsessions_test.cpp12 nlohmann::json::object_t jsonValue; in TEST() local
13 jsonValue["BasicAuth"] = true; in TEST()
14 jsonValue["CookieAuth"] = true; in TEST()
15 jsonValue["MTLSCommonNameParseMode"] = 2; in TEST()
16 jsonValue["SessionToken"] = true; in TEST()
17 jsonValue["TLS"] = true; in TEST()
18 jsonValue["TLSStrict"] = false; in TEST()
19 jsonValue["XToken"] = true; in TEST()
21 methods.fromJson(jsonValue); in TEST()
38 nlohmann::json::object_t jsonValue; in TEST() local
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Dservice_root.hpp50 asyncResp->res.jsonValue["@odata.type"] = in handleServiceRootGetImpl()
52 asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1"; in handleServiceRootGetImpl()
53 asyncResp->res.jsonValue["Id"] = "RootService"; in handleServiceRootGetImpl()
54 asyncResp->res.jsonValue["Name"] = "Root Service"; in handleServiceRootGetImpl()
55 asyncResp->res.jsonValue["RedfishVersion"] = "1.17.0"; in handleServiceRootGetImpl()
56 asyncResp->res.jsonValue["Links"]["Sessions"]["@odata.id"] = in handleServiceRootGetImpl()
58 asyncResp->res.jsonValue["AccountService"]["@odata.id"] = in handleServiceRootGetImpl()
62 asyncResp->res.jsonValue["AggregationService"]["@odata.id"] = in handleServiceRootGetImpl()
65 asyncResp->res.jsonValue["Chassis"]["@odata.id"] = "/redfish/v1/Chassis"; in handleServiceRootGetImpl()
66 asyncResp->res.jsonValue["JsonSchemas"]["@odata.id"] = in handleServiceRootGetImpl()
[all …]
H A Dmessage_registries.hpp38 asyncResp->res.jsonValue["@odata.type"] = in handleMessageRegistryFileCollectionGet()
40 asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1/Registries"; in handleMessageRegistryFileCollectionGet()
41 asyncResp->res.jsonValue["Name"] = "MessageRegistryFile Collection"; in handleMessageRegistryFileCollectionGet()
42 asyncResp->res.jsonValue["Description"] = in handleMessageRegistryFileCollectionGet()
45 nlohmann::json& members = asyncResp->res.jsonValue["Members"]; in handleMessageRegistryFileCollectionGet()
54 asyncResp->res.jsonValue["Members@odata.count"] = members.size(); in handleMessageRegistryFileCollectionGet()
94 asyncResp->res.jsonValue["@odata.id"] = in handleMessageRoutesMessageRegistryFileGet()
96 asyncResp->res.jsonValue["@odata.type"] = in handleMessageRoutesMessageRegistryFileGet()
98 asyncResp->res.jsonValue["Name"] = registry + " Message Registry File"; in handleMessageRoutesMessageRegistryFileGet()
99 asyncResp->res.jsonValue["Description"] = in handleMessageRoutesMessageRegistryFileGet()
[all …]
H A Dtelemetry_service.hpp40 asyncResp->res.jsonValue["@odata.type"] = in handleTelemetryServiceGet()
42 asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1/TelemetryService"; in handleTelemetryServiceGet()
43 asyncResp->res.jsonValue["Id"] = "TelemetryService"; in handleTelemetryServiceGet()
44 asyncResp->res.jsonValue["Name"] = "Telemetry Service"; in handleTelemetryServiceGet()
46 asyncResp->res.jsonValue["MetricReportDefinitions"]["@odata.id"] = in handleTelemetryServiceGet()
48 asyncResp->res.jsonValue["MetricReports"]["@odata.id"] = in handleTelemetryServiceGet()
50 asyncResp->res.jsonValue["Triggers"]["@odata.id"] = in handleTelemetryServiceGet()
60 asyncResp->res.jsonValue["Status"]["State"] = in handleTelemetryServiceGet()
71 asyncResp->res.jsonValue["Status"]["State"] = in handleTelemetryServiceGet()
89 asyncResp->res.jsonValue["MaxReports"] = *maxReports; in handleTelemetryServiceGet()
[all …]
H A Dmemory.hpp168 asyncResp->res.jsonValue[jsonPtr][key] = std::format("{:#04X}", *value); in dimmPropToHex()
243 asyncResp->res.jsonValue[jsonPtr]["VolatileRegionSizeLimitMiB"] = in getPersistentMemoryProperties()
249 asyncResp->res.jsonValue[jsonPtr]["PersistentRegionSizeLimitMiB"] = in getPersistentMemoryProperties()
255 asyncResp->res.jsonValue[jsonPtr]["VolatileSizeMiB"] = in getPersistentMemoryProperties()
261 asyncResp->res.jsonValue[jsonPtr]["NonVolatileSizeMiB"] = in getPersistentMemoryProperties()
267 asyncResp->res.jsonValue[jsonPtr]["CacheSizeMiB"] = in getPersistentMemoryProperties()
273 asyncResp->res.jsonValue[jsonPtr]["VolatileRegionSizeMaxMiB"] = in getPersistentMemoryProperties()
279 asyncResp->res.jsonValue[jsonPtr]["PersistentRegionSizeMaxMiB"] = in getPersistentMemoryProperties()
285 asyncResp->res.jsonValue[jsonPtr]["AllocationIncrementMiB"] = in getPersistentMemoryProperties()
291 asyncResp->res.jsonValue[jsonPtr]["AllocationAlignmentMiB"] = in getPersistentMemoryProperties()
[all …]
H A Droles.hpp96 asyncResp->res.jsonValue["@odata.type"] = "#Role.v1_2_2.Role"; in requestRoutesRoles()
97 asyncResp->res.jsonValue["Name"] = "User Role"; in requestRoutesRoles()
98 asyncResp->res.jsonValue["Description"] = roleId + " User Role"; in requestRoutesRoles()
99 asyncResp->res.jsonValue["OemPrivileges"] = in requestRoutesRoles()
101 asyncResp->res.jsonValue["IsPredefined"] = true; in requestRoutesRoles()
102 asyncResp->res.jsonValue["Id"] = roleId; in requestRoutesRoles()
103 asyncResp->res.jsonValue["RoleId"] = roleId; in requestRoutesRoles()
104 asyncResp->res.jsonValue["@odata.id"] = boost::urls::format( in requestRoutesRoles()
106 asyncResp->res.jsonValue["AssignedPrivileges"] = in requestRoutesRoles()
123 asyncResp->res.jsonValue["@odata.id"] = in requestRoutesRoleCollection()
[all …]
H A Dtask.hpp180 res.jsonValue["@odata.id"] = uri; in populateResp()
181 res.jsonValue["@odata.type"] = "#Task.v1_4_3.Task"; in populateResp()
182 res.jsonValue["Id"] = strIdx; in populateResp()
183 res.jsonValue["TaskState"] = state; in populateResp()
184 res.jsonValue["TaskStatus"] = status; in populateResp()
193 res.jsonValue["Name"] = "Task " + strIdx; in populateResp()
194 res.jsonValue["StartTime"] = in populateResp()
196 res.jsonValue["Messages"] = messages; in populateResp()
197 res.jsonValue["TaskMonitor"] = taskMonitor; in populateResp()
198 res.jsonValue["HidePayload"] = !payload; in populateResp()
[all …]
H A Dmanagers.hpp319 asyncResp->res.jsonValue["@odata.type"] = "#ActionInfo.v1_1_2.ActionInfo"; in handleManagerResetActionInfo()
320 asyncResp->res.jsonValue["@odata.id"] = in handleManagerResetActionInfo()
323 asyncResp->res.jsonValue["Name"] = "Reset Action Info"; in handleManagerResetActionInfo()
324 asyncResp->res.jsonValue["Id"] = "ResetActionInfo"; in handleManagerResetActionInfo()
338 asyncResp->res.jsonValue["Parameters"] = std::move(parameters); in handleManagerResetActionInfo()
369 .jsonValue["Location"]["PartLocation"]["ServiceLabel"] = in getLocation()
395 asyncResp->res.jsonValue["LastResetTime"] = in managerGetLastResetTime()
575 asyncResp->res.jsonValue["Status"]["Health"] = in checkForQuiesced()
577 asyncResp->res.jsonValue["Status"]["State"] = in checkForQuiesced()
582 asyncResp->res.jsonValue["Status"]["Health"] = resource::Health::OK; in checkForQuiesced()
[all …]
H A Dstorage.hpp54 asyncResp->res.jsonValue["@odata.type"] = in handleSystemsStorageCollectionGet()
56 asyncResp->res.jsonValue["@odata.id"] = boost::urls::format( in handleSystemsStorageCollectionGet()
58 asyncResp->res.jsonValue["Name"] = "Storage Collection"; in handleSystemsStorageCollectionGet()
77 asyncResp->res.jsonValue["@odata.type"] = in handleStorageCollectionGet()
79 asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1/Storage"; in handleStorageCollectionGet()
80 asyncResp->res.jsonValue["Name"] = "Storage Collection"; in handleStorageCollectionGet()
100 nlohmann::json& driveArray = asyncResp->res.jsonValue["Drives"]; in afterChassisDriveCollectionSubtree()
102 auto& count = asyncResp->res.jsonValue["Drives@odata.count"]; in afterChassisDriveCollectionSubtree()
158 asyncResp->res.jsonValue["@odata.type"] = "#Storage.v1_13_0.Storage"; in afterSystemsStorageGetSubtree()
159 asyncResp->res.jsonValue["@odata.id"] = in afterSystemsStorageGetSubtree()
[all …]
H A Dchassis.hpp142 asyncResp->res.jsonValue["Links"]["Storage@odata.count"] = in getStorageLink()
144 asyncResp->res.jsonValue["Links"]["Storage"] = std::move(storages); in getStorageLink()
182 asyncResp->res.jsonValue["PowerState"] = in getChassisState()
184 asyncResp->res.jsonValue["Status"]["State"] = in getChassisState()
190 asyncResp->res.jsonValue["PowerState"] = in getChassisState()
192 asyncResp->res.jsonValue["Status"]["State"] = in getChassisState()
199 asyncResp->res.jsonValue["PowerState"] = in getChassisState()
201 asyncResp->res.jsonValue["Status"]["State"] = in getChassisState()
208 asyncResp->res.jsonValue["PowerState"] = in getChassisState()
210 asyncResp->res.jsonValue["Status"]["State"] = in getChassisState()
[all …]
H A Dpcie.hpp141 asyncResp->res.jsonValue["@odata.type"] = in handlePCIeDeviceCollectionGet()
143 asyncResp->res.jsonValue["@odata.id"] = std::format( in handlePCIeDeviceCollectionGet()
145 asyncResp->res.jsonValue["Name"] = "PCIe Device Collection"; in handlePCIeDeviceCollectionGet()
146 asyncResp->res.jsonValue["Description"] = "Collection of PCIe Devices"; in handlePCIeDeviceCollectionGet()
187 asyncResp->res.jsonValue["Links"]["Processors"]; in afterGetAssociatedSubTreePaths()
204 asyncResp->res.jsonValue["Links"]["Processors@odata.count"] = in afterGetAssociatedSubTreePaths()
262 res.jsonValue["Slot"]["PCIeType"] = *pcieType; in addPCIeSlotProperties()
267 res.jsonValue["Slot"]["Lanes"] = lanes; in addPCIeSlotProperties()
284 res.jsonValue["Slot"]["SlotType"] = *redfishSlotType; in addPCIeSlotProperties()
396 asyncResp->res.jsonValue["Status"]["Health"] = in getPCIeDeviceHealth()
[all …]
H A Dredfish_sessions.hpp43 res.jsonValue["Id"] = session.uniqueId; in fillSessionObject()
44 res.jsonValue["UserName"] = session.username; in fillSessionObject()
47 res.jsonValue["Roles"] = std::move(roles); in fillSessionObject()
48 res.jsonValue["@odata.id"] = boost::urls::format( in fillSessionObject()
50 res.jsonValue["@odata.type"] = "#Session.v1_7_0.Session"; in fillSessionObject()
51 res.jsonValue["Name"] = "User Session"; in fillSessionObject()
52 res.jsonValue["Description"] = "Manager User Session"; in fillSessionObject()
53 res.jsonValue["ClientOriginIPAddress"] = session.clientIp; in fillSessionObject()
56 res.jsonValue["Context"] = *session.clientId; in fillSessionObject()
186 asyncResp->res.jsonValue["Members"] = getSessionCollectionMembers(); in handleSessionCollectionGet()
[all …]
H A Dstorage_controller.hpp21 asyncResp->res.jsonValue["@odata.type"] = in populateStorageController()
23 asyncResp->res.jsonValue["@odata.id"] = in populateStorageController()
26 asyncResp->res.jsonValue["Name"] = controllerId; in populateStorageController()
27 asyncResp->res.jsonValue["Id"] = controllerId; in populateStorageController()
28 asyncResp->res.jsonValue["Status"]["State"] = resource::State::Enabled; in populateStorageController()
42 asyncResp->res.jsonValue["Status"]["State"] = in populateStorageController()
99 asyncResp->res.jsonValue["Members"] = std::move(members); in populateStorageControllerCollection()
100 asyncResp->res.jsonValue["Members@odata.count"] = 0; in populateStorageControllerCollection()
119 asyncResp->res.jsonValue["Members@odata.count"] = members.size(); in populateStorageControllerCollection()
120 asyncResp->res.jsonValue["Members"] = std::move(members); in populateStorageControllerCollection()
[all …]
H A Dmanager_logservices_journal.hpp54 asyncResp->res.jsonValue["@odata.type"] = "#LogService.v1_2_0.LogService"; in handleManagersLogServiceJournalGet()
55 asyncResp->res.jsonValue["@odata.id"] = in handleManagersLogServiceJournalGet()
58 asyncResp->res.jsonValue["Name"] = "Open BMC Journal Log Service"; in handleManagersLogServiceJournalGet()
59 asyncResp->res.jsonValue["Description"] = "BMC Journal Log Service"; in handleManagersLogServiceJournalGet()
60 asyncResp->res.jsonValue["Id"] = "Journal"; in handleManagersLogServiceJournalGet()
61 asyncResp->res.jsonValue["OverWritePolicy"] = "WrapsWhenFull"; in handleManagersLogServiceJournalGet()
65 asyncResp->res.jsonValue["DateTime"] = redfishDateTimeOffset.first; in handleManagersLogServiceJournalGet()
66 asyncResp->res.jsonValue["DateTimeLocalOffset"] = in handleManagersLogServiceJournalGet()
69 asyncResp->res.jsonValue["Entries"]["@odata.id"] = boost::urls::format( in handleManagersLogServiceJournalGet()
85 nlohmann::json& logEntry = asyncResp->res.jsonValue["Members"]; in readJournalEntries()
[all …]
H A Dcable.hpp74 asyncResp->res.jsonValue["CableType"] = *cableTypeDescription; in fillCableProperties()
91 asyncResp->res.jsonValue["LengthMeters"] = *length; in fillCableProperties()
119 asyncResp->res.jsonValue["Status"]["State"] = in fillCableHealthState()
183 asyncResp->res.jsonValue["@odata.type"] = "#Cable.v1_0_0.Cable"; in afterHandleCableGet()
184 asyncResp->res.jsonValue["@odata.id"] = in afterHandleCableGet()
186 asyncResp->res.jsonValue["Id"] = cableId; in afterHandleCableGet()
187 asyncResp->res.jsonValue["Name"] = "Cable"; in afterHandleCableGet()
188 asyncResp->res.jsonValue["Status"]["State"] = resource::State::Enabled; in afterHandleCableGet()
221 asyncResp->res.jsonValue["@odata.type"] = in handleCableCollectionGet()
223 asyncResp->res.jsonValue["@odata.id"] = "/redfish/v1/Cables"; in handleCableCollectionGet()
[all …]
H A Dhypervisor_system.hpp75 asyncResp->res.jsonValue["PowerState"] = in getHypervisorState()
77 asyncResp->res.jsonValue["Status"]["State"] = in getHypervisorState()
83 asyncResp->res.jsonValue["PowerState"] = in getHypervisorState()
85 asyncResp->res.jsonValue["Status"]["State"] = in getHypervisorState()
91 asyncResp->res.jsonValue["PowerState"] = in getHypervisorState()
93 asyncResp->res.jsonValue["Status"]["State"] = in getHypervisorState()
99 asyncResp->res.jsonValue["PowerState"] = in getHypervisorState()
101 asyncResp->res.jsonValue["Status"]["State"] = in getHypervisorState()
107 asyncResp->res.jsonValue["PowerState"] = in getHypervisorState()
109 asyncResp->res.jsonValue["Status"]["State"] = in getHypervisorState()
[all …]
H A Dsystems_logservices_hostlogger.hpp139 asyncResp->res.jsonValue["@odata.id"] = in handleSystemsLogServicesHostloggerGet()
142 asyncResp->res.jsonValue["@odata.type"] = "#LogService.v1_2_0.LogService"; in handleSystemsLogServicesHostloggerGet()
143 asyncResp->res.jsonValue["Name"] = "Host Logger Service"; in handleSystemsLogServicesHostloggerGet()
144 asyncResp->res.jsonValue["Description"] = "Host Logger Service"; in handleSystemsLogServicesHostloggerGet()
145 asyncResp->res.jsonValue["Id"] = "HostLogger"; in handleSystemsLogServicesHostloggerGet()
146 asyncResp->res.jsonValue["Entries"]["@odata.id"] = boost::urls::format( in handleSystemsLogServicesHostloggerGet()
179 asyncResp->res.jsonValue["@odata.id"] = boost::urls::format( in handleSystemsLogServicesHostloggerEntriesGet()
182 asyncResp->res.jsonValue["@odata.type"] = in handleSystemsLogServicesHostloggerEntriesGet()
184 asyncResp->res.jsonValue["Name"] = "HostLogger Entries"; in handleSystemsLogServicesHostloggerEntriesGet()
185 asyncResp->res.jsonValue["Description"] = in handleSystemsLogServicesHostloggerEntriesGet()
[all …]
H A Dprocessor.hpp79 asyncResp->res.jsonValue["UUID"] = property; in getProcessorUUID()
90 asyncResp->res.jsonValue["Status"]["State"] = resource::State::Enabled; in getCpuDataByInterface()
91 asyncResp->res.jsonValue["Status"]["Health"] = resource::Health::OK; in getCpuDataByInterface()
109 asyncResp->res.jsonValue["Status"]["State"] = in getCpuDataByInterface()
123 asyncResp->res.jsonValue["Status"]["Health"] = in getCpuDataByInterface()
136 asyncResp->res.jsonValue["TotalCores"] = *coresCount; in getCpuDataByInterface()
143 asyncResp->res.jsonValue["MaxSpeedMHz"] = *value; in getCpuDataByInterface()
152 asyncResp->res.jsonValue["Socket"] = *value; in getCpuDataByInterface()
160 asyncResp->res.jsonValue["TotalThreads"] = *value; in getCpuDataByInterface()
168 asyncResp->res.jsonValue["ProcessorId"]["EffectiveFamily"] = in getCpuDataByInterface()
[all …]
H A Dstorage_chassis.hpp37 asyncResp->res.jsonValue["Status"]["State"] = in getDrivePresent()
63 asyncResp->res.jsonValue["Status"]["State"] = in getDriveState()
162 asyncResp->res.jsonValue["MediaType"] = *mediaType; in getDriveItemProperties()
180 asyncResp->res.jsonValue["CapacityBytes"] = *capacity; in getDriveItemProperties()
206 asyncResp->res.jsonValue["Protocol"] = *proto; in getDriveItemProperties()
223 .jsonValue["PredictedMediaLifeLeftPercent"] = in getDriveItemProperties()
260 asyncResp->res.jsonValue["EncryptionStatus"] = in getDriveItemProperties()
268 asyncResp->res.jsonValue["EncryptionStatus"] = in getDriveItemProperties()
275 asyncResp->res.jsonValue["EncryptionStatus"] = in getDriveItemProperties()
336 asyncResp->res.jsonValue["@odata.type"] = "#Drive.v1_7_0.Drive"; in afterGetSubtreeSystemsStorageDrive()
[all …]
H A Dthermal_subsystem.hpp42 asyncResp->res.jsonValue["@odata.type"] = in doThermalSubsystemCollection()
44 asyncResp->res.jsonValue["Name"] = "Thermal Subsystem"; in doThermalSubsystemCollection()
45 asyncResp->res.jsonValue["Id"] = "ThermalSubsystem"; in doThermalSubsystemCollection()
47 asyncResp->res.jsonValue["@odata.id"] = boost::urls::format( in doThermalSubsystemCollection()
50 asyncResp->res.jsonValue["Fans"]["@odata.id"] = boost::urls::format( in doThermalSubsystemCollection()
53 asyncResp->res.jsonValue["ThermalMetrics"]["@odata.id"] = in doThermalSubsystemCollection()
58 asyncResp->res.jsonValue["Status"]["State"] = resource::State::Enabled; in doThermalSubsystemCollection()
59 asyncResp->res.jsonValue["Status"]["Health"] = resource::Health::OK; in doThermalSubsystemCollection()
/openbmc/bmcweb/features/ibm/
H A Dibm_management_console_rest.hpp58 asyncResp->res.jsonValue["Description"] = contentNotAcceptableMsg; in handleFilePut()
71 asyncResp->res.jsonValue["Description"] = resourceNotFoundMsg; in handleFilePut()
85 asyncResp->res.jsonValue["Description"] = internalServerError; in handleFilePut()
100 asyncResp->res.jsonValue["Description"] = internalServerError; in handleFilePut()
111 asyncResp->res.jsonValue["Description"] = internalServerError; in handleFilePut()
129 asyncResp->res.jsonValue["Description"] = in handleFilePut()
136 asyncResp->res.jsonValue["Description"] = in handleFilePut()
151 asyncResp->res.jsonValue["Description"] = internalServerError; in handleFilePut()
166 asyncResp->res.jsonValue["Description"] = internalServerError; in handleFilePut()
195 asyncResp->res.jsonValue["Description"] = in handleFilePut()
[all …]
/openbmc/bmcweb/features/google/
H A Dgoogle_service_root.hpp39 asyncResp->res.jsonValue["@odata.type"] = in handleGoogleV1Get()
41 asyncResp->res.jsonValue["@odata.id"] = "/google/v1"; in handleGoogleV1Get()
42 asyncResp->res.jsonValue["Id"] = "Google Rest RootService"; in handleGoogleV1Get()
43 asyncResp->res.jsonValue["Name"] = "Google Service Root"; in handleGoogleV1Get()
44 asyncResp->res.jsonValue["Version"] = "1.0.0"; in handleGoogleV1Get()
45 asyncResp->res.jsonValue["RootOfTrustCollection"]["@odata.id"] = in handleGoogleV1Get()
53 asyncResp->res.jsonValue["@odata.id"] = "/google/v1/RootOfTrustCollection"; in handleRootOfTrustCollectionGet()
54 asyncResp->res.jsonValue["@odata.type"] = in handleRootOfTrustCollectionGet()
131 asyncResp->res.jsonValue["@odata.type"] = "#RootOfTrust.v1_0_0.RootOfTrust"; in populateRootOfTrustEntity()
132 asyncResp->res.jsonValue["@odata.id"] = boost::urls::format( in populateRootOfTrustEntity()
[all …]
/openbmc/bmcweb/redfish-core/src/
H A Derror_messages.cpp71 addMessageToJsonRoot(res.jsonValue, success()); in success()
89 addMessageToErrorJson(res.jsonValue, generalError()); in generalError()
107 addMessageToJsonRoot(res.jsonValue, created()); in created()
125 addMessageToErrorJson(res.jsonValue, noOperation()); in noOperation()
144 addMessageToJson(res.jsonValue, propertyDuplicate(arg1), arg1); in propertyDuplicate()
163 addMessageToErrorJson(res.jsonValue, propertyUnknown(arg1)); in propertyUnknown()
186 addMessageToJson(res.jsonValue, propertyValueTypeError(arg1, arg2), arg2); in propertyValueTypeError()
209 addMessageToJson(res.jsonValue, propertyValueFormatError(arg1, arg2), arg2); in propertyValueFormatError()
232 addMessageToJson(res.jsonValue, propertyValueNotInList(arg1, arg2), arg2); in propertyValueNotInList()
255 addMessageToErrorJson(res.jsonValue, propertyValueOutOfRange(arg1, arg2)); in propertyValueOutOfRange()
[all …]
/openbmc/bmcweb/test/redfish-core/lib/
H A Dchassis_test.cpp32 EXPECT_EQ(res.jsonValue["@odata.type"], "#ActionInfo.v1_1_2.ActionInfo"); in assertChassisResetActionInfoGet()
33 EXPECT_EQ(res.jsonValue["@odata.id"], in assertChassisResetActionInfoGet()
35 EXPECT_EQ(res.jsonValue["Name"], "Reset Action Info"); in assertChassisResetActionInfoGet()
37 EXPECT_EQ(res.jsonValue["Id"], "ResetActionInfo"); in assertChassisResetActionInfoGet()
49 EXPECT_EQ(res.jsonValue["Parameters"], parameters); in assertChassisResetActionInfoGet()
116 ASSERT_EQ("RackMount", response->res.jsonValue["ChassisType"]); in TEST()
125 ASSERT_EQ("StandAlone", response->res.jsonValue["ChassisType"]); in TEST()
138 ASSERT_EQ("RackMount", response->res.jsonValue["ChassisType"]); in TEST()
157 ASSERT_EQ("RackMount", response->res.jsonValue["ChassisType"]); in TEST()
/openbmc/bmcweb/test/redfish-core/include/utils/
H A Derror_code_test.cpp77 EXPECT_EQ(finalRes.jsonValue.find("error"), finalRes.jsonValue.end()); in TEST()
94 intermediate.jsonValue = root; in TEST()
101 EXPECT_EQ(final.jsonValue["error"]["code"].get<std::string>(), in TEST()
104 final.jsonValue["error"]["message"].get<std::string>(), in TEST()
106 EXPECT_EQ(intermediate.jsonValue, R"({})"_json); in TEST()
140 intermediate.jsonValue = error; in TEST()
145 EXPECT_EQ(final.jsonValue["error"][messages::messageAnnotation], in TEST()
152 EXPECT_EQ(final.jsonValue["error"]["code"].get<std::string>(), errorCode); in TEST()
153 EXPECT_EQ(final.jsonValue["error"]["message"].get<std::string>(), in TEST()
155 EXPECT_EQ(intermediate.jsonValue, R"({})"_json); in TEST()

1234