[PATCH openbmc-test-automation 60/60] updated the REST API for firmware version

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


From: Manjunath A Kumatagi <mkumatag at in.ibm.com>

---
 tests/test_fw_version.robot | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/test_fw_version.robot b/tests/test_fw_version.robot
index 2c3337d..90721b7 100644
--- a/tests/test_fw_version.robot
+++ b/tests/test_fw_version.robot
@@ -15,8 +15,8 @@ Test Firmware Version
     ...     $ git describe --dirty
     ...     v0.1-34-g95f7347
     ...     $
-    ${resp} =    OpenBMC Get Request    /org/openbmc/inventory/system
+    ${resp} =    OpenBMC Get Request    /org/openbmc/inventory/system/chassis/motherboard/bmc
     Should Be Equal As Strings    ${resp.status_code}    ${HTTP_OK}
     ${jsondata}=    To Json    ${resp.content}
-    Should not be empty     ${jsondata["data"]["Version"]}
-    Should Match Regexp     ${jsondata["data"]["Version"]}      ^v\\d+\.\\d+
\ No newline at end of file
+    Should not be empty     ${jsondata["data"]["version"]}
+    Should Match Regexp     ${jsondata["data"]["version"]}      ^v\\d+\.\\d+
\ No newline at end of file
-- 
2.6.4




More information about the openbmc mailing list