openbmc / openbmc-test-automation

Apache License 2.0
100 stars 92 forks source link

Test suite gets executed without creating redfish session #2204

Closed susilsi7 closed 1 year ago

susilsi7 commented 1 year ago

Without creating session , test suite able to get executed.

*** Settings ***

Documentation           Test session.

Resource                ../../lib/resource.robot
Resource                ../../lib/openbmc_ffdc.robot
Resource                ../../lib/bmc_redfish_utils.robot
Resource                ../../lib/rest_response_code.robot
Library                 JSONLibrary

*** Test Cases ***

Test Session
    [Documentation]  Test session.
    [Tags]  Test_Session

    ${resp}=  Redfish.Get  /redfish/v1/SessionService/Sessions
    Log  ${resp}
gkeishin commented 1 year ago

By default if the test imports redfish lib/bmc_redfish_resource.robot the code automatically pre-checks the connection and setup one valid redfish login. So this is expected by the test design we currently have.


Library         bmc_redfish.py  https://${OPENBMC_HOST}:${HTTPS_PORT}  ${OPENBMC_USERNAME}
...             ${OPENBMC_PASSWORD}  WITH NAME  Redfish