brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [16/18] git commit: mark some policy tests as integration, lower the invocation count for one quite slow one
Date Tue, 04 Nov 2014 14:30:10 GMT
mark some policy tests as integration, lower the invocation count for one quite slow one


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/0b89adc0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/0b89adc0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/0b89adc0

Branch: refs/heads/master
Commit: 0b89adc0566f02e205800f222093029f5a7e82bb
Parents: e771265
Author: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Authored: Tue Nov 4 13:17:54 2014 +0000
Committer: Alex Heneveld <alex.heneveld@cloudsoftcorp.com>
Committed: Tue Nov 4 13:20:16 2014 +0000

----------------------------------------------------------------------
 .../policy/autoscaling/AutoScalerPolicyMetricTest.java       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/0b89adc0/policy/src/test/java/brooklyn/policy/autoscaling/AutoScalerPolicyMetricTest.java
----------------------------------------------------------------------
diff --git a/policy/src/test/java/brooklyn/policy/autoscaling/AutoScalerPolicyMetricTest.java
b/policy/src/test/java/brooklyn/policy/autoscaling/AutoScalerPolicyMetricTest.java
index 7c5ee75..4120614 100644
--- a/policy/src/test/java/brooklyn/policy/autoscaling/AutoScalerPolicyMetricTest.java
+++ b/policy/src/test/java/brooklyn/policy/autoscaling/AutoScalerPolicyMetricTest.java
@@ -93,7 +93,7 @@ public class AutoScalerPolicyMetricTest {
         Asserts.succeedsEventually(ImmutableMap.of("timeout", TIMEOUT_MS), currentSizeAsserter(tc,
1));
     }
     
-    @Test
+    @Test(groups="Integration")
     public void testIncrementsSizeInProportionToMetric() {
         tc.resize(5);
         
@@ -109,7 +109,7 @@ public class AutoScalerPolicyMetricTest {
         Asserts.succeedsEventually(ImmutableMap.of("timeout", TIMEOUT_MS), currentSizeAsserter(tc,
11));
     }
     
-    @Test
+    @Test(groups="Integration")
     public void testDecrementsSizeInProportionToMetric() {
         tc.resize(5);
         
@@ -128,7 +128,7 @@ public class AutoScalerPolicyMetricTest {
         Asserts.succeedsEventually(ImmutableMap.of("timeout", TIMEOUT_MS), currentSizeAsserter(tc,
0));
     }
     
-    @Test
+    @Test(groups="Integration")
     public void testObeysMinAndMaxSize() {
         tc.resize(4);
         
@@ -147,7 +147,7 @@ public class AutoScalerPolicyMetricTest {
         Asserts.succeedsEventually(ImmutableMap.of("timeout", TIMEOUT_MS), currentSizeAsserter(tc,
6));
     }
     
-    @Test(invocationCount=100)
+    @Test(groups="Integration",invocationCount=20)
     public void testWarnsWhenMaxCapReached() {
         final List<MaxPoolSizeReachedEvent> maxReachedEvents = Lists.newCopyOnWriteArrayList();
         tc.resize(1);


Mime
View raw message