You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/04/08 13:16:34 UTC
[2/3] stratos git commit: Adding test case formaxcheck Drools file
Adding test case formaxcheck Drools file
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/7aa86274
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/7aa86274
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/7aa86274
Branch: refs/heads/master
Commit: 7aa86274f21495cd2bb5b26a15ca294d5d0fc82c
Parents: e6cef66
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Wed Apr 8 16:44:49 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Wed Apr 8 16:44:49 2015 +0530
----------------------------------------------------------------------
.../java/org/apache/stratos/autoscaler/TestRulesPackaged.java | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/7aa86274/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/TestRulesPackaged.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/TestRulesPackaged.java b/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/TestRulesPackaged.java
index 5d3559b..9e02508 100644
--- a/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/TestRulesPackaged.java
+++ b/components/org.apache.stratos.autoscaler/src/test/java/org/apache/stratos/autoscaler/TestRulesPackaged.java
@@ -33,6 +33,7 @@ import static org.junit.Assert.assertEquals;
public class TestRulesPackaged {
private static final Log log = LogFactory.getLog(TestRulesPackaged.class);
private String minCheckDrlFilePath = "../../products/stratos/modules/distribution/src/main/conf/drools/mincheck.drl";
+ private String maxCheckDrlFilePath = "../../products/stratos/modules/distribution/src/main/conf/drools/maxcheck.drl";
private String scalingDrlFilePath = "../../products/stratos/modules/distribution/src/main/conf/drools/scaling.drl";
private String terminateAllDrlFilePath = "../../products/stratos/modules/distribution/src/main/conf/drools/terminateall.drl";
private String dependentScalingDrlFilePath = "../../products/stratos/modules/distribution/src/main/conf/drools/dependent-scaling.drl";
@@ -44,6 +45,11 @@ public class TestRulesPackaged {
parseDroolsFile(minCheckDrlFilePath);
}
+ @Test
+ public void testMaxCheckDroolsFile() {
+ parseDroolsFile(maxCheckDrlFilePath);
+ }
+
//FIXME add this when dependent scaling file is completed
@Test
public void testDependentScalingDroolsFile() {