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/extended/test_bmc_stress_buster.robot b/extended/test_bmc_stress_buster.robot
index 1b19ffe..977c8f9 100644
--- a/extended/test_bmc_stress_buster.robot
+++ b/extended/test_bmc_stress_buster.robot
@@ -23,6 +23,8 @@
Stress BMC REST Server
[Documentation] Execute maximum allowed REST operation.
[Tags] Stress_BMC_REST_Server
+
+ Log To Console REST call request burst ${REST_BUSTER_MAX}
${dict}= Execute Process
... ${REST_BUSTER_MAX} REST Enumerate Request On BMC
Dictionary Should Not Contain Value ${dict} False
@@ -32,6 +34,7 @@
Stress BMC SSH Server
[Documentation] Execute maximum allowed SSH operation.
[Tags] Stress_BMC_SSH_Server
+ Log To Console SSH call request burst ${SSH_BUSTER_MAX}
${dict}= Execute Process
... ${SSH_BUSTER_MAX} SSH Connect And Execute Command
Dictionary Should Not Contain Value ${dict} False
@@ -41,6 +44,7 @@
Stress BMC IPMI Server
[Documentation] Execute maximum allowed IPMI operation.
[Tags] Stress_BMC_IPMI_Server
+ Log To Console IPMI call request burst ${IPMI_BUSTER_MAX}
${dict}= Execute Process ${IPMI_BUSTER_MAX} IPMI Check Status
Dictionary Should Not Contain Value ${dict} False
... msg=One or more IPMI operations has failed.
@@ -53,13 +57,14 @@
# Create REST session.
Create Session openbmc ${AUTH_URI}
${headers}= Create Dictionary Content-Type=application/json
- @{credentials}= Create List ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD}
+ @{credentials}= Create List ${rest_username} ${rest_password}
${data}= Create Dictionary data=@{credentials}
- ${resp}= Post Request openbmc /login data=${data} headers=${headers}
+ ${resp}= POST On Session openbmc /login json=${data} headers=${headers}
Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
# Trigger GET REST enumeration.
- ${resp}= Get Request openbmc /xyz/openbmc_project/software/enumerate
+ ${resp}= GET On Session openbmc /redfish/v1/Managers/bmc expected_status=any
+ Log To Console GET Request /redfish/v1/Managers/bmc
Should Be Equal As Strings ${resp.status_code} ${HTTP_OK}
Delete All Sessions