Commit 0dda8b83 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud/SlapOSTestCaseMixin: Add method to request a tree with slave

    makeTree requests a simple deployed Hosting Subscription with all elementes, this only replaces the template used when generate the objects.
parent 645e2358
...@@ -231,6 +231,9 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -231,6 +231,9 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
self.requested_software_instance.validate() self.requested_software_instance.validate()
self.tic() self.tic()
def _makeSlaveTree(self, requested_template_id='template_slave_instance'):
return self._makeTree(requested_template_id=requested_template_id)
def _makeComputer(self, owner=None, allocation_scope='open/public'): def _makeComputer(self, owner=None, allocation_scope='open/public'):
self.computer = self.portal.computer_module.template_computer\ self.computer = self.portal.computer_module.template_computer\
.Base_createCloneDocument(batch_mode=1) .Base_createCloneDocument(batch_mode=1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment