[PATCH openbmc-test-automation 51/60] Handle new rest client from Brad

OpenBMC Patches openbmc-patches at stwcx.xyz
Tue Jan 12 03:50:17 AEDT 2016


From: Chris Austen <austenc at us.ibm.com>

---
 lib/resource.txt         | 2 +-
 tests/test_sensors.robot | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/lib/resource.txt b/lib/resource.txt
index a8b8614..9d865c3 100644
--- a/lib/resource.txt
+++ b/lib/resource.txt
@@ -9,7 +9,7 @@ Variables         ../data/variables.py
 ${OPENBMC_HOST}    9.3.164.161
 ${DBUS_PREFIX}    ${EMPTY}
 ${PORT}           ${EMPTY}
-${AUTH_URI}       http://${OPENBMC_HOST}
+${AUTH_URI}       https://${OPENBMC_HOST}
 ${OPENBMC_USERNAME}    root
 ${OPENBMC_PASSWORD}    0penBmc
 ${MACHINE_TYPE}    palmetto
diff --git a/tests/test_sensors.robot b/tests/test_sensors.robot
index a50805a..3e84e44 100644
--- a/tests/test_sensors.robot
+++ b/tests/test_sensors.robot
@@ -188,8 +188,11 @@ response Should Be Equal
 
 Read the Attribute     
     [arguments]    ${uri}    ${parm}
-    ${output} =  Read Attribute      ${uri}    ${parm}
-    set test variable    ${OUTPUT}     ${output}
+    ${output} =     Read Attribute      ${uri}    ${parm}
+    ${json} =       to json             ${output}
+    ${data} =       get from dictionary      ${json}     data
+    set test variable    ${OUTPUT}     "${data}"
+    
 
 
 Open Connection And Log In
-- 
2.6.4




More information about the openbmc mailing list