support parallel executing for the test cases
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/cb2b62ae Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/cb2b62ae Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/cb2b62ae Branch: refs/heads/master Commit: cb2b62ae51bab2fbee11b4b3b3b95f1f6b192a92 Parents: 92ff7e9 Author: reka <[email protected]> Authored: Thu Aug 20 15:01:47 2015 +0530 Committer: reka <[email protected]> Committed: Fri Aug 21 12:46:29 2015 +0530 ---------------------------------------------------------------------- .../application/SampleApplicationsTest.java | 3 ++- .../tests/group/CartridgeGroupTest.java | 2 +- .../integration/tests/group/CartridgeTest.java | 2 +- .../tests/policies/ApplicationPolicyTest.java | 2 +- .../tests/policies/AutoscalingPolicyTest.java | 2 +- .../tests/policies/DeploymentPolicyTest.java | 2 +- .../tests/policies/NetworkPartitionTest.java | 2 +- .../integration/tests/users/UserTest.java | 25 ++++++++++++++++++++ 8 files changed, 33 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/cb2b62ae/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SampleApplicationsTest.java ---------------------------------------------------------------------- diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SampleApplicationsTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SampleApplicationsTest.java index 0de17e1..e50806b 100644 --- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SampleApplicationsTest.java +++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SampleApplicationsTest.java @@ -312,7 +312,8 @@ public class SampleApplicationsTest extends StratosTestServerManager { List<ApplicationBean> applicationList = (List<ApplicationBean>) restClient. listEntity(RestConstants.APPLICATIONS, listType, RestConstants.APPLICATIONS_NAME); - assertEquals(applicationList.size(), 2); + assertTrue(applicationList.size() >= 2); + ApplicationBean bean1 = null; for (ApplicationBean applicationBean : applicationList) { http://git-wip-us.apache.org/repos/asf/stratos/blob/cb2b62ae/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeGroupTest.java ---------------------------------------------------------------------- diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeGroupTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeGroupTest.java index 60db78f..67c71a4 100644 --- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeGroupTest.java +++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeGroupTest.java @@ -183,7 +183,7 @@ public class CartridgeGroupTest extends StratosTestServerManager { List<CartridgeGroupBean> cartridgeGroupList = (List<CartridgeGroupBean>) restClient. listEntity(RestConstants.CARTRIDGE_GROUPS, listType, RestConstants.CARTRIDGE_GROUPS_NAME); - assertEquals(cartridgeGroupList.size(), 2); + assertTrue(cartridgeGroupList.size() >= 2); CartridgeGroupBean bean1 = null; for (CartridgeGroupBean cartridgeGroupBean : cartridgeGroupList) { http://git-wip-us.apache.org/repos/asf/stratos/blob/cb2b62ae/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeTest.java ---------------------------------------------------------------------- diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeTest.java index 891b3f2..571b261 100644 --- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeTest.java +++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeTest.java @@ -154,7 +154,7 @@ public class CartridgeTest extends StratosTestServerManager { List<CartridgeBean> cartridgeList = (List<CartridgeBean>) restClient.listEntity(RestConstants.CARTRIDGES, listType, RestConstants.CARTRIDGES_NAME); - assertEquals(cartridgeList.size(), 2); + assertTrue(cartridgeList.size() >= 2); CartridgeBean bean1 = null; for (CartridgeBean cartridgeBean : cartridgeList) { http://git-wip-us.apache.org/repos/asf/stratos/blob/cb2b62ae/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/ApplicationPolicyTest.java ---------------------------------------------------------------------- diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/ApplicationPolicyTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/ApplicationPolicyTest.java index 98ffae1..656abc5 100644 --- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/ApplicationPolicyTest.java +++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/ApplicationPolicyTest.java @@ -168,7 +168,7 @@ public class ApplicationPolicyTest extends StratosTestServerManager { List<ApplicationPolicyBean> applicationPolicyList = (List<ApplicationPolicyBean>) restClient. listEntity(RestConstants.APPLICATION_POLICIES, listType, RestConstants.APPLICATION_POLICIES_NAME); - assertEquals(applicationPolicyList.size(), 2); + assertTrue(applicationPolicyList.size() >= 2); ApplicationPolicyBean bean1 = null; for (ApplicationPolicyBean applicationPolicyBean : applicationPolicyList) { http://git-wip-us.apache.org/repos/asf/stratos/blob/cb2b62ae/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/AutoscalingPolicyTest.java ---------------------------------------------------------------------- diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/AutoscalingPolicyTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/AutoscalingPolicyTest.java index ddded1c..a615d98 100644 --- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/AutoscalingPolicyTest.java +++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/AutoscalingPolicyTest.java @@ -120,7 +120,7 @@ public class AutoscalingPolicyTest extends StratosTestServerManager { List<AutoscalePolicyBean> autoscalingPolicyList = (List<AutoscalePolicyBean>) restClient. listEntity(RestConstants.AUTOSCALING_POLICIES, listType, RestConstants.AUTOSCALING_POLICIES_NAME); - assertEquals(autoscalingPolicyList.size(), 2); + assertTrue(autoscalingPolicyList.size() >= 2); AutoscalePolicyBean bean1 = null; for (AutoscalePolicyBean autoscalePolicyBean : autoscalingPolicyList) { http://git-wip-us.apache.org/repos/asf/stratos/blob/cb2b62ae/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/DeploymentPolicyTest.java ---------------------------------------------------------------------- diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/DeploymentPolicyTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/DeploymentPolicyTest.java index 6cc0101..34e398b 100644 --- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/DeploymentPolicyTest.java +++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/DeploymentPolicyTest.java @@ -212,7 +212,7 @@ public class DeploymentPolicyTest extends StratosTestServerManager { List<DeploymentPolicyBean> cartridgeList = (List<DeploymentPolicyBean>) restClient. listEntity(RestConstants.DEPLOYMENT_POLICIES, listType, RestConstants.DEPLOYMENT_POLICIES_NAME); - assertEquals(cartridgeList.size(), 2); + assertTrue(cartridgeList.size() >= 2); DeploymentPolicyBean bean1 = null; for (DeploymentPolicyBean deploymentPolicyBean : cartridgeList) { http://git-wip-us.apache.org/repos/asf/stratos/blob/cb2b62ae/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/NetworkPartitionTest.java ---------------------------------------------------------------------- diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/NetworkPartitionTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/NetworkPartitionTest.java index 61f2205..6f0f928 100644 --- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/NetworkPartitionTest.java +++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/NetworkPartitionTest.java @@ -122,7 +122,7 @@ public class NetworkPartitionTest extends StratosTestServerManager { List<NetworkPartitionBean> cartridgeList = (List<NetworkPartitionBean>) restClient. listEntity(RestConstants.NETWORK_PARTITIONS, listType, RestConstants.NETWORK_PARTITIONS_NAME); - assertEquals(cartridgeList.size(), 2); + assertTrue(cartridgeList.size() >= 2); NetworkPartitionBean bean1 = null; for (NetworkPartitionBean networkPartitionBean : cartridgeList) { http://git-wip-us.apache.org/repos/asf/stratos/blob/cb2b62ae/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/users/UserTest.java ---------------------------------------------------------------------- diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/users/UserTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/users/UserTest.java new file mode 100644 index 0000000..41e2017 --- /dev/null +++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/users/UserTest.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.stratos.integration.tests.users; + +/** + * Created by reka on 8/20/15. + */ +public class UserTest { +}
