/openbmc/openbmc-test-automation/redfish/account_service/ |
H A D | test_user_account.robot | 2 Documentation Test Redfish user account. 11 Test Setup Redfish.Login 24 [Documentation] Verify Redfish account service is available. 27 ${resp} = Redfish_utils.Get Attribute /redfish/v1/AccountService ServiceEnabled 31 Verify Redfish Admin User Persistence After Reboot 32 [Documentation] Verify Redfish admin user persistence after reboot. 34 [Setup] Run Keywords Redfish.Login AND 35 ... Redfish Create User admin_user TestPwd123 Administrator ${True} 36 [Teardown] Run Keywords Redfish.Delete /redfish/v1/AccountService/Accounts/admin_user 40 Redfish OBMC Reboot (off) stack_mode=normal [all …]
|
H A D | test_ipmi_redfish_user.robot | 2 Documentation Test IPMI and Redfish combinations for user management. 27 Create Admin Redfish User And Verify Login Via IPMI 28 [Documentation] Create user using redfish and verify via IPMI. 37 Redfish.Post /redfish/v1/AccountService/Accounts body=&{payload} 46 Update User Password Via Redfish And Verify Using IPMI 47 [Documentation] Update user password via Redfish and verify using IPMI. 50 # Create user using Redfish. 57 Redfish.Post /redfish/v1/AccountService/Accounts body=&{payload} 60 # Update user password using Redfish. 62 Redfish.Patch /redfish/v1/AccountService/Accounts/${random_username} body=&{payload} [all …]
|
H A D | test_redfish_privilege_registry.robot | 2 Documentation Script to test Redfish privilege registry with various users 11 Suite Teardown Delete Created Redfish Users Except Default Admin 12 Test Teardown Redfish.Logout 31 Verify Redfish Privilege Registry Properties 32 [Documentation] Verify the Redfish Privilege Registry properties. 35 Redfish.Login 38 ${url}= Get Redfish Privilege Registry json URL 39 ${resp}= Redfish.Get ${url} 62 Verify Redfish Privilege Registry Mappings Properties For Account Service 66 # Below is the mapping for Redfish Privilege Registry property for [all …]
|
H A D | test_ldap_configuration.robot | 2 Documentation Test Redfish LDAP user configuration. 13 Test Teardown Run Keywords Redfish.Login AND FFDC On Test Case Fail 34 Redfish.Login ${LDAP_USER} ${LDAP_USER_PASSWORD} 35 Redfish.Logout 38 Verify Redfish LDAP Service Disable 43 Redfish.Patch ${REDFISH_BASE_URI}AccountService 46 ${resp}= Run Keyword And Return Status Redfish.Login ${LDAP_USER} 50 Redfish.Logout 51 Redfish.Login 53 Redfish.Patch ${REDFISH_BASE_URI}AccountService [all …]
|
/openbmc/libbej/test/json/ |
H A D | storage_large.json | 3 "@odata.context": "/redfish/v1/$metadata#Storage.Storage", 4 "@odata.id": "/redfish/v1/Systems/1/Storage/1", 15 "@odata.id": "/redfish/v1/Systems/1/Storage/1#/StorageControllers/0", 41 "@odata.id": "/redfish/v1/Systems/1/Storage/1/Drives/1" 44 "@odata.id": "/redfish/v1/Systems/1/Storage/1/Drives/2" 47 "@odata.id": "/redfish/v1/Systems/1/Storage/1/Drives/3" 50 "@odata.id": "/redfish/v1/Systems/1/Storage/1/Drives/4" 53 "@odata.id": "/redfish/v1/Systems/1/Storage/1/Drives/5" 56 "@odata.id": "/redfish/v1/Systems/1/Storage/1/Drives/6" 59 "@odata.id": "/redfish/v1/Systems/1/Storage/1/Drives/7" [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema-installed/ |
H A D | CertificateCollection.json | 2 "$id": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json", 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 10 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef" 15 …ce shall represent a resource collection of `Certificate` instances for a Redfish implementation.", 17 … "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 18 … "description": "This property shall specify a valid odata or Redfish property.", 32 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" 35 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" 38 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" 41 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" [all …]
|
H A D | PortCollection.json | 2 "$id": "http://redfish.dmtf.org/schemas/v1/PortCollection.json", 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 10 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef" 15 … resource shall represent a resource collection of `Port` instances for a Redfish implementation.", 17 … "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 18 … "description": "This property shall specify a valid odata or Redfish property.", 32 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" 35 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" 38 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" 41 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/json-schema/ |
H A D | CertificateCollection.json | 2 "$id": "http://redfish.dmtf.org/schemas/v1/CertificateCollection.json", 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 10 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef" 15 …ce shall represent a resource collection of `Certificate` instances for a Redfish implementation.", 17 … "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 18 … "description": "This property shall specify a valid odata or Redfish property.", 32 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" 35 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" 38 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" 41 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" [all …]
|
H A D | RouteEntryCollection.json | 2 "$id": "http://redfish.dmtf.org/schemas/v1/RouteEntryCollection.json", 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 10 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef" 15 …rce shall represent a resource collection of `RouteEntry` instances for a Redfish implementation.", 17 … "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 18 … "description": "This property shall specify a valid odata or Redfish property.", 32 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" 35 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" 38 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" 41 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" [all …]
|
H A D | PortCollection.json | 2 "$id": "http://redfish.dmtf.org/schemas/v1/PortCollection.json", 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 10 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef" 15 … resource shall represent a resource collection of `Port` instances for a Redfish implementation.", 17 … "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 18 … "description": "This property shall specify a valid odata or Redfish property.", 32 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" 35 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" 38 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" 41 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" [all …]
|
H A D | VCATEntryCollection.json | 2 "$id": "http://redfish.dmtf.org/schemas/v1/VCATEntryCollection.json", 4 "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json", 10 "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef" 15 …urce shall represent a resource collection of `VCATEntry` instances for a Redfish implementation.", 17 … "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": { 18 … "description": "This property shall specify a valid odata or Redfish property.", 32 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/context" 35 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/etag" 38 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/id" 41 … "$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/type" [all …]
|
/openbmc/openbmc-test-automation/redfish/service_root/ |
H A D | test_service_root.robot | 2 Documentation Test Redfish to verify responses for SessionService and Hypermedia. 15 Redfish Login And Logout 19 Redfish.Login 20 Redfish.Logout 23 GET Redfish Hypermedia Without Login 26 [Setup] Redfish.Logout 27 [Template] GET And Verify Redfish Response 30 ${HTTP_OK} /redfish 31 ${HTTP_OK} /redfish/v1 34 GET Redfish SessionService Without Login [all …]
|
H A D | test_sessions_management.robot | 3 Documentation Test Redfish SessionService. 57 # https://redfish.dmtf.org/schemas/v1/SessionService.v1_1_7.json 81 [Teardown] Redfish.Login 83 # Logout already created redfish session. 84 Redfish.Logout 85 Redfish.Login ${ADMIN}[0] ${ADMIN}[1] 86 ${systems}= Redfish.Get Properties /redfish/v1/Systems 88 Redfish.Logout 89 ${systems}= Redfish.Get /redfish/v1/Systems 97 ${session_service}= Redfish.Get Properties /redfish/v1/SessionService [all …]
|
/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( 33 f"{redfish.metric_definition_path}/NotExisting", [all …]
|
/openbmc/openbmc-test-automation/redfish/update_service/ |
H A D | test_firmware_inventory.robot | 2 Documentation Verify that Redfish software inventory can be collected. 17 Verify Redfish Update Service Enabled 22 # "HttpPushUri": "/redfish/v1/UpdateService", 27 ${resp}= Redfish.Get /redfish/v1/UpdateService 31 Verify Redfish Software Inventory Collection 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 59 Redfish Software Inventory Status Check [all …]
|
H A D | test_redfish_bmc_code_update.robot | 30 Suite Teardown Redfish.Logout 45 Redfish Code Update With ApplyTime OnReset 48 [Template] Redfish Update Firmware 54 Redfish Code Update With ApplyTime Immediate 57 [Template] Redfish Update Firmware 63 Redfish Code Update Same Firmware Multiple Times 74 Redfish Update Firmware apply_time=OnReset 79 Redfish Code Update With Multiple Firmware 82 [Template] Redfish Multiple Upload Image And Check Progress State 88 Post BMC Reset Perform Redfish Code Update [all …]
|
H A D | test_redfish_host_code_update.robot | 26 Suite Teardown Redfish.Logout 34 Redfish Host Code Update With ApplyTime OnReset 37 [Template] Redfish Update Firmware 43 Redfish Host Code Update With ApplyTime Immediate 46 [Template] Redfish Update Firmware 56 ${bios_version_before}= Redfish.Get Attribute /redfish/v1/Systems/${SYSTEM_ID}/ BiosVersion 57 Redfish Firmware Update And Do BMC Reboot 58 ${bios_version_after}= Redfish.Get Attribute /redfish/v1/Systems/${SYSTEM_ID}/ BiosVersion 68 Redfish.Login 69 Run Keyword And Ignore Error Redfish Delete All BMC Dumps [all …]
|
/openbmc/openbmc-test-automation/security/ |
H A D | test_bmc_expire_password.robot | 59 Redfish.Login 61 ${resp}= Redfish.Patch /redfish/v1/AccountService/Accounts/${OPENBMC_USERNAME} 68 Expire Root Password And Update Bad Password Length Via Redfish 69 [Documentation] Expire root password and update bad password via Redfish and expect an error. 76 Redfish.Login 78 ... Redfish.Patch /redfish/v1/AccountService/Accounts/${OPENBMC_USERNAME} 83 Expire And Change Root User Password Via Redfish And Verify 84 [Documentation] Expire and change root user password via Redfish and verify. 92 Verify User Password Expired Using Redfish ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} 94 Redfish.Patch /redfish/v1/AccountService/Accounts/${OPENBMC_USERNAME} [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/installed/ |
H A D | CertificateCollection_v1.xml | 4 <!--# Redfish Schema: CertificateCollection --> 7 <!--# available at http://www.dmtf.org/standards/redfish --> 20 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml"> 23 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml"> 24 <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/> 26 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Certificate_v1.xml"> 33 <Annotation Term="Redfish.OwningEntity" String="DMTF"/> 34 <Annotation Term="Redfish.Language" String="en"/> 38 …e shall represent a resource collection of `Certificate` instances for a Redfish implementation."/> 55 <Annotation Term="Redfish.Uris"> [all …]
|
/openbmc/bmcweb/redfish-core/schema/dmtf/csdl/ |
H A D | CertificateCollection_v1.xml | 4 <!--# Redfish Schema: CertificateCollection --> 7 <!--# available at http://www.dmtf.org/standards/redfish --> 20 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml"> 23 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml"> 24 <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/> 26 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Certificate_v1.xml"> 33 <Annotation Term="Redfish.OwningEntity" String="DMTF"/> 34 <Annotation Term="Redfish.Language" String="en"/> 38 …e shall represent a resource collection of `Certificate` instances for a Redfish implementation."/> 55 <Annotation Term="Redfish.Uris"> [all …]
|
H A D | RouteEntryCollection_v1.xml | 4 <!--# Redfish Schema: RouteEntryCollection --> 7 <!--# available at http://www.dmtf.org/standards/redfish --> 20 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/Resource_v1.xml"> 23 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RedfishExtensions_v1.xml"> 24 <edmx:Include Namespace="RedfishExtensions.v1_0_0" Alias="Redfish"/> 26 <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/RouteEntry_v1.xml"> 33 <Annotation Term="Redfish.OwningEntity" String="DMTF"/> 34 <Annotation Term="Redfish.Language" String="en"/> 38 …ce shall represent a resource collection of `RouteEntry` instances for a Redfish implementation."/> 54 <Annotation Term="Redfish.Uris"> [all …]
|
/openbmc/bmcweb/ |
H A D | Redfish.md | 1 # Redfish chapter 3 bmcweb provides an implementation of the [Redfish][1] API. This document details 4 the Redfish schemas supported by bmcweb. This document also discusses some of 8 ## Redfish Schema 10 The redfish implementation shall pass the 11 [Redfish Service Validator](https://github.com/DMTF/Redfish-Service-Validator "Validator") 14 The following redfish schemas and fields are targeted for OpenBMC. This is a 17 The latest Redfish schemas can be found 18 [here](https://redfish.dmtf.org/schemas/) 30 ### /redfish/v1/ [all …]
|
/openbmc/openbmc-test-automation/openpower/localuser/ |
H A D | test_ipmi_redfish_user.robot | 2 Documentation Test IPMI and Redfish combinations for user management. 25 Create IPMI User Without Any Privilege And Verify Via Redfish 27 ... via Redfish. 36 # Verify new user privilege level via Redfish. 38 ... /redfish/v1/AccountService/Accounts/${random_username} RoleId 42 Create Admin User Via Redfish And Verify Login Via IPMI 43 [Documentation] Create user via redfish and verify via IPMI. 52 Redfish.Post /redfish/v1/AccountService/Accounts body=&{payload} 58 Enable IPMI Access To User Using Redfish ${random_username} 60 # Update user password using Redfish. [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | bmc_redfish_utils.robot | 2 Documentation BMC and host redfish utility keywords. 10 Redfish Power Operation 11 [Documentation] Do Redfish host power operation. 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 52 ${resp}= Redfish.Post ${target} body=&{payload} 56 Redfish BMC Reset Operation [all …]
|
/openbmc/bmcweb/test/redfish-core/include/ |
H A D | redfish_aggregator_test.cpp | 19 namespace redfish namespace 26 EXPECT_TRUE(isPropertyUri("@Redfish.ActionInfo")); in TEST() 90 std::string initial("/redfish/v1/" + std::string(root) + "/"); in TEST() 125 std::string initial("/redfish/v1/" + std::string(root) + "/"); in TEST() 153 std::string initial("/redfish/v1/" + std::string(root)); in TEST() 163 parameter["Name"] = "/redfish/v1/Chassis/fakeName"; in TEST() 164 parameter["@odata.id"] = "/redfish/v1/Chassis/fakeChassis"; in TEST() 167 EXPECT_EQ(parameter["Name"], "/redfish/v1/Chassis/fakeName"); in TEST() 168 EXPECT_EQ(parameter["@odata.id"], "/redfish/v1/Chassis/abcd_fakeChassis"); in TEST() 178 "@odata.id": "/redfish/v1/Chassis/TestChassis" in TEST() [all …]
|