Github user devdeep commented on the pull request:

    https://github.com/apache/cloudstack/pull/635#issuecomment-128292255
  
    @DaanHoogland When prepareTemplate is called, it either falls into 
prepareTemplateInOneStoragePool if one primary has to be seeded with the 
template; or prepareTemplateInAllAllStoragePool for seeding templates in all 
primary pools available. prepareTemplateInAllStoragePool also calls 
prepareTemplateInOneStoragePool for seeding the template. 
prepareTemplateInOneStoragePool schedules the template to seeded on a given 
primary storage. The actual work of seeding the template is done by 
prepareTemplateForCreate. Their were   no unit tests for this routine. I have 
written unit tests for the same. It was more meaningful to write tests for this 
routine, as it is here, where the actual work happens. prepareTemplate and 
prepareTemplateInOneStoragePool just schedule a thread/executor to seed the 
primary pools


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to