[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13705675#comment-13705675
 ] 

ASF subversion and git services commented on CLOUDSTACK-3467:
-------------------------------------------------------------

Commit 51b02702f91bb084dd20540190f02232b82617f5 in branch refs/heads/master 
from [~devdeep]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=51b0270 ]

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.

                
> Fix unit tests for implicit dedication planner
> ----------------------------------------------
>
>                 Key: CLOUDSTACK-3467
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3467
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>    Affects Versions: 4.2.0
>            Reporter: Devdeep Singh
>            Assignee: Devdeep Singh
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> When bug CLOUDSTACK-2662 was fixed for implicit dedication planner, the unit 
> tests were not updated in a correct way. The fix had made a change to not to 
> ignore system vms, so instead of using a userVmDao, the planner started using 
> vmInstanceDao to query the running vms on a host. However, the unit test for 
> the planner weren't updated correctly. They should have been updated to 
> return the right mock object (of type VMInstanceVO) when the vmInstanceDao is 
> queried for vm on a host. It needs to be fixed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to