diff options
author | Congcong Peng <peng.congcong@zte.com.cn> | 2018-03-02 10:46:54 +0800 |
---|---|---|
committer | Congcong Peng <peng.congcong@zte.com.cn> | 2018-03-02 10:46:54 +0800 |
commit | 10d984c3606b5c6a026dea4b9df0954d74d0a8d1 (patch) | |
tree | 10e11388b826cfe5cc358b2669ab5d4604218f1a /test/csit/tests/holmes | |
parent | fc5ef0c903fdefe64f7e414f2ee0ccd4a3daf68e (diff) |
Rename some variables
Issue-ID: HOLMES-117
Change-Id: Ia67c2e577408a13a231868392912ffe035494203
Signed-off-by: Congcong Peng <peng.congcong@zte.com.cn>
Diffstat (limited to 'test/csit/tests/holmes')
-rw-r--r-- | test/csit/tests/holmes/testcase/RuleMgt/Rule-Keywords.robot | 2 | ||||
-rw-r--r-- | test/csit/tests/holmes/testcase/RuleMgt/Rule-Mgt.robot | 8 |
2 files changed, 5 insertions, 5 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 796ed0d09..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} @@ -39,7 +39,7 @@ query_rule_with_existing_id 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 run keyword if ${count}!=0 fail @@ -53,7 +53,7 @@ query_rule_with_partial_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 run keyword if ${count}!=0 fail @@ -74,7 +74,7 @@ query_rule_with_invalid_status 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 run keyword if ${count}!=0 fail |