Commit c3828844 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: bootstrap accountable instance in test

parent b8e0cc4b
......@@ -647,10 +647,11 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
url_string='type%s' % self.generateNewId(),
)
def bootstrapAllocableInstanceTree(self, allocation_state='possible', shared=False, node="compute"):
def bootstrapAllocableInstanceTree(self, allocation_state='possible', shared=False, node="compute",
is_accountable=False):
if allocation_state not in ('impossible', 'possible', 'allocated'):
raise ValueError('Not supported allocation_state: %s' % allocation_state)
project = self.addProject()
project = self.addProject(is_accountable=is_accountable)
person = self.makePerson(project)
software_product = self._makeSoftwareProduct(project)
release_variation = software_product.contentValues(portal_type='Software Product Release Variation')[0]
......
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