Commit dd275237 authored by Romain Courteaud's avatar Romain Courteaud

Drop sale packing list state tests.

Software instance status does not depend anymore on Sale Packing List state.
parent a6508cd0
...@@ -522,48 +522,6 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin): ...@@ -522,48 +522,6 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_bug_destruction_with_cancelled_packing_list(self):
"""Proves that even if some packing lists are in cancelled state
it is possible to destroy software instance"""
sequence_list = SequenceList()
sequence_string = self.prepare_stopped_computer_partition_sequence_string + """
# Request destruction...
LoginDefaultUser
RequestSoftwareInstanceDestroy
Tic
Logout
LoginDefaultUser
CheckComputerPartitionInstanceCleanupSalePackingListConfirmed
Logout
# and cancel current destruction.
LoginDefaultUser
SelectCurrentlyUsedSalePackingListUid
CancelSalePackingList
Tic
CheckComputerPartitionInstanceCleanupSalePackingListCancelled
Logout
# ...and destroy it
SlapLoginCurrentComputer
SoftwareInstanceDestroyed
Tic
SlapLogout
LoginDefaultUser
CheckComputerPartitionInstanceCleanupSalePackingListCancelled
CheckComputerPartitionIsFree
Logout
LoginERP5TypeTestCase
CheckSiteConsistency
Logout
"""
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_bug_destruction_with_unfinished_packing_list(self): def test_bug_destruction_with_unfinished_packing_list(self):
"""Proves that even if some packing lists are not fully delivered """Proves that even if some packing lists are not fully delivered
it is possible to destroy software instance""" it is possible to destroy software instance"""
......
...@@ -137,29 +137,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin ...@@ -137,29 +137,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
c.invalidate() c.invalidate()
transaction.commit() transaction.commit()
def test_Computer_getComputerPartitionList_SetupResource_CancelledState(self):
"""
Check that calling Computer.getComputerPartitionList works in
cancelled state with the setup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_install_requested_computer_partition_sequence_string + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Tic \
CheckComputerPartitionInstanceHostingSalePackingListCancelled \
Logout \
SlapLoginCurrentComputer \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_SetupResource_ConfirmedState(self): def test_Computer_getComputerPartitionList_SetupResource_ConfirmedState(self):
""" """
Check that calling Computer.getComputerPartitionList works in Check that calling Computer.getComputerPartitionList works in
...@@ -195,32 +172,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin ...@@ -195,32 +172,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_Computer_getComputerPartitionList_SetupResource_StoppedState(self):
"""
Check that calling Computer.getComputerPartitionList works in
stopped state with the setup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_installed_computer_partition_sequence_string + '\
LoginDefaultUser \
Tic \
CheckComputerPartitionInstanceSetupSalePackingListDelivered \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Tic \
CheckComputerPartitionInstanceHostingSalePackingListCancelled \
CheckComputerPartitionInstanceCleanupSalePackingListDoesNotExists \
Logout \
SlapLoginCurrentComputer \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def stepDeliverInstanceSetupSalePackingList(self, sequence, **kw): def stepDeliverInstanceSetupSalePackingList(self, sequence, **kw):
delivery = self.portal.portal_catalog.getResultValue( delivery = self.portal.portal_catalog.getResultValue(
default_aggregate_uid=ComplexQuery( default_aggregate_uid=ComplexQuery(
...@@ -234,58 +185,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin ...@@ -234,58 +185,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
).getParentValue() ).getParentValue()
self.portal.portal_workflow.doActionFor(delivery, 'deliver_action') self.portal.portal_workflow.doActionFor(delivery, 'deliver_action')
def test_Computer_getComputerPartitionList_SetupResource_DeliveredState(self):
"""
Check that calling Computer.getComputerPartitionList works in
delivered state with the setup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_installed_computer_partition_sequence_string + '\
CallVifibUpdateDeliveryCausalityStateAlarm \
CleanTic \
\
LoginDefaultUser \
CheckComputerPartitionInstanceSetupSalePackingListDelivered \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Tic \
CheckComputerPartitionInstanceHostingSalePackingListCancelled \
CheckComputerPartitionInstanceCleanupSalePackingListDoesNotExists \
Logout \
\
SlapLoginCurrentComputer \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_HostingResource_CancelledState(self):
"""
Check that calling Computer.getComputerPartitionList works in
cancelled state with the hosting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_start_requested_computer_partition_sequence_string + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Tic \
Logout \
\
SlapLoginCurrentComputer \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_HostingResource_ConfirmedState(self): def test_Computer_getComputerPartitionList_HostingResource_ConfirmedState(self):
""" """
Check that calling Computer.getComputerPartitionList works in Check that calling Computer.getComputerPartitionList works in
...@@ -467,29 +366,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin ...@@ -467,29 +366,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_Computer_getComputerPartitionList_CleanupResource_CancelledState(self):
"""
Check that calling Computer.getComputerPartitionList works in
cancelled state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_destroy_requested_computer_partition + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Tic \
Logout \
\
SlapLoginCurrentComputer \
CheckDestroyedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_CleanupResource_ConfirmedState(self): def test_Computer_getComputerPartitionList_CleanupResource_ConfirmedState(self):
""" """
Check that calling Computer.getComputerPartitionList works in Check that calling Computer.getComputerPartitionList works in
...@@ -507,54 +383,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin ...@@ -507,54 +383,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_Computer_getComputerPartitionList_CleanupResource_StartedState(self):
"""
Check that calling Computer.getComputerPartitionList works in
started state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_destroy_requested_computer_partition + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
StartSalePackingList \
Tic \
Logout \
\
SlapLoginCurrentComputer \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_CleanupResource_StoppedState(self):
"""
Check that calling Computer.getComputerPartitionList works in
stopped state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_destroy_requested_computer_partition + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
StartSalePackingList \
Tic \
StopSalePackingList \
Tic \
Logout \
\
SlapLoginCurrentComputer \
CheckSuccessComputerGetComputerPartitionCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_CleanupResource_DeliveredState(self): def test_Computer_getComputerPartitionList_CleanupResource_DeliveredState(self):
""" """
Check that calling Computer.getComputerPartitionList works in Check that calling Computer.getComputerPartitionList works in
...@@ -572,102 +400,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin ...@@ -572,102 +400,6 @@ class TestVifibSlapComputerGetComputerPartitionList(TestVifibSlapWebServiceMixin
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_Computer_getComputerPartitionList_AccountingResource_CancelledState(self):
"""
Check that calling Computer.getComputerPartitionList works in
cancelled state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = \
self.prepare_computer_partition_accounting_resource_sequence_string + '\
LoginDefaultUser \
CancelSalePackingList \
Tic \
CheckComputerPartitionAccoutingResourceSalePackingListCancelled \
Logout \
\
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_AccountingResource_ConfirmedState(self):
"""
Check that calling Computer.getComputerPartitionList works in
confirmed state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = \
self.prepare_computer_partition_accounting_resource_sequence_string + '\
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_AccountingResource_StartedState(self):
"""
Check that calling Computer.getComputerPartitionList works in
started state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = \
self.prepare_computer_partition_accounting_resource_started_sequence_string + '\
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_AccountingResource_StoppedState(self):
"""
Check that calling Computer.getComputerPartitionList works in
stopped state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = \
self.prepare_computer_partition_accounting_resource_stopped_sequence_string + '\
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_AccountingResource_DeliveredState(self):
"""
Check that calling Computer.getComputerPartitionList works in
delivered state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = \
self.prepare_computer_partition_accounting_resource_delivered_sequence_string + '\
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_Computer_getComputerPartitionList_twoSalePackingList(self): def test_Computer_getComputerPartitionList_twoSalePackingList(self):
""" """
Check that calling Computer.getComputerPartitionList uses the latest sale packing Check that calling Computer.getComputerPartitionList uses the latest sale packing
......
...@@ -217,311 +217,6 @@ class TestVifibSlapComputerPartitionError(TestVifibSlapWebServiceMixin): ...@@ -217,311 +217,6 @@ class TestVifibSlapComputerPartitionError(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_ComputerPartition_error_HostingResource_CancelledState(self):
"""
Check that calling ComputerPartition.error works in
cancelled state with the hosting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_start_requested_computer_partition_sequence_string + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Tic \
Logout \
\
SlapLoginCurrentComputer \
CheckSuccessComputerPartitionErrorCall \
Tic \
SlapLogout \
\
LoginDefaultUser \
CheckSalePackingListErrorText \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_CleanupResource_ConfirmedState(self):
"""
Check that calling ComputerPartition.error works in
confirmed state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_confirmed_cleanup_resource_packing_list + '\
SlapLoginCurrentComputer \
CheckSuccessComputerPartitionErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckSalePackingListErrorText \
CheckConfirmedSalePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_CleanupResource_CancelledState(self):
"""
Check that calling ComputerPartition.error works in
cancelled state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_confirmed_cleanup_resource_packing_list + '\
LoginDefaultUser \
CancelSalePackingList \
Tic \
CheckComputerPartitionInstanceCleanupSalePackingListCancelled \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
CleanTic \
SlapLogout \
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
CheckSalePackingListErrorText \
CleanTic \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_CleanupResource_StartedState(self):
"""
Check that calling ComputerPartition.error works in
started state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_confirmed_cleanup_resource_packing_list + '\
LoginDefaultUser \
StartSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSuccessComputerPartitionErrorCall \
CleanTic \
SlapLogout \
LoginDefaultUser \
CheckSalePackingListErrorText \
CheckStartedSalePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_CleanupResource_StoppedState(self):
"""
Check that calling ComputerPartition.error works in
stopped state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_confirmed_cleanup_resource_packing_list + '\
LoginDefaultUser \
StartSalePackingList \
CleanTic \
StopSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSuccessComputerPartitionErrorCall \
CleanTic \
SlapLogout \
LoginDefaultUser \
CheckSalePackingListErrorText \
CheckStoppedSalePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_CleanupResource_DeliveredState(self):
"""
Check that calling ComputerPartition.error works in
delivered state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_confirmed_cleanup_resource_packing_list + '\
LoginDefaultUser \
StartSalePackingList \
CleanTic \
StopSalePackingList \
CleanTic \
DeliverSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSuccessComputerPartitionErrorCall \
CleanTic \
SlapLogout \
LoginDefaultUser \
CheckSalePackingListErrorText \
CheckDeliveredSalePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_AccountingResource_ConfirmedState(self):
"""
Check that calling ComputerPartition.error works in
confirmed state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_computer_partition_accounting_resource_sequence_string + '\
LoginDefaultUser \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckSalePackingListNoErrorText \
SelectCurrentlyUsedSalePackingListUid \
CheckSalePackingListErrorText \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_AccountingResource_CancelledState(self):
"""
Check that calling ComputerPartition.error works in
cancelled state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_computer_partition_accounting_resource_sequence_string + '\
LoginDefaultUser \
CancelSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckSalePackingListNoErrorText \
CheckCancelledSalePackingList \
SelectCurrentlyUsedSalePackingListUid \
CheckSalePackingListErrorText \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_AccountingResource_StartedState(self):
"""
Check that calling ComputerPartition.error works in
started state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_computer_partition_accounting_resource_sequence_string + '\
LoginDefaultUser \
StartSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckSalePackingListNoErrorText \
CheckStartedSalePackingList \
SelectCurrentlyUsedSalePackingListUid \
CheckSalePackingListErrorText \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_AccountingResource_StoppedState(self):
"""
Check that calling ComputerPartition.error works in
stopped state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_computer_partition_accounting_resource_sequence_string + '\
LoginDefaultUser \
StartSalePackingList \
StopSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckSalePackingListNoErrorText \
CheckStoppedSalePackingList \
SelectCurrentlyUsedSalePackingListUid \
CheckSalePackingListErrorText \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_AccountingResource_DeliveredState(self):
"""
Check that calling ComputerPartition.error works in
delivered state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_computer_partition_accounting_resource_sequence_string + '\
LoginDefaultUser \
StartSalePackingList \
CleanTic \
StopSalePackingList \
CleanTic \
DeliverSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckSalePackingListNoErrorText \
CheckDeliveredSalePackingList \
SelectCurrentlyUsedSalePackingListUid \
CheckSalePackingListErrorText \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_error_twoSalePackingList(self): def test_ComputerPartition_error_twoSalePackingList(self):
""" """
Check that calling ComputerPartition.error uses the latest sale packing Check that calling ComputerPartition.error uses the latest sale packing
......
...@@ -41,28 +41,6 @@ class TestVifibSlapComputerPartitionGetInstanceParameterDict(TestVifibSlapWebSer ...@@ -41,28 +41,6 @@ class TestVifibSlapComputerPartitionGetInstanceParameterDict(TestVifibSlapWebSer
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_ComputerPartition_getInstanceParameterDict_cancelledState(self):
"""
Check that calling ComputerPartition.getInstanceParameterDict works in
cancelled state
"""
sequence_list = SequenceList()
sequence_string = self.prepare_install_requested_computer_partition_sequence_string + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Tic \
Logout \
SlapLoginCurrentSoftwareInstance \
CheckSuccessComputerPartitionGetInstanceParameterDictCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getInstanceParameterDict_startedState(self): def test_ComputerPartition_getInstanceParameterDict_startedState(self):
""" """
Check that calling ComputerPartition.getInstanceParameterDict works in Check that calling ComputerPartition.getInstanceParameterDict works in
......
...@@ -41,28 +41,6 @@ class TestVifibSlapComputerPartitionGetSoftwareRelease(TestVifibSlapWebServiceMi ...@@ -41,28 +41,6 @@ class TestVifibSlapComputerPartitionGetSoftwareRelease(TestVifibSlapWebServiceMi
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_ComputerPartition_getSoftwareRelease_cancelledState(self):
"""
Check that calling ComputerPartition.getSoftwareRelease works in
cancelled state
"""
sequence_list = SequenceList()
sequence_string = self.prepare_install_requested_computer_partition_sequence_string + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSuccessComputerPartitionGetSoftwareReleaseCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getSoftwareRelease_startedState(self): def test_ComputerPartition_getSoftwareRelease_startedState(self):
""" """
Check that calling ComputerPartition.getSoftwareRelease works in Check that calling ComputerPartition.getSoftwareRelease works in
......
...@@ -41,28 +41,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin): ...@@ -41,28 +41,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_ComputerPartition_getState_SetupResource_CancelledState(self):
"""
Check that calling ComputerPartition.getState works in
cancelled state with the setup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_install_requested_computer_partition_sequence_string + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getState_SetupResource_StartedState(self): def test_ComputerPartition_getState_SetupResource_StartedState(self):
""" """
Check that calling ComputerPartition.getState works in Check that calling ComputerPartition.getState works in
...@@ -140,28 +118,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin): ...@@ -140,28 +118,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_ComputerPartition_getState_HostingResource_CancelledState(self):
"""
Check that calling ComputerPartition.getState works in
cancelled state with the hosting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_start_requested_computer_partition_sequence_string + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getState_HostingResource_StartedState(self): def test_ComputerPartition_getState_HostingResource_StartedState(self):
""" """
Check that calling ComputerPartition.getState works in Check that calling ComputerPartition.getState works in
...@@ -230,72 +186,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin): ...@@ -230,72 +186,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_ComputerPartition_getState_CleanupResource_CancelledState(self):
"""
Check that calling ComputerPartition.getState works in
cancelled state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_destroy_requested_computer_partition + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
CancelSalePackingList \
Logout \
SlapLoginCurrentComputer \
CheckDestroyedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getState_CleanupResource_StartedState(self):
"""
Check that calling ComputerPartition.getState works in
started state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_destroy_requested_computer_partition + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
StartSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckDestroyedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getState_CleanupResource_StoppedState(self):
"""
Check that calling ComputerPartition.getState works in
stopped state with the cleanup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_destroy_requested_computer_partition + '\
LoginDefaultUser \
SelectCurrentlyUsedSalePackingListUid \
StartSalePackingList \
StopSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckDestroyedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getState_CleanupResource_DeliveredState(self): def test_ComputerPartition_getState_CleanupResource_DeliveredState(self):
""" """
Check that calling ComputerPartition.getState works in Check that calling ComputerPartition.getState works in
...@@ -314,95 +204,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin): ...@@ -314,95 +204,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_ComputerPartition_getState_AccountingResource_ConfirmedState(self):
"""
Check that calling ComputerPartition.getState works in
confirmed state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_computer_partition_accounting_resource_sequence_string + '\
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getState_AccountingResource_CancelledState(self):
"""
Check that calling ComputerPartition.getState works in
cancelled state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_computer_partition_accounting_resource_sequence_string + '\
LoginDefaultUser \
CancelSalePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getState_AccountingResource_StartedState(self):
"""
Check that calling ComputerPartition.getState works in
started state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_computer_partition_accounting_resource_started_sequence_string + '\
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getState_AccountingResource_StoppedState(self):
"""
Check that calling ComputerPartition.getState works in
stopped state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_computer_partition_accounting_resource_stopped_sequence_string + '\
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getState_AccountingResource_DeliveredState(self):
"""
Check that calling ComputerPartition.getState works in
delivered state with the accounting resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_computer_partition_accounting_resource_delivered_sequence_string + '\
SlapLoginCurrentComputer \
CheckStartedComputerPartitionGetStateCall \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_ComputerPartition_getState_twoSalePackingList(self): def test_ComputerPartition_getState_twoSalePackingList(self):
""" """
Check that calling ComputerPartition.getState uses the latest sale packing Check that calling ComputerPartition.getState uses the latest sale packing
......
...@@ -470,18 +470,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -470,18 +470,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self.portal.portal_preferences.getPreferredInstanceCleanupResource(), self.portal.portal_preferences.getPreferredInstanceCleanupResource(),
sequence) sequence)
def stepCheckComputerPartitionInstanceUpdateSalePackingListConfirmed(self,
sequence, **kw):
self._checkComputerPartitionSalePackingListState('confirmed',
self.portal.portal_preferences.getPreferredInstanceUpdateResource(),
sequence)
def stepCheckComputerPartitionInstanceCleanupSalePackingListCancelled(self,
sequence, **kw):
self._checkComputerPartitionSalePackingListState('cancelled',
self.portal.portal_preferences.getPreferredInstanceCleanupResource(),
sequence)
def stepCheckComputerPartitionInstanceCleanupSalePackingListConfirmed(self, def stepCheckComputerPartitionInstanceCleanupSalePackingListConfirmed(self,
sequence, **kw): sequence, **kw):
self._checkComputerPartitionSalePackingListState('confirmed', self._checkComputerPartitionSalePackingListState('confirmed',
...@@ -494,24 +482,12 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -494,24 +482,12 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self.portal.portal_preferences.getPreferredInstanceCleanupResource(), self.portal.portal_preferences.getPreferredInstanceCleanupResource(),
sequence) sequence)
def stepCheckComputerPartitionInstanceSetupSalePackingListCancelled(self,
sequence, **kw):
self._checkComputerPartitionSalePackingListState('cancelled',
self.portal.portal_preferences.getPreferredInstanceSetupResource(),
sequence)
def stepCheckComputerPartitionInstanceSetupSalePackingListDelivered(self, def stepCheckComputerPartitionInstanceSetupSalePackingListDelivered(self,
sequence, **kw): sequence, **kw):
self._checkComputerPartitionSalePackingListState('delivered', self._checkComputerPartitionSalePackingListState('delivered',
self.portal.portal_preferences.getPreferredInstanceSetupResource(), self.portal.portal_preferences.getPreferredInstanceSetupResource(),
sequence) sequence)
def stepCheckComputerPartitionInstanceHostingSalePackingListCancelled(self,
sequence, **kw):
self._checkComputerPartitionSalePackingListState('cancelled',
self.portal.portal_preferences.getPreferredInstanceHostingResource(),
sequence)
def stepCheckComputerPartitionInstanceHostingSalePackingListConfirmed(self, def stepCheckComputerPartitionInstanceHostingSalePackingListConfirmed(self,
sequence, **kw): sequence, **kw):
self._checkComputerPartitionSalePackingListState('confirmed', self._checkComputerPartitionSalePackingListState('confirmed',
...@@ -549,34 +525,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -549,34 +525,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
uid=sequence['service_uid']).getRelativeUrl(), uid=sequence['service_uid']).getRelativeUrl(),
sequence) sequence)
def stepCheckComputerPartitionAccoutingResourceSalePackingListConfirmed(self,
sequence, **kw):
self._checkComputerPartitionSalePackingListState('confirmed',
self.portal.portal_catalog.getResultValue(
uid=sequence['service_uid']).getRelativeUrl(),
sequence)
def stepCheckComputerPartitionAccoutingResourceSalePackingListStarted(self,
sequence, **kw):
self._checkComputerPartitionSalePackingListState('started',
self.portal.portal_catalog.getResultValue(
uid=sequence['service_uid']).getRelativeUrl(),
sequence)
def stepCheckComputerPartitionAccoutingResourceSalePackingListStopped(self,
sequence, **kw):
self._checkComputerPartitionSalePackingListState('stopped',
self.portal.portal_catalog.getResultValue(
uid=sequence['service_uid']).getRelativeUrl(),
sequence)
def stepCheckComputerPartitionAccoutingResourceSalePackingListDelivered(self,
sequence, **kw):
self._checkComputerPartitionSalePackingListState('delivered',
self.portal.portal_catalog.getResultValue(
uid=sequence['service_uid']).getRelativeUrl(),
sequence)
def stepPersonRequestSlaveInstance(self, sequence, **kw): def stepPersonRequestSlaveInstance(self, sequence, **kw):
kw = dict(instance_portal_type=self.slave_instance_portal_type, kw = dict(instance_portal_type=self.slave_instance_portal_type,
shared=True, shared=True,
...@@ -1128,20 +1076,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1128,20 +1076,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
Logout Logout
""" """
prepare_confirmed_cleanup_resource_packing_list = \
prepare_installed_computer_partition_sequence_string + """
LoginDefaultUser
CreateSalePackingList
Tic
CreateSalePackingListLine
Tic
SetSalePackingListLineCleanupResource
SetSalePackingListLineAggregate
StartBuildingSalePackingList
ConfirmSalePackingList
Tic
"""
prepare_destroy_requested_computer_partition = \ prepare_destroy_requested_computer_partition = \
prepare_installed_computer_partition_sequence_string + '\ prepare_installed_computer_partition_sequence_string + '\
LoginTestVifibCustomer \ LoginTestVifibCustomer \
...@@ -1213,51 +1147,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1213,51 +1147,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
Logout \ Logout \
' '
prepare_computer_partition_accounting_resource_sequence_string = \
prepare_installed_computer_partition_sequence_string + '\
LoginDefaultUser \
CreateSalePackingList \
CreateAccountingService \
Tic \
CreateSalePackingListLine \
Tic \
SetSalePackingListLineAccountingResource \
SetSalePackingListLineAggregate \
Tic \
StartBuildingSalePackingList \
ConfirmSalePackingList \
Tic \
CheckComputerPartitionAccoutingResourceSalePackingListConfirmed \
Logout \
'
prepare_computer_partition_accounting_resource_started_sequence_string = \
prepare_computer_partition_accounting_resource_sequence_string + '\
LoginDefaultUser \
StartSalePackingList \
Tic \
CheckComputerPartitionAccoutingResourceSalePackingListStarted \
Logout \
'
prepare_computer_partition_accounting_resource_stopped_sequence_string = \
prepare_computer_partition_accounting_resource_started_sequence_string + '\
LoginDefaultUser \
StopSalePackingList \
Tic \
CheckComputerPartitionAccoutingResourceSalePackingListStopped \
Logout \
'
prepare_computer_partition_accounting_resource_delivered_sequence_string = \
prepare_computer_partition_accounting_resource_stopped_sequence_string + '\
LoginDefaultUser \
DeliverSalePackingList \
Tic \
CheckComputerPartitionAccoutingResourceSalePackingListDelivered \
Logout \
'
prepare_children_a_children_b_sequence_string = \ prepare_children_a_children_b_sequence_string = \
prepare_install_requested_computer_partition_sequence_string + \ prepare_install_requested_computer_partition_sequence_string + \
""" """
...@@ -1302,38 +1191,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1302,38 +1191,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
Logout Logout
""" """
requesting_computer_partition_with_software_instance = """
SelectNewComputerPartitionReference
CreateComputerPartition
CreateSalePackingList
Tic
CreateSalePackingListLine
Tic
SetSalePackingListLineSetupResource
SetSalePackingListLineAggregate
ConfirmSalePackingList
StartBuildingSalePackingList
Tic
"""
slave_owner_computer_partition_with_software_instance = """
SelectNewComputerPartitionReference
CreateComputerPartition
SetSoftwareInstanceTitle
CreateSalePackingList
Tic
CreateSalePackingListLine
Tic
SetSalePackingListLineSetupResource
SetSalePackingListLineAggregate
ConfirmSalePackingList
StartBuildingSalePackingList
Tic
SetComputerPartitionQuantity
Tic
SelectCurrentComputerPartitionAsSlaveOwner
"""
prepare_another_computer_sequence_string = """ prepare_another_computer_sequence_string = """
StoreComputerReference StoreComputerReference
LoginTestVifibAdmin LoginTestVifibAdmin
...@@ -1482,19 +1339,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1482,19 +1339,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
) )
self.assertEquals(0, len(result_list)) self.assertEquals(0, len(result_list))
def stepCreateAccountingService(self, sequence, **kw):
"""
Create an accounting service
"""
module = self.portal.getDefaultModule(
portal_type=self.service_portal_type)
service = module.newContent(
portal_type=self.service_portal_type,
title="A custom accounting service")
self.markManualCreation(service)
service.validate()
sequence.edit(service_uid=service.getUid())
def stepCheckDraftComputerState(self, sequence, **kw): def stepCheckDraftComputerState(self, sequence, **kw):
""" """
Check that computer document is draft. Check that computer document is draft.
...@@ -1552,17 +1396,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1552,17 +1396,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def stepSelect0QuantityComputerPartition(self, sequence, **kw): def stepSelect0QuantityComputerPartition(self, sequence, **kw):
sequence.edit(computer_partition_quantity=0) sequence.edit(computer_partition_quantity=0)
def stepSetComputerPartitionQuantity(self, sequence, **kw):
"""
Set Computer Partition quantity, defaults to 1
"""
computer_partition_uid = sequence["computer_partition_uid"]
computer_partition = self.portal.portal_catalog.getResultValue(
uid=computer_partition_uid)
quantity = sequence.get('computer_partition_quantity',
1)
computer_partition.edit(quantity=quantity)
def stepSelectCurrentComputerPartitionAsSlaveOwner(self, sequence, **kw): def stepSelectCurrentComputerPartitionAsSlaveOwner(self, sequence, **kw):
computer_partition_uid = sequence["computer_partition_uid"] computer_partition_uid = sequence["computer_partition_uid"]
self.assertNotEqual(None, computer_partition_uid) self.assertNotEqual(None, computer_partition_uid)
...@@ -2719,95 +2552,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -2719,95 +2552,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self.assertRaises(slap.Unauthorized, computer_partition.building) self.assertRaises(slap.Unauthorized, computer_partition.building)
def stepCreateSalePackingList(self, sequence, **kw):
"""
Create an sale packing list document.
"""
module = self.portal.getDefaultModule(
portal_type=self.sale_packing_list_portal_type)
order = module.newContent(
portal_type=self.sale_packing_list_portal_type,
specialise='sale_trade_condition_module/vifib_trade_condition',
source='organisation_module/vifib_internet',
source_section='organisation_module/vifib_internet',
# XXX Hardcoded values
destination='person_module/test_vifib_customer',
destination_section='person_module/test_vifib_customer',
destination_decision='person_module/test_vifib_customer',
price_currency='currency_module/EUR',
start_date=DateTime(),
)
self.markManualCreation(order)
sequence.edit(sale_packing_list_uid=order.getUid())
def stepStartBuildingSalePackingList(self, sequence, **kw):
delivery = self.portal.portal_catalog.getResultValue(
uid=sequence['sale_packing_list_uid'])
delivery.startBuilding()
def stepCreateSalePackingListLine(self, sequence, **kw):
"""
Create an sale packing list line document.
"""
order = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_uid"])
line = order.newContent(
portal_type=self.sale_packing_list_line_portal_type,
quantity=1,
price=1
)
self.markManualCreation(line)
sequence.edit(sale_packing_list_line_uid=line.getUid())
def stepSetSalePackingListLineSetupResource(self, sequence, **kw):
"""
Associate the setup service to the sale packing list line.
"""
line = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_line_uid"])
line.edit(resource=self.portal.portal_preferences\
.getPreferredInstanceSetupResource())
def stepSetSalePackingListLineHostingResource(self, sequence, **kw):
"""
Associate the hosting service to the sale packing list line.
"""
line = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_line_uid"])
line.edit(resource=self.portal.portal_preferences\
.getPreferredInstanceHostingResource())
def stepSetSalePackingListLineCleanupResource(self, sequence, **kw):
"""
Associate the cleanup service to the sale packing list line.
"""
line = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_line_uid"])
line.edit(resource=self.portal.portal_preferences\
.getPreferredInstanceCleanupResource())
def stepSetSalePackingListLineAccountingResource(self, sequence, **kw):
"""
Associate an accounting service to the sale packing list line.
"""
line = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_line_uid"])
service_uid = sequence['service_uid']
line.edit(resource_uid=service_uid)
def stepSetSalePackingListLineAggregate(self, sequence, **kw):
"""
Associate a computer and a software release to the sale packing list line.
"""
line = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_line_uid"])
line.edit(
aggregate_uid_list=[sequence["computer_partition_uid"],
sequence["hosting_subscription_uid"],
sequence["software_instance_uid"],
sequence["software_release_uid"]]
)
def stepCheckNotFoundComputerPartitionBuildingAfterRegisterCall(self, sequence, def stepCheckNotFoundComputerPartitionBuildingAfterRegisterCall(self, sequence,
**kw): **kw):
""" """
...@@ -2833,46 +2577,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -2833,46 +2577,6 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
self.assertRaises(UnsupportedWorkflowMethod, self.assertRaises(UnsupportedWorkflowMethod,
order.portal_workflow.doActionFor, order, 'confirm_action') order.portal_workflow.doActionFor, order, 'confirm_action')
def stepConfirmSalePackingList(self, sequence, **kw):
"""
Confirm the sale packing list
"""
order = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_uid"])
order.portal_workflow.doActionFor(order, 'confirm_action')
def stepStartSalePackingList(self, sequence, **kw):
"""
Start the sale packing list
"""
order = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_uid"])
order.portal_workflow.doActionFor(order, 'start_action')
def stepStopSalePackingList(self, sequence, **kw):
"""
Stop the sale packing list
"""
order = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_uid"])
order.portal_workflow.doActionFor(order, 'stop_action')
def stepDeliverSalePackingList(self, sequence, **kw):
"""
Deliver the sale packing list
"""
order = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_uid"])
order.portal_workflow.doActionFor(order, 'deliver_action')
def stepCancelSalePackingList(self, sequence, **kw):
"""
Cancel the sale packing list
"""
order = self.portal.portal_catalog.getResultValue(
uid=sequence["sale_packing_list_uid"])
order.portal_workflow.doActionFor(order, 'cancel_action')
def stepCheckTicAndNotFoundComputerPartitionAvailableCall(self, sequence, def stepCheckTicAndNotFoundComputerPartitionAvailableCall(self, sequence,
**kw): **kw):
""" """
......
...@@ -103,7 +103,7 @@ class TestVifibUsageReportMixin(TestVifibSlapWebServiceMixin): ...@@ -103,7 +103,7 @@ class TestVifibUsageReportMixin(TestVifibSlapWebServiceMixin):
prepare_configured_instance = """ \ prepare_configured_instance = """ \
InitializeTime""" + \ InitializeTime""" + \
TestVifibSlapWebServiceMixin.prepare_confirmed_cleanup_resource_packing_list TestVifibSlapWebServiceMixin.prepare_destroy_requested_computer_partition
prepare_reported_usage_call = """ \ prepare_reported_usage_call = """ \
SlapLoginCurrentComputer \ SlapLoginCurrentComputer \
......
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