Skip to content

Commit fedef2e

Browse files
committed
CLOUDSTACK-8687: Unit tests for validating the prepare template functionality.
These tests validate that the templates get scheduled for seeding. Additionally, if a template is already seeded, we do not try and seed it again. Tests also validate that templates are seeded to storage pools which are available.
1 parent adf6b58 commit fedef2e

File tree

2 files changed

+518
-6
lines changed

2 files changed

+518
-6
lines changed

server/src/com/cloud/template/TemplateManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
269269
MessageBus _messageBus;
270270

271271
private boolean _disableExtraction = false;
272-
private ExecutorService _preloadExecutor;
273-
274272
private List<TemplateAdapter> _adapters;
275273

274+
ExecutorService _preloadExecutor;
275+
276276
@Inject
277277
private StorageCacheManager cacheMgr;
278278
@Inject

0 commit comments

Comments
 (0)