aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/tests/holmes/testcase
diff options
context:
space:
mode:
Diffstat (limited to 'test/csit/tests/holmes/testcase')
-rw-r--r--test/csit/tests/holmes/testcase/RuleMgt/Rule-Keywords.robot2
-rw-r--r--test/csit/tests/holmes/testcase/RuleMgt/Rule-Mgt.robot28
2 files changed, 15 insertions, 15 deletions
diff --git a/test/csit/tests/holmes/testcase/RuleMgt/Rule-Keywords.robot b/test/csit/tests/holmes/testcase/RuleMgt/Rule-Keywords.robot
index 182737f54..3ce4be485 100644
--- a/test/csit/tests/holmes/testcase/RuleMgt/Rule-Keywords.robot
+++ b/test/csit/tests/holmes/testcase/RuleMgt/Rule-Keywords.robot
@@ -34,7 +34,7 @@ traversalRuleAttribute
[Arguments] ${responseJsonData} ${expectAttrDic}
[Documentation] ${expectAttrDic} : The data type is dictionary;
... key is the name of the attribute, value is the expected value of the attribute.
- @{responseRules} Get From Dictionary ${responseJsonData} rules
+ @{responseRules} Get From Dictionary ${responseJsonData} correlationRules
: FOR ${rule} IN @{responseRules}
\ log ${rule}
\ verifyRuleAttribute ${rule} ${expectAttrDic}
diff --git a/test/csit/tests/holmes/testcase/RuleMgt/Rule-Mgt.robot b/test/csit/tests/holmes/testcase/RuleMgt/Rule-Mgt.robot
index ac25cbfad..a28bc36ff 100644
--- a/test/csit/tests/holmes/testcase/RuleMgt/Rule-Mgt.robot
+++ b/test/csit/tests/holmes/testcase/RuleMgt/Rule-Mgt.robot
@@ -8,7 +8,7 @@ Resource Rule-Keywords.robot
*** Test Cases ***
add_valid_rule
[Documentation] Add a valid rule.
- ${dict2} create dictionary rulename=youbowu0314 description=create a new rule! content=package rule03140002;\n\nimport java.util.Locale; enabled=1 loopcontrolname=closedControlLoop
+ ${dict2} create dictionary rulename=youbowu0314 description=create a new rule! content=package ruleqwertasd;\n\nimport java.util.Locale; enabled=1 loopcontrolname=closedControlLoop
${jsonParams} encode ${dict2}
${response} createRule ${jsonParams}
${respJson} to json ${response.content}
@@ -34,49 +34,49 @@ query_rule_with_existing_id
should not be empty ${RULEID}
${response} queryConditionRule {"ruleid":"${RULEID}"}
${respJson} to json ${response.content}
- ${count} get from dictionary ${respJson} totalcount
+ ${count} get from dictionary ${respJson} totalCount
run keyword if ${count}!=1 fail Can't find the rule with the specified ruleid.
query_rule_with_non_existing_id
[Documentation] Query a rule with a non-existing ID.
- ${response} queryConditionRule {"ruleid":"invalidid"}
+ ${response} queryConditionRule {"rid":"invalidid"}
${respJson} to json ${response.content}
- ${count} get from dictionary ${respJson} totalcount
+ ${count} get from dictionary ${respJson} totalCount
run keyword if ${count}!=0 fail
query_rule_with_partial_existing_name
[Documentation] Query rules with (a part of) an existing name.
${response} queryConditionRule {"rulename":"youbowu"}
${respJson} to json ${response.content}
- ${count} get from dictionary ${respJson} totalcount
+ ${count} get from dictionary ${respJson} totalCount
run keyword if ${count}<1 fail Can't find the rule with (a part of) an existing name
query_rule_with_partial_non_existing_name
[Documentation] Query rules with (a part of) a non-existing name.
- ${response} queryConditionRule {"rulename":"zte2017"}
+ ${response} queryConditionRule {"name":"zte2017"}
${respJson} to json ${response.content}
- ${count} get from dictionary ${respJson} totalcount
+ ${count} get from dictionary ${respJson} totalCount
run keyword if ${count}!=0 fail
query_rule_with_vaild_status
[Documentation] Query rules with a valid status.
${response} queryConditionRule {"enabled":1}
${respJson} to json ${response.content}
- ${count} get from dictionary ${respJson} totalcount
+ ${count} get from dictionary ${respJson} totalCount
run keyword if ${count}<0 fail Can't find the rule with the status valued 1.
query_rule_with_invalid_status
[Documentation] Query rules with an invalid status.
${response} queryConditionRule {"enabled":99}
${respJson} to json ${response.content}
- ${count} get from dictionary ${respJson} totalcount
+ ${count} get from dictionary ${respJson} totalCount
run keyword if ${count}!=0 fail
query_rule_with_empty_status
[Documentation] Query rules with the status left empty.
- ${response} queryConditionRule {"enabled":""}
+ ${response} queryConditionRule {"enabled":null}
${respJson} to json ${response.content}
- ${count} get from dictionary ${respJson} totalcount
+ ${count} get from dictionary ${respJson} totalCount
run keyword if ${count}!=0 fail
query_rule_with_combinational_fields
@@ -85,7 +85,7 @@ query_rule_with_combinational_fields
${paramJson} encode ${dic}
${response} queryConditionRule ${paramJson}
${respJson} to json ${response.content}
- ${count} get from dictionary ${respJson} totalcount
+ ${count} get from dictionary ${respJson} totalCount
run keyword if ${count}<1 fail Can't find the rules with the combination of different fields. ELSE traversalRuleAttribute ${respJson}
... ${dic}
@@ -96,7 +96,7 @@ modify_rule_with_status
${modifyResp} modifyRule ${modifyParam}
${response} queryConditionRule {"ruleid":"${RULEID}"}
${respJson} to json ${response.content}
- ${count} get from dictionary ${respJson} totalcount
+ ${count} get from dictionary ${respJson} totalCount
run keyword if ${count}!=1 fail query rule fails! (can't find the rule modified!) ELSE traversalRuleAttribute ${respJson}
... ${dic}
@@ -113,7 +113,7 @@ modify_rule_with_description
${modifyResp} modifyRule ${modifyParam}
${response} queryConditionRule {"ruleid":"${RULEID}"} 1
${respJson} to json ${response.content}
- ${count} get from dictionary ${respJson} totalcount
+ ${count} get from dictionary ${respJson} totalCount
run keyword if ${count}!=1 fail query rule fails! ELSE traversalRuleAttribute ${respJson}
... ${dic}