You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 293e545
Browse filesBrowse the repository at this point in the historyBrowse files
CLOUDSTACK-3467: Fixing the unit tests for implicit dedication planner. When fix for bug 2662
was made the unit tests were not updated correctly. The unit tests should have been changed to
return the correct mock object (VMInstanceVO) when vmInstanceDao is queried for the vms
running on host.
Copy file name to clipboardExpand all lines: plugins/deployment-planners/implicit-dedication/test/org/apache/cloudstack/implicitplanner/ImplicitPlannerTest.java
+20-26Lines changed: 20 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -202,11 +202,10 @@ public void checkStrictModeWithCurrentAccountVmsPresent() throws InsufficientSer
202
202
// Validations.
203
203
// Check cluster 2 and 3 are not in the cluster list.
204
204
// Host 6 and 7 should also be in avoid list.
205
-
//System.out.println("checkStrictModeWithCurrentAccountVmsPresent:: Cluster list should not be empty but ::" + clusterList.toString());
206
205
assertFalse("Cluster list should not be null/empty", (clusterList == null || clusterList.isEmpty()));
207
206
booleanfoundNeededCluster = false;
208
207
for (Longcluster : clusterList) {
209
-
if (cluster== 4) {
208
+
if (cluster!= 1) {
210
209
fail("Found a cluster that shouldn't have been present, cluster id : " + cluster);
211
210
}else {
212
211
foundNeededCluster = true;
@@ -219,8 +218,7 @@ public void checkStrictModeWithCurrentAccountVmsPresent() throws InsufficientSer
0 commit comments