Commit e49618b9 authored by Gabriel Monnerat's avatar Gabriel Monnerat

commit the skel of tests around Slave Instance

parent d94b51c5
...@@ -90,6 +90,7 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -90,6 +90,7 @@ class TestVifibSlapWebService(testVifibMixin):
sale_packing_list_portal_type = "Sale Packing List" sale_packing_list_portal_type = "Sale Packing List"
service_portal_type = "Service" service_portal_type = "Service"
slave_partition_portal_type = "Slave Partition" slave_partition_portal_type = "Slave Partition"
slave_instance_portal_type = "Slave Instance"
software_instance_portal_type = "Software Instance" software_instance_portal_type = "Software Instance"
software_release_portal_type = "Software Release" software_release_portal_type = "Software Release"
software_product_portal_type = "Software Product" software_product_portal_type = "Software Product"
...@@ -322,6 +323,12 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -322,6 +323,12 @@ class TestVifibSlapWebService(testVifibMixin):
uid=sequence['service_uid']).getRelativeUrl(), uid=sequence['service_uid']).getRelativeUrl(),
sequence) sequence)
def stepPersonRequestSlaveInstance(self, sequence, **kw):
"""
Request one slave instance with one person as context
"""
raise NotImplementedError('Not Implemented yet')
def stepPersonRequestSoftwareInstance(self, sequence, **kw): def stepPersonRequestSoftwareInstance(self, sequence, **kw):
person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue() person = self.portal.ERP5Site_getAuthenticatedMemberPersonValue()
software_release = self.portal.portal_catalog.getResultValue( software_release = self.portal.portal_catalog.getResultValue(
...@@ -4185,6 +4192,38 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -4185,6 +4192,38 @@ class TestVifibSlapWebService(testVifibMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
#########################################
# SlavePartition.request
#########################################
@skip("Not Implemented yet")
def test_ComputerPartition_request_SlaveInstance(self):
"""
Check that one Slave Instance is created correctly
"""
@skip("Not Implemented yet")
def test_ComputerPartition_request_SlaveInstance_noSoftwareInstance(self):
"""
Check that one Slave Instance is create correctly when no exists Software
Instance created
"""
@skip("Not Implemented yet")
def test_ComputerPartition_request_SlaveInstance_twoSoftwareInstance(self):
"""
"""
@skip("Not Implemented yet")
def test_ComputerPartition_request_SlaveInstance_twice(self):
"""
"""
@skip("Not Implemented yet")
def test_ComputerPartition_getInstanceParameterDict_withSlaveInstance(self):
"""
"""
######################################## ########################################
# ComputerPartition.request - shared # ComputerPartition.request - shared
######################################## ########################################
......
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