Commit ea76b7a1 authored by Gabriel Monnerat's avatar Gabriel Monnerat

Add steps to validate if each Slave Instance is started/stopped correctly when...

Add steps to validate if each Slave Instance is started/stopped correctly when a Software Instance is started/stopped.
parent e4b751b8
...@@ -4715,28 +4715,41 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -4715,28 +4715,41 @@ class TestVifibSlapWebService(testVifibMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def stepSetDeliveryLineAmountAsTwo(self, sequence):
sequence.edit(delivery_line_amount=2)
def test_SlaveInstance_request_stop_from_SoftwareInstance(self): def test_SlaveInstance_request_stop_from_SoftwareInstance(self):
""" """
Check that the Slave Instance will be stopped and started correctly when Check that the Slave Instance will be stopped and started correctly when
a Software Instance is started/stopped a Software Instance is started/stopped
""" """
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = self.prepare_started_computer_partition_sequence_string + """ sequence_string = self.prepare_install_requested_computer_partition_sequence_string + """
LoginTestVifibCustomer LoginTestVifibCustomer
PersonRequestSlaveInstance PersonRequestSlaveInstance
SlapLogout SlapLogout
LoginDefaultUser LoginDefaultUser
ConfirmOrderedSaleOrderActiveSense ConfirmOrderedSaleOrderActiveSense
Tic Tic
SlapLoginCurrentComputer
SoftwareInstanceAvailable
Tic
LoginTestVifibCustomer LoginTestVifibCustomer
SlaveInstanceStarted StartSoftwareInstanceFromCurrentComputerPartition
Tic
Logout
LoginDefaultUser
SlapLoginSoftwareInstanceFromCurrentSoftwareInstance
SoftwareInstanceStarted
Tic Tic
SlapLogout SlapLogout
LoginDefaultUser LoginDefaultUser
SlapLoginSoftwareInstanceFromCurrentSoftwareInstance SlapLoginSoftwareInstanceFromCurrentSoftwareInstance
SoftwareInstanceStopped SoftwareInstanceStopped
Tic Tic
CheckComputerPartitionInstanceSetupSalePackingListDelivered SetDeliveryLineAmountAsTwo
CheckComputerPartitionInstanceHostingSalePackingListDelivered
CheckComputerPartitionInstanceSetupSalePackingListStopped
""" """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
...@@ -4747,7 +4760,7 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -4747,7 +4760,7 @@ class TestVifibSlapWebService(testVifibMixin):
a Software Instance is started/stopped a Software Instance is started/stopped
""" """
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = self.prepare_start_requested_computer_partition_sequence_string + """ sequence_string = self.prepare_install_requested_computer_partition_sequence_string + """
LoginTestVifibCustomer LoginTestVifibCustomer
PersonRequestSlaveInstance PersonRequestSlaveInstance
SlapLogout SlapLogout
...@@ -4755,11 +4768,20 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -4755,11 +4768,20 @@ class TestVifibSlapWebService(testVifibMixin):
ConfirmOrderedSaleOrderActiveSense ConfirmOrderedSaleOrderActiveSense
Tic Tic
SlapLogout SlapLogout
LoginDefaultUser SoftwareInstanceAvailable
SlapLoginSoftwareInstanceFromCurrentSoftwareInstance Tic
LoginTestVifibCustomer
StartSoftwareInstanceFromCurrentComputerPartition
Tic
Logout
SlapLoginCurrentComputer
SoftwareInstanceStarted SoftwareInstanceStarted
Tic Tic
CheckComputerPartitionInstanceSetupSalePackingListStarted SlapLogout
LoginDefaultUser
SetDeliveryLineAmountAsTwo
CheckComputerPartitionInstanceHostingSalePackingListStarted
CheckComputerPartitionInstanceSetupSalePackingListStopped
""" """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
...@@ -4771,23 +4793,24 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -4771,23 +4793,24 @@ class TestVifibSlapWebService(testVifibMixin):
validating the feature of stop a Instance Slave validating the feature of stop a Instance Slave
""" """
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = self.prepare_install_requested_computer_partition_sequence_string + """ sequence_string = self.prepare_started_computer_partition_sequence_string + """
LoginTestVifibCustomer LoginTestVifibCustomer
PersonRequestSlaveInstance PersonRequestSlaveInstance
SlapLogout SlapLogout
LoginDefaultUser LoginDefaultUser
ConfirmOrderedSaleOrderActiveSense ConfirmOrderedSaleOrderActiveSense
Tic Tic
SlapLogout
LoginTestVifibCustomer LoginTestVifibCustomer
SlaveInstanceStopComputerPartitionInstallation
Tic
SlaveInstanceStarted SlaveInstanceStarted
Tic Tic
SlapLogout
LoginTestVifibCustomer
SlaveInstanceStopped SlaveInstanceStopped
Tic Tic
Logout Logout
LoginDefaultUser LoginDefaultUser
CheckComputerPartitionInstanceSetupSalePackingListDelivered CheckComputerPartitionInstanceHostingSalePackingListDelivered
Logout Logout
""" """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
...@@ -5987,11 +6010,21 @@ class TestVifibSlapWebService(testVifibMixin): ...@@ -5987,11 +6010,21 @@ class TestVifibSlapWebService(testVifibMixin):
uid=sequence["software_instance_uid"]) uid=sequence["software_instance_uid"])
slave_instance.startComputerPartition() slave_instance.startComputerPartition()
def stepRequestSlaveInstanceStart(self, sequence):
slave_instance = self.portal.portal_catalog.getResultValue(
uid=sequence["software_instance_uid"])
slave_instance.requestStartComputerPartition()
def stepSlaveInstanceStopped(self, sequence): def stepSlaveInstanceStopped(self, sequence):
slave_instance = self.portal.portal_catalog.getResultValue( slave_instance = self.portal.portal_catalog.getResultValue(
uid=sequence["software_instance_uid"]) uid=sequence["software_instance_uid"])
slave_instance.stopComputerPartition() slave_instance.stopComputerPartition()
def stepSlaveInstanceStopComputerPartitionInstallation(self, sequence):
slave_instance = self.portal.portal_catalog.getResultValue(
uid=sequence["software_instance_uid"])
slave_instance.stopComputerPartitionInstallation()
prepare_two_purchase_packing_list = \ prepare_two_purchase_packing_list = \
prepare_software_release_purchase_packing_list + '\ prepare_software_release_purchase_packing_list + '\
LoginDefaultUser \ LoginDefaultUser \
......
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