Fix the Contents of the Rules 19/23219/2
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Sat, 11 Nov 2017 05:39:07 +0000 (13:39 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Sat, 11 Nov 2017 05:52:30 +0000 (13:52 +0800)
Change-Id: I3f2cf617737754c3885027a769d2e44c1d3f0b94
Issue-ID: HOLMES-85
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
test/csit/tests/holmes/testcase/EngineMgt/Engine-Mgt.robot
test/csit/tests/holmes/testcase/RuleMgt/Rule-Mgt.robot

index b84dff2..0c06cbb 100644 (file)
@@ -28,7 +28,7 @@ deploy_invalid_rule
 
 deploy_valid_rule
     [Documentation]    Add a rule with valid contents to the engine.
-    ${dic4}    create dictionary    content=package rule03080002    engineid=""    loopcontrolname=test
+    ${dic4}    create dictionary    content=package rule03080002;\n\nimport java.util.Locale;     engineid=""    loopcontrolname=test
     ${Jsonparam}    encode    ${dic4}
     ${response}    deployEngineRule    ${Jsonparam}
 
index bccb0f7..ac25cbf 100644 (file)
@@ -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    enabled=1    loopcontrolname=closedControlLoop
+    ${dict2}    create dictionary    rulename=youbowu0314    description=create a new rule!    content=package rule03140002;\n\nimport java.util.Locale;     enabled=1    loopcontrolname=closedControlLoop
     ${jsonParams}    encode    ${dict2}
     ${response}    createRule    ${jsonParams}
     ${respJson}    to json    ${response.content}