/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/ |
H A D | Redfish.md | 10 The redfish implementation shall pass the 14 The following redfish schemas and fields are targeted for OpenBMC. This is a 18 [here](https://redfish.dmtf.org/schemas/) 30 ### /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} [all …]
|
H A D | meson.build | 63 'redfish-core/include', 64 'redfish-core/lib', 347 subdir('redfish-core') 359 'redfish-core/src/dbus_log_watcher.cpp', 360 'redfish-core/src/error_messages.cpp', 361 'redfish-core/src/error_message_utils.cpp', 362 'redfish-core/src/event_log.cpp', 363 'redfish-core/src/filesystem_log_watcher.cpp', 364 'redfish-core/src/filter_expr_executor.cpp', 365 'redfish-core/src/filter_expr_printer.cpp', [all …]
|
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 | 29 'redfish-use-3-digit-messageid', 66 'redfish', 69 description: '''Enable Redfish APIs. Paths are under /redfish/v1/. See 70 https://github.com/openbmc/bmcweb/blob/master/DEVELOPING.md#redfish.''', 93 'redfish-bmc-journal', 97 /redfish/v1/Managers/bmc/LogServices/Journal.''', 102 'redfish-cpu-log', 106 are under /redfish/v1/Systems/system/LogServices/Crashdump'.''', 111 'redfish-dump-log', 115 are under /redfish/v1/Systems/system/LogServices/Dump [all …]
|
/openbmc/bmcweb/redfish-core/src/ |
H A D | resource_messages.cpp | 28 namespace redfish namespace 34 static nlohmann::json getLog(redfish::registries::resource_event::Index name, in getLog() 38 if (index >= redfish::registries::resource_event::registry.size()) in getLog() 42 return getLogFromRegistry(redfish::registries::resource_event::header, in getLog() 43 redfish::registries::resource_event::registry, in getLog() 56 return getLog(redfish::registries::resource_event::Index::resourceCreated, in resourceCreated() 69 return getLog(redfish::registries::resource_event::Index::resourceRemoved, in resourceRemoved() 84 redfish::registries::resource_event::Index::resourceErrorsDetected, in resourceErrorsDetected() 99 redfish::registries::resource_event::Index::resourceErrorsCorrected, in resourceErrorsCorrected() 113 return getLog(redfish::registries::resource_event::Index:: in resourceErrorThresholdExceeded() [all …]
|
H A D | task_messages.cpp | 30 namespace redfish namespace 36 static nlohmann::json getLog(redfish::registries::task_event::Index name, in getLog() 40 if (index >= redfish::registries::task_event::registry.size()) in getLog() 44 return getLogFromRegistry(redfish::registries::task_event::header, in getLog() 45 redfish::registries::task_event::registry, index, in getLog() 58 return getLog(redfish::registries::task_event::Index::taskStarted, in taskStarted() 71 return getLog(redfish::registries::task_event::Index::taskCompletedOK, in taskCompletedOK() 84 return getLog(redfish::registries::task_event::Index::taskCompletedWarning, in taskCompletedWarning() 97 return getLog(redfish::registries::task_event::Index::taskAborted, in taskAborted() 110 return getLog(redfish::registries::task_event::Index::taskCancelled, in taskCancelled() [all …]
|
H A D | error_messages.cpp | 37 namespace redfish namespace 43 static nlohmann::json getLog(redfish::registries::base::Index name, in getLog() 47 if (index >= redfish::registries::base::registry.size()) in getLog() 51 return getLogFromRegistry(redfish::registries::base::header, in getLog() 52 redfish::registries::base::registry, index, args); in getLog() 64 return getLog(redfish::registries::base::Index::success, {}); in success() 81 return getLog(redfish::registries::base::Index::generalError, {}); in generalError() 99 return getLog(redfish::registries::base::Index::created, {}); in created() 117 return getLog(redfish::registries::base::Index::noOperation, {}); in noOperation() 135 return getLog(redfish::registries::base::Index::propertyDuplicate, in propertyDuplicate() [all …]
|
H A D | heartbeat_messages.cpp | 28 namespace redfish namespace 34 static nlohmann::json getLog(redfish::registries::heartbeat_event::Index name, in getLog() 38 if (index >= redfish::registries::heartbeat_event::registry.size()) in getLog() 42 return getLogFromRegistry(redfish::registries::heartbeat_event::header, in getLog() 43 redfish::registries::heartbeat_event::registry, in getLog() 57 redfish::registries::heartbeat_event::Index::redfishServiceFunctional, in redfishServiceFunctional()
|
/openbmc/bmcweb/config/ |
H A D | meson.build | 9 'experimental-redfish-multi-computer-system', 10 'experimental-redfish-dbus-log-subscription', 18 'insecure-enable-redfish-query', 24 'redfish-aggregation', 25 'redfish-allow-deprecated-power-thermal', 26 'redfish-allow-simple-update', 27 'redfish-use-3-digit-messageid', 28 'redfish-bmc-journal', 29 'redfish-cpu-log', 30 'redfish-dbus-log', [all …]
|
/openbmc/bmcweb/test/redfish-core/include/ |
H A D | registries_test.cpp | 8 namespace redfish::registries namespace 26 const redfish::registries::Message* msg = in TEST() 27 redfish::registries::getMessageFromRegistry( in TEST() 28 "Non-Existent", redfish::registries::openbmc::registry); in TEST() 31 const redfish::registries::Message* msg1 = in TEST() 32 redfish::registries::getMessageFromRegistry( in TEST() 33 "ServiceStarted", redfish::registries::openbmc::registry); in TEST() 47 const redfish::registries::Message* msg = in TEST() 48 redfish::registries::getMessage("OpenBMC.1.0.Non_Existent_Message"); in TEST() 51 msg = redfish::registries::getMessage("OpenBMC.1.0.ServiceStarted"); in TEST()
|
/openbmc/openbmc-test-automation/redfish/service_root/ |
H A D | test_service_root.robot | 30 ${HTTP_OK} /redfish 31 ${HTTP_OK} /redfish/v1 35 [Documentation] Get /redfish/v1/SessionService without login 39 ${resp}= Redfish.Get /redfish/v1/SessionService 50 ${HTTP_OK} /redfish/v1/SessionService 51 ${HTTP_OK} /redfish/v1/AccountService 52 ${HTTP_OK} /redfish/v1/Systems/${SYSTEM_ID} 53 ${HTTP_OK} /redfish/v1/Chassis/${CHASSIS_ID} 54 ${HTTP_OK} /redfish/v1/Managers/${MANAGER_ID} 55 ${HTTP_OK} /redfish/v1/UpdateService [all …]
|
H A D | test_sessions_management.robot | 57 # https://redfish.dmtf.org/schemas/v1/SessionService.v1_1_7.json 83 # Logout already created redfish session. 86 ${systems}= Redfish.Get Properties /redfish/v1/Systems 89 ${systems}= Redfish.Get /redfish/v1/Systems 97 ${session_service}= Redfish.Get Properties /redfish/v1/SessionService 100 Valid Value session_service['@odata.id'] ['/redfish/v1/SessionService/'] 106 Valid Value session_service['Sessions']['@odata.id'] ['/redfish/v1/SessionService/Sessions'] 113 ${sessions}= Redfish.Get Properties /redfish/v1/SessionService/Sessions 117 Valid Value sessions['@odata.id'] ['/redfish/v1/SessionService/Sessions/'] 129 … ${session_properties}= Redfish.Get Properties /redfish/v1/SessionService/Sessions/${session_id} [all …]
|
/openbmc/bmcweb/test/redfish-core/include/utils/ |
H A D | json_utils_test.cpp | 22 namespace redfish::json_util namespace 428 EXPECT_EQ(0, odataObjectCmp(R"({"@odata.id": "/redfish/v1/1"})"_json, in TEST() 429 R"({"@odata.id": "/redfish/v1/1"})"_json)); in TEST() 436 EXPECT_GT(0, odataObjectCmp(R"({"@odata.id": "/redfish/v1"})"_json, in TEST() 437 R"({"@odata.id": "/redfish/v1/1"})"_json)); in TEST() 438 EXPECT_LT(0, odataObjectCmp(R"({"@odata.id": "/redfish/v1/1"})"_json, in TEST() 439 R"({"@odata.id": "/redfish/v1"})"_json)); in TEST() 458 …R"([{"@odata.id" : "/redfish/v1/100"}, {"@odata.id": "/redfish/v1/1"}, {"@odata.id" : "/redfish/v1… in TEST() 463 ElementsAre(R"({"@odata.id": "/redfish/v1/1"})"_json, in TEST() 464 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/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 …]
|
/openbmc/openbmc-test-automation/redfish/systems/ |
H A D | test_sensor_monitoring.robot | 21 [Documentation] Verify the redfish sensor monitoring according to the BMC 29 ${resp}= Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID} 33 ... /redfish/v1/Chassis/${CHASSIS_ID}/Sensors 35 ... /redfish/v1/Chassis/${CHASSIS_ID}/Thermal 37 ... /redfish/v1/Chassis/${CHASSIS_ID}/Power 39 # Check sensors in /redfish/v1/Chassis/{ChassisId}/Power 40 ${resp}= Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID}/Power 47 # Check sensors in /redfish/v1/Chassis/{ChassisId}/Thermal 48 ${resp}= Redfish.Get /redfish/v1/Chassis/${CHASSIS_ID}/Thermal 60 # /redfish/v1/Chassis/{ChassisId}/Sensors/{Sensor Name} [all …]
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | redfish_sessions.hpp | 21 namespace redfish namespace 30 roles.emplace_back(redfish::getRoleIdFromPrivilege(session.userRole)); in fillSessionObject() 49 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSessionHead() 63 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSessionGet() 89 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSessionDelete() 111 redfish::getUserPrivileges(*req.session); in handleSessionDelete() 149 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSessionCollectionHead() 162 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSessionCollectionGet() 185 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSessionCollectionMembersGet() 229 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleSessionCollectionPost() [all …]
|
H A D | aggregation_service.hpp | 19 namespace redfish namespace 26 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleAggregationServiceHead() 39 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleAggregationServiceGet() 60 .privileges(redfish::privileges::headAggregationService) in requestRoutesAggregationService() 64 .privileges(redfish::privileges::getAggregationService) in requestRoutesAggregationService() 96 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleAggregationSourceCollectionGet() 118 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleAggregationSourceCollectionHead() 130 .privileges(redfish::privileges::getAggregationSourceCollection) in requestRoutesAggregationSourceCollection() 135 .privileges(redfish::privileges::getAggregationSourceCollection) in requestRoutesAggregationSourceCollection() 190 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleAggregationSourceGet() [all …]
|
H A D | environment_metrics.hpp | 16 namespace redfish namespace 24 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleEnvironmentMetricsHead() 42 redfish::chassis_utils::getValidChassisPath(asyncResp, chassisId, in handleEnvironmentMetricsHead() 51 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handleEnvironmentMetricsGet() 75 redfish::chassis_utils::getValidChassisPath(asyncResp, chassisId, in handleEnvironmentMetricsGet() 82 .privileges(redfish::privileges::headEnvironmentMetrics) in requestRoutesEnvironmentMetrics() 87 .privileges(redfish::privileges::getEnvironmentMetrics) in requestRoutesEnvironmentMetrics()
|
H A D | power_subsystem.hpp | 18 namespace redfish namespace 53 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handlePowerSubsystemCollectionHead() 69 redfish::chassis_utils::getValidChassisPath(asyncResp, chassisId, in handlePowerSubsystemCollectionHead() 78 if (!redfish::setUpRedfishRoute(app, req, asyncResp)) in handlePowerSubsystemCollectionGet() 83 redfish::chassis_utils::getValidChassisPath( in handlePowerSubsystemCollectionGet() 91 .privileges(redfish::privileges::headPowerSubsystem) in requestRoutesPowerSubsystem() 96 .privileges(redfish::privileges::getPowerSubsystem) in requestRoutesPowerSubsystem()
|
/openbmc/openbmc-tools/rootfs_size/ |
H A D | results.txt | 21 360448: /usr/share/www/redfish 22 360448: /usr/share/www/redfish/v1 43 192512: /usr/share/www/redfish/v1/schema 57 159744: /usr/share/www/redfish/v1/JsonSchemas 263 12288: /usr/share/www/redfish/v1/schema/ComputerSystem_v1.xml 317 8192: /usr/share/www/redfish/v1/schema/Resource_v1.xml 318 8192: /usr/share/www/redfish/v1/schema/Memory_v1.xml 319 8192: /usr/share/www/redfish/v1/JsonSchemas/ComputerSystem 320 8192: /usr/share/www/redfish/v1/JsonSchemas/ComputerSystem/ComputerSystem.json 410 4096: /usr/share/www/redfish/v1/Registries [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | bmc_redfish_utils.robot | 2 Documentation BMC and host redfish utility keywords. 21 # "@Redfish.ActionInfo": "/redfish/v1/Systems/${SYSTEM_ID}/ResetActionInfo", 22 # "target": "/redfish/v1/Systems/${SYSTEM_ID}/Actions/ComputerSystem.Reset" 25 # Parameters allowable values /redfish/v1/Systems/${SYSTEM_ID}/ResetActionInfo 27 # "@odata.id": "/redfish/v1/Systems/${SYSTEM_ID}/ResetActionInfo", 50 ... redfish_utils.Get Target Actions /redfish/v1/Systems/${SYSTEM_ID}/ ComputerSystem.Reset 63 # "@Redfish.ActionInfo": "/redfish/v1/Managers/${MANAGER_ID}/ResetActionInfo", 64 # "target": "/redfish/v1/Managers/${MANAGER_ID}/Actions/Manager.Reset" 70 # "target": "/redfish/v1/Managers/${MANAGER_ID}/Actions/Manager.ResetToDefaults" 74 # Parameters allowable values /redfish/v1/Managers/${MANAGER_ID}/ResetActionInfo [all …]
|
/openbmc/openbmc-test-automation/redfish/account_service/ |
H A D | test_user_account.robot | 27 ${resp} = Redfish_utils.Get Attribute /redfish/v1/AccountService ServiceEnabled 36 [Teardown] Run Keywords Redfish.Delete /redfish/v1/AccountService/Accounts/admin_user 51 [Teardown] Run Keywords Redfish.Delete /redfish/v1/AccountService/Accounts/operator_user 66 [Teardown] Run Keywords Redfish.Delete /redfish/v1/AccountService/Accounts/readonly_user 189 Redfish.Delete /redfish/v1/AccountService/Accounts/test_user 195 Redfish.Post /redfish/v1/AccountService/Accounts/ body=&{payload} 207 Redfish.Post /redfish/v1/AccountService/Accounts/ body=&{payload} 210 Redfish.Delete /redfish/v1/AccountService/Accounts/test_user 222 Redfish.Delete /redfish/v1/AccountService/Accounts/newadmin_user 227 Redfish.Patch /redfish/v1/AccountService/Accounts/admin_user body=&{payload} [all …]
|