Robotframework request package upgrade changes
Current working package version
robotframework-requests 0.7.2
To Test:
pip3 install robotframework-requests -U
or
# Once this commit is merged.
pip3 install -r requirements.txt
Version latest:
robotframework-requests 0.9.3
Refer Documentation:
https://marketsquare.github.io/robotframework-requests/doc/RequestsLibrary.html
What is not changed:
- The test cases under directory tests/ is not modified and is
deprecated but you can continue using it with older package
and configuration using
git clone -b v3.0-stable https://github.com/openbmc/openbmc-test-automation
Tested:
Upstream HW_CI test list, firmware code update and few other
test suite like ipmi, certificate, dumps, ffdc and redfish
test suites.
Note: I have not tested end to end, so it is likely there could be
grey areas where it could fail but should be minor w.r.t
response data format.
Resolves: openbmc/openbmc-test-automation#2105
Change-Id: Ie03b25ff88948bcccb09e9d82f8da86e28c92697
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/templates/test_openbmc_setup.robot b/templates/test_openbmc_setup.robot
index eaefc30..b7b0748 100644
--- a/templates/test_openbmc_setup.robot
+++ b/templates/test_openbmc_setup.robot
@@ -29,10 +29,9 @@
# REST Connection and request.
Initialize OpenBMC
# Raw GET REST operation to verify session is established.
- ${resp}= Get Request openbmc /xyz/openbmc_project/
+ ${resp}= GET On Session openbmc /xyz/openbmc_project/ expected_status=any
Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
- ${content}= To JSON ${resp.content} pretty_print=True
- Log To Console \n ${content}
+ Log To Console \n ${resp.json()}
Test SSH Setup