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):
sequence_list.addSequenceString(sequence_string)
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):
"""Proves that even if some packing lists are not fully delivered
it is possible to destroy software instance"""
......
......@@ -217,311 +217,6 @@ class TestVifibSlapComputerPartitionError(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string)
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):
"""
Check that calling ComputerPartition.error uses the latest sale packing
......
......@@ -41,28 +41,6 @@ class TestVifibSlapComputerPartitionGetInstanceParameterDict(TestVifibSlapWebSer
sequence_list.addSequenceString(sequence_string)
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):
"""
Check that calling ComputerPartition.getInstanceParameterDict works in
......
......@@ -41,28 +41,6 @@ class TestVifibSlapComputerPartitionGetSoftwareRelease(TestVifibSlapWebServiceMi
sequence_list.addSequenceString(sequence_string)
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):
"""
Check that calling ComputerPartition.getSoftwareRelease works in
......
......@@ -41,28 +41,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string)
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):
"""
Check that calling ComputerPartition.getState works in
......@@ -140,28 +118,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string)
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):
"""
Check that calling ComputerPartition.getState works in
......@@ -230,72 +186,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string)
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):
"""
Check that calling ComputerPartition.getState works in
......@@ -314,95 +204,6 @@ class TestVifibSlapComputerPartitionGetState(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string)
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):
"""
Check that calling ComputerPartition.getState uses the latest sale packing
......
......@@ -103,7 +103,7 @@ class TestVifibUsageReportMixin(TestVifibSlapWebServiceMixin):
prepare_configured_instance = """ \
InitializeTime""" + \
TestVifibSlapWebServiceMixin.prepare_confirmed_cleanup_resource_packing_list
TestVifibSlapWebServiceMixin.prepare_destroy_requested_computer_partition
prepare_reported_usage_call = """ \
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