Fix FRU field data check
Reference openbmc/openbmc#1461 for GET request failure for inventory
object property.
Resolves openbmc/openbmc-test-automation#504
Change-Id: Idb531c053f06f4112e944fc943372e0c3470807a
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/tests/test_inventory.robot b/tests/test_inventory.robot
index 34694c4..5937a1c 100644
--- a/tests/test_inventory.robot
+++ b/tests/test_inventory.robot
@@ -187,8 +187,10 @@
${fru_list}= Create List
:FOR ${fru_uri} IN @{system_list}
- \ ${is_fru}= OpenBMC Get Request ${fru_uri}/attr/FieldReplaceable
- \ ${status}= Run Keyword And Return Status Should Be True ${is_fru}
+ \ ${resp}= OpenBMC Get Request ${fru_uri}/attr/FieldReplaceable
+ \ ${jsondata}= To JSON ${resp.content}
+ \ ${status}= Run Keyword And Return Status
+ ... Should Be True ${jsondata['data']} == ${1}
\ Run Keyword If '${status}' == '${True}'
... Append To List ${fru_list} ${fru_uri}