1*** Settings ***
2Documentation    Test RAS sanity scenarios.
3
4Resource        ../../lib/bmc_redfish_resource.robot
5Resource        ../../lib/openbmc_ffdc.robot
6Variables       ../../lib/ras/variables.py
7
8Suite Setup      Suite Setup Execution
9Test Setup       Printn
10Test Teardown    FFDC On Test Case Fail
11Suite Teardown   Suite Setup Teardown
12
13*** Variables ***
14${proc_chip_id}    0
15
16# mention count to read system memory.
17${count}           128
18
19*** Test Cases ***
20
21Test BMC Getscom
22    [Documentation]  Do getscom operation.
23    [Tags]  Test_BMC_Getscom
24    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  MCACALIFIR_RECV1
25    Pdbg  -p${proc_chip_id} getscom 0x${value[0]}
26
27Test BMC Getcfam
28    [Documentation]  Do getcfam operation.
29    [Tags]  Test_BMC_Getcfam
30    Pdbg  -p${proc_chip_id} getcfam 0x${cfam_address}
31
32Test BMC Getmem
33    [Documentation]  Do getmem operation.
34    [Tags]  Test_BMC_Getmem
35    Pdbg  -p${proc_chip_id} getmem 0x${mem_address} ${count}
36
37*** Keywords ***
38
39Suite Setup Execution
40    [Documentation]  Do the suite setup.
41
42     Redfish.Login
43     Redfish Power On
44
45
46Suite Setup Teardown
47    [Documentation]  Do the suite setup.
48
49     Redfish.Logout
50