[PATCH openbmc-test-automation 57/60] Fix Errors in test_obmcrest.robot and removed the empty testcases.
OpenBMC Patches
openbmc-patches at stwcx.xyz
Tue Jan 12 03:50:23 AEDT 2016
From: Manjunath A Kumatagi <mkumatag at in.ibm.com>
---
tests/test_obmcrest.robot | 47 +++++++++++------------------------------------
1 file changed, 11 insertions(+), 36 deletions(-)
diff --git a/tests/test_obmcrest.robot b/tests/test_obmcrest.robot
index caf9085..382107f 100644
--- a/tests/test_obmcrest.robot
+++ b/tests/test_obmcrest.robot
@@ -11,45 +11,20 @@ Resource ../lib/rest_client.robot
*** Test Cases ***
Good connection for testing
- ${content} = Read Properties /
- ${c}= get from List ${content} 0
- Should Contain "/org" ${c}
-
+ ${content}= Read Properties /
+ ${c}= get from List ${content} 0
+ Should Be Equal ${c} /org
Get an object with no properties
- ${content} = Read Properties /org/openbmc/inventory
- Should Be Empty ${content}
-
+ ${content}= Read Properties /org/openbmc/inventory
+ Should Be Empty ${content}
Get a Property
- ${resp} = Read Attribute /org/openbmc/inventory/system/chassis/motherboard/cpu0 is_fru
- Should Contain 1 ${resp}
-
+ ${resp}= Read Attribute /org/openbmc/inventory/system/chassis/motherboard/cpu0 is_fru
+ Should Be Equal ${resp} ${1}
Get a null Property
- ${resp} = Read Attribute /org/openbmc/inventory is_fru
- Should Contain 1 ${resp}
-
-
-Enumeration object
-
-
-List object
-
-
-Invoke a method without properties
-
-
-Invoke a method with properties
-
-
-Issue a POST
-
-
-Issue a PUT
-
-
-
-
-
-*** Keywords ***
+ ${resp} = OpenBMC Get Request /org/openbmc/inventory/attr/is_fru
+ Should Be Equal As Strings ${resp.status_code} ${HTTP_NOT_FOUND}
+ ${jsondata}= To Json ${resp.content}
+ Should Be Equal ${jsondata['data']['description']} The specified property cannot be found: ''is_fru''
--
2.6.4
More information about the openbmc
mailing list