| /openbmc/telemetry/redfish-tests/ |
| H A D | test_telemetry.py | 7 def test_get_telemetry_service(redfish): argument 8 r = redfish.get(redfish.telemetry_service_path) 16 def test_get_metric_definition_collection(redfish): argument 17 r = redfish.get(redfish.metric_definition_path) 22 def test_verify_metric_definition_members_if_contains_metrics(redfish): argument 23 r = redfish.get(redfish.metric_definition_path) 26 metricDefinition = redfish.get(path) 31 def test_get_metric_definition_that_not_exist_expect_not_found(redfish): argument 32 redfish.get( 38 def test_get_metric_report_definition_collection(redfish): argument [all …]
|
| H A D | redfish_requests.py | 61 def __init__(self, redfish, metric_limit): argument 62 r = redfish.get(redfish.telemetry_service_path) 66 r = redfish.get(redfish.metric_definition_path) 69 metricDef = redfish.get(path) 75 def __init__(self, redfish): argument 76 self.redfish = redfish 79 r = self.redfish.get(self.redfish.metric_report_definition_path) 103 return self.redfish.post( 104 self.redfish.metric_report_definition_path, body, code 108 self.redfish.delete(f"{path}")
|
| /openbmc/bmcweb/test/ |
| H A D | meson.build | 28 'redfish-core/include/dbus_log_watcher_test.cpp', 29 'redfish-core/include/event_log_test.cpp', 30 'redfish-core/include/event_matches_filter_test.cpp', 31 'redfish-core/include/filter_expr_executor_test.cpp', 32 'redfish-core/include/filter_expr_parser_test.cpp', 33 'redfish-core/include/privileges_test.cpp', 34 'redfish-core/include/redfish_aggregator_test.cpp', 35 'redfish-core/include/redfish_oem_routing_test.cpp', 36 'redfish-core/include/redfish_test.cpp', 37 'redfish [all...] |
| /openbmc/bmcweb/docs/ |
| H A D | Redfish.md | 10 The redfish implementation shall pass the [Redfish Service Validator][2] with no 13 The following redfish schemas and fields are targeted for OpenBMC. This is a 28 ### /redfish/v1/ 53 ### /redfish/v1/AccountService/ 77 ### /redfish/v1/AccountService/MultiFactorAuth/ClientCertificate/Certificates 82 ### /redfish/v1/AccountService/MultiFactorAuth/ClientCertificate/Certificates/{Certificate} 102 ### /redfish/v1/AggregationService/ 110 ### /redfish/v1/AggregationService/AggregationSources 117 ### /redfish/v1/AggregationService/AggregationSources/{AggregationSourceId} 124 ### /redfish/v1/AccountService/Accounts/ [all …]
|
| /openbmc/bmcweb/redfish-core/src/ |
| H A D | resource_messages.cpp | 32 namespace redfish namespace 39 redfish::registries::ResourceEvent::Index name, in getLog() 43 if (index >= redfish::registries::ResourceEvent::registry.size()) in getLog() 47 return getLogFromRegistry(redfish::registries::ResourceEvent::header, in getLog() 48 redfish::registries::ResourceEvent::registry, in getLog() 61 return getLog(redfish::registries::ResourceEvent::Index::resourceCreated, in resourceCreated() 74 return getLog(redfish::registries::ResourceEvent::Index::resourceRemoved, in resourceRemoved() 89 redfish::registries::ResourceEvent::Index::resourceErrorsDetected, in resourceErrorsDetected() 104 redfish::registries::ResourceEvent::Index::resourceErrorsCorrected, in resourceErrorsCorrected() 119 return getLog(redfish::registries::ResourceEvent::Index:: in resourceErrorThresholdExceeded() [all …]
|
| H A D | update_messages.cpp | 32 namespace redfish namespace 38 static nlohmann::json::object_t getLog(redfish::registries::Update::Index name, in getLog() 42 if (index >= redfish::registries::Update::registry.size()) in getLog() 46 return getLogFromRegistry(redfish::registries::Update::header, in getLog() 47 redfish::registries::Update::registry, index, in getLog() 61 return getLog(redfish::registries::Update::Index::targetDetermined, in targetDetermined() 74 return getLog(redfish::registries::Update::Index::allTargetsDetermined, {}); in allTargetsDetermined() 86 return getLog(redfish::registries::Update::Index::noTargetsDetermined, in noTargetsDetermined() 99 return getLog(redfish::registries::Update::Index::updateInProgress, {}); in updateInProgress() 112 return getLog(redfish::registries::Update::Index::transferringToComponent, in transferringToComponent() [all …]
|
| H A D | task_messages.cpp | 32 namespace redfish namespace 39 redfish::registries::TaskEvent::Index name, in getLog() 43 if (index >= redfish::registries::TaskEvent::registry.size()) in getLog() 47 return getLogFromRegistry(redfish::registries::TaskEvent::header, in getLog() 48 redfish::registries::TaskEvent::registry, index, in getLog() 61 return getLog(redfish::registries::TaskEvent::Index::taskStarted, in taskStarted() 74 return getLog(redfish::registries::TaskEvent::Index::taskCompletedOK, in taskCompletedOK() 87 return getLog(redfish::registries::TaskEvent::Index::taskCompletedWarning, in taskCompletedWarning() 100 return getLog(redfish::registries::TaskEvent::Index::taskAborted, in taskAborted() 113 return getLog(redfish::registries::TaskEvent::Index::taskCancelled, in taskCancelled() [all …]
|
| H A D | heartbeat_messages.cpp | 32 namespace redfish namespace 39 redfish::registries::HeartbeatEvent::Index name, in getLog() 43 if (index >= redfish::registries::HeartbeatEvent::registry.size()) in getLog() 47 return getLogFromRegistry(redfish::registries::HeartbeatEvent::header, in getLog() 48 redfish::registries::HeartbeatEvent::registry, in getLog() 62 redfish::registries::HeartbeatEvent::Index::redfishServiceFunctional, in redfishServiceFunctional()
|
| H A D | error_messages.cpp | 39 namespace redfish namespace 45 static nlohmann::json::object_t getLog(redfish::registries::Base::Index name, in getLog() 49 if (index >= redfish::registries::Base::registry.size()) in getLog() 53 return getLogFromRegistry(redfish::registries::Base::header, in getLog() 54 redfish::registries::Base::registry, index, args); in getLog() 66 return getLog(redfish::registries::Base::Index::success, {}); in success() 83 return getLog(redfish::registries::Base::Index::generalError, {}); in generalError() 101 return getLog(redfish::registries::Base::Index::created, {}); in created() 119 return getLog(redfish::registries::Base::Index::noOperation, {}); in noOperation() 137 return getLog(redfish::registries::Base::Index::propertyDuplicate, in propertyDuplicate() [all …]
|
| /openbmc/bmcweb/ |
| H A D | .codespell-ignore | 1 # Upstream redfish uses the British version of Cancelled, instead of Caneled 2 redfish-core/include/registries/task_event_message_registry.hpp 3 redfish-core/include/generated/enums/task.hpp 4 redfish-core/include/generated/enums/job.hpp 5 redfish-core/lib/task.hpp 6 redfish-core/lib/log_services.hpp 9 redfish-core/include/generated/enums/drive.hpp 12 redfish-core/include/registries/base_message_registry.hpp
|
| H A D | meson.options | 55 'redfish', 58 description: '''Enable Redfish APIs. Paths are under /redfish/v1/. See 59 https://github.com/openbmc/bmcweb/blob/master/DEVELOPING.md#redfish.''', 82 'redfish-bmc-journal', 86 /redfish/v1/Managers/bmc/LogServices/Journal.''', 91 'redfish-cpu-log', 95 are under /redfish/v1/Systems/system/LogServices/Crashdump'.''', 100 'redfish-dump-log', 104 are under /redfish/v1/Systems/system/LogServices/Dump 105 and /redfish/v1/Managers/bmc/LogServices/Dump''', [all …]
|
| /openbmc/openbmc/meta-facebook/recipes-phosphor/interfaces/ |
| H A D | bmcweb_%.bbappend | 2 -Dexperimental-redfish-dbus-log-subscription=enabled \ 7 -Dexperimental-redfish-multi-computer-system=enabled \ 11 insecure-redfish-expand \ 12 redfish-dbus-log \ 13 redfish-dump-log \ 14 redfish-eventlog-managers \ 18 redfish-oem-manager-fan-data \
|
| /openbmc/bmcweb/test/redfish-core/include/ |
| H A D | registries_test.cpp | 10 namespace redfish::registries namespace 28 const redfish::registries::Message* msg = in TEST() 29 redfish::registries::getMessageFromRegistry( in TEST() 30 "Non-Existent", redfish::registries::Openbmc::registry); in TEST() 33 const redfish::registries::Message* msg1 = in TEST() 34 redfish::registries::getMessageFromRegistry( in TEST() 35 "ServiceStarted", redfish::registries::Openbmc::registry); in TEST() 49 const redfish::registries::Message* msg = in TEST() 50 redfish::registries::getMessage("OpenBMC.1.0.Non_Existent_Message"); in TEST() 53 msg = redfish::registries::getMessage("OpenBMC.1.0.ServiceStarted"); in TEST()
|
| /openbmc/bmcweb/config/ |
| H A D | meson.build | 9 'experimental-redfish-dbus-log-subscription', 10 'experimental-redfish-multi-computer-system', 20 'insecure-enable-redfish-query', 25 'redfish', 26 'redfish-aggregation', 27 'redfish-allow-deprecated-indicatorled', 28 'redfish-allow-deprecated-power-thermal', 29 'redfish-allow-rotational-fans', 30 'redfish-allow-simple-update', 31 'redfish-bmc-journal', [all …]
|
| /openbmc/openbmc-test-automation/redfish/service_root/ |
| H A D | test_service_root.robot | 29 ${HTTP_OK} /redfish 30 ${HTTP_OK} /redfish/v1 34 [Documentation] Get /redfish/v1/SessionService without login 38 Redfish.Get /redfish/v1/SessionService 49 ${HTTP_OK} /redfish/v1/SessionService 50 ${HTTP_OK} /redfish/v1/AccountService 51 ${HTTP_OK} /redfish/v1/Systems/${SYSTEM_ID} 52 ${HTTP_OK} /redfish/v1/Chassis/${CHASSIS_ID} 53 ${HTTP_OK} /redfish/v1/Managers/${MANAGER_ID} 54 ${HTTP_OK} /redfish/v1/UpdateService [all …]
|
| H A D | test_sessions_management.robot | 60 # https://redfish.dmtf.org/schemas/v1/SessionService.v1_1_7.json 88 # Logout already created redfish session. 91 ${systems}= Redfish.Get Properties /redfish/v1/Systems 94 ${systems}= Redfish.Get /redfish/v1/Systems 102 ${session_service}= Redfish.Get Properties /redfish/v1/SessionService 105 …Valid Value session_service['@odata.id'] ['/redfish/v1/SessionService/', '/redfish/v1/SessionSer… 111 Valid Value session_service['Sessions']['@odata.id'] ['/redfish/v1/SessionService/Sessions'] 118 ${sessions}= Redfish.Get Properties /redfish/v1/SessionService/Sessions 122 …Valid Value sessions['@odata.id'] ['/redfish/v1/SessionService/Sessions/', '/redfish/v1/SessionS… 134 … ${session_properties}= Redfish.Get Properties /redfish/v1/SessionService/Sessions/${session_id} [all …]
|
| /openbmc/openbmc/meta-phosphor/recipes-phosphor/interfaces/ |
| H A D | bmcweb_git.bb | 36 redfish-bmc-journal \ 37 redfish-oem-manager-fan-data \ 42 PACKAGECONFIG[insecure-redfish-expand] = "-Dinsecure-enable-redfish-query=enabled" 45 PACKAGECONFIG[redfish-allow-deprecated-power-thermal] = "-Dredfish-allow-deprecated-power-thermal=e… 46 PACKAGECONFIG[redfish-bmc-journal] = "-Dredfish-bmc-journal=enabled,-Dredfish-bmc-journal=disabled" 47 PACKAGECONFIG[redfish-cpu-log] = "-Dredfish-cpu-log=enabled,-Dredfish-cpu-log=disabled" 48 PACKAGECONFIG[redfish-dbus-log] = "-Dredfish-dbus-log=enabled,-Dredfish-dbus-log=disabled" 49 PACKAGECONFIG[redfish-dump-log] = "-Dredfish-dump-log=enabled,-Dredfish-dump-log=disabled" 50 PACKAGECONFIG[redfish-eventlog-managers] = "-Dredfish-eventlog-location=managers,-Dredfish-eventlog… 51 PACKAGECONFIG[redfish-host-logger] = "-Dredfish-host-logger=enabled,-Dredfish-host-logger=disabled" [all …]
|
| H A D | redfish-schema-pack_2024.4.bb | 15 cat > ${WORKDIR}/redfish-schema-pack.pc <<EOF 17 schema_dir = ${DOLLAR}{prefix}/share/redfish-schema-pack 19 Name: redfish-schema-pack 26 install -d ${D}${datadir}/redfish-schema-pack/ 30 install -d ${D}${datadir}/redfish-schema-pack/$PATHSEG 32 ${D}${datadir}/redfish-schema-pack/$PATHSEG 36 install -m 0644 ${WORKDIR}/redfish-schema-pack.pc ${D}${libdir}/pkgconfig/
|
| /openbmc/bmcweb/test/redfish-core/include/utils/ |
| H A D | json_utils_test.cpp | 23 namespace redfish::json_util namespace 448 EXPECT_EQ(0, odataObjectCmp(R"({"@odata.id": "/redfish/v1/1"})"_json, in TEST() 449 R"({"@odata.id": "/redfish/v1/1"})"_json)); in TEST() 456 EXPECT_GT(0, odataObjectCmp(R"({"@odata.id": "/redfish/v1"})"_json, in TEST() 457 R"({"@odata.id": "/redfish/v1/1"})"_json)); in TEST() 458 EXPECT_LT(0, odataObjectCmp(R"({"@odata.id": "/redfish/v1/1"})"_json, in TEST() 459 R"({"@odata.id": "/redfish/v1"})"_json)); in TEST() 478 array.push_back(R"({"@odata.id" : "/redfish/v1/100"})"_json); in TEST() 479 array.push_back(R"({"@odata.id" : "/redfish/v1/1"})"_json); in TEST() 480 array.push_back(R"({"@odata.id" : "/redfish/v1/20"})"_json); in TEST() [all …]
|
| /openbmc/docs/ |
| H A D | REDFISH-cheatsheet.md | 14 curl -k https://${bmc}/redfish/v1 25 curl --insecure -H "Content-Type: application/json" -X POST -D headers.txt https://${bmc}/redfish/v… 40 curl -k -H "X-Auth-Token: $token" https://${bmc}/redfish/v1/... 50 curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis 51 curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Managers 52 curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Systems 60 curl -k -H "X-Auth-Token: $token" https://${bmc}/redfish/v1/SessionService/Sessions 70 …oken: $token" -H "Content-Type: application/json" -X POST https://${bmc}/redfish/v1/Systems/system… 76 …oken: $token" -H "Content-Type: application/json" -X POST https://${bmc}/redfish/v1/Systems/system… 82 …oken: $token" -H "Content-Type: application/json" -X POST https://${bmc}/redfish/v1/Systems/system… [all …]
|
| /openbmc/bmcweb/redfish-core/lib/ |
| H A D | manager_logservices_dbus_eventlog.hpp | 27 namespace redfish namespace 35 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleManagersDBusEventLogEntryCollection() 53 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleManagersDBusEventLogEntryGet() 73 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleManagersDBusEventLogEntryPatch() 91 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleManagersDBusEventLogEntryDelete() 109 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleManagersDBusLogServiceActionsClear() 132 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleManagersDBusEventLogEntryDownload() 154 .privileges(redfish::privileges::getLogEntryCollection) in requestRoutesManagersDBusEventLog() 159 .privileges(redfish::privileges::getLogEntry) in requestRoutesManagersDBusEventLog() 165 .privileges(redfish::privileges::patchLogEntry) in requestRoutesManagersDBusEventLog() [all …]
|
| H A D | systems_logservices_dbus_eventlog.hpp | 28 namespace redfish namespace 36 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSystemsDBusEventLogEntryCollection() 62 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSystemsDBusEventLogEntryGet() 90 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSystemsDBusEventLogEntryPatch() 116 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSystemsDBusEventLogEntryDelete() 142 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSystemsDBusLogServiceActionsClear() 168 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSystemsDBusEventLogEntryDownloadGet() 199 .privileges(redfish::privileges::getLogEntryCollection) in requestRoutesSystemsDBusEventLog() 205 .privileges(redfish::privileges::getLogEntry) in requestRoutesSystemsDBusEventLog() 211 .privileges(redfish::privileges::patchLogEntry) in requestRoutesSystemsDBusEventLog() [all …]
|
| /openbmc/openbmc-test-automation/oem/ieisystem/ |
| H A D | test_sensor_monitoring.robot | 23 [Documentation] Verify the redfish sensor monitoring according to the BMC 31 ${resp}= Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID} 35 ... /redfish/v1/Chassis/${CHASSIS_ID}/DiscreteSensors 37 ... /redfish/v1/Chassis/${CHASSIS_ID}/ThresholdSensors 39 ... /redfish/v1/Chassis/${CHASSIS_ID}/Thermal 41 ... /redfish/v1/Chassis/${CHASSIS_ID}/Power 43 # Check sensors in /redfish/v1/Chassis/{ChassisId}/Power 44 ${resp}= Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID}/Power 51 # Check sensors in /redfish/v1/Chassis/{ChassisId}/Thermal 52 ${resp}= Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID}/Thermal [all …]
|
| /openbmc/openbmc-test-automation/redfish/systems/ |
| H A D | test_sensor_monitoring.robot | 23 [Documentation] Verify the redfish sensor monitoring according to the BMC 31 ${resp}= Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID} 35 ... /redfish/v1/Chassis/${CHASSIS_ID}/Sensors 37 ... /redfish/v1/Chassis/${CHASSIS_ID}/Thermal 39 ... /redfish/v1/Chassis/${CHASSIS_ID}/Power 41 # Check sensors in /redfish/v1/Chassis/{ChassisId}/Power 42 ${resp}= Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID}/Power 49 # Check sensors in /redfish/v1/Chassis/{ChassisId}/Thermal 50 ${resp}= Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID}/Thermal 62 # /redfish/v1/Chassis/{ChassisId}/Sensors/{Sensor Name} [all …]
|
| /openbmc/openbmc-test-automation/redfish/update_service/ |
| H A D | test_firmware_inventory.robot | 22 # "HttpPushUri": "/redfish/v1/UpdateService", 27 ${resp}= Redfish.Get /redfish/v1/UpdateService 40 # "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/a3522998" 43 # "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/a7c79f71" 46 # "@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/ace821ef" 53 ${resp}= Redfish.Get /redfish/v1/UpdateService/FirmwareInventory 63 ${resp}= Redfish.Get /redfish/v1/UpdateService/FirmwareInventory 66 # {'@odata.id': '/redfish/v1/UpdateService/FirmwareInventory/a3522998'} 67 # {'@odata.id': '/redfish/v1/UpdateService/FirmwareInventory/a7c79f71'} 68 # {'@odata.id': '/redfish/v1/UpdateService/FirmwareInventory/ace821ef'} [all …]
|