Commit 113f3518 authored by Romain Courteaud's avatar Romain Courteaud

Drop purchase packing list state tests.

Software release installation status does not depend anymore on Purchase
Packing List state.
parent d8d239a2
......@@ -25,292 +25,6 @@ class TestVifibSlapSoftwareReleaseError(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_SetupResource_ConfirmedState(self):
"""
Check that calling SoftwareRelease.error works in
confirmed state with the setup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_purchase_packing_list + '\
SlapLoginCurrentComputer \
CheckSuccessSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListErrorText \
CheckConfirmedPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_SetupResource_CancelledState(self):
"""
Check that calling SoftwareRelease.error works in
cancelled state with the setup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_purchase_packing_list + '\
LoginDefaultUser \
CancelPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListNoErrorText \
CheckCancelledPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_SetupResource_StartedState(self):
"""
Check that calling SoftwareRelease.error works in
started state with the setup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSuccessSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListErrorText \
CheckStartedPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_SetupResource_StoppedState(self):
"""
Check that calling SoftwareRelease.error works in
stopped state with the setup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
StopPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListNoErrorText \
CheckStoppedPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_SetupResource_DeliveredState(self):
"""
Check that calling SoftwareRelease.error works in
delivered state with the setup resource
"""
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
StopPurchasePackingList \
DeliverPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListNoErrorText \
CheckDeliveredPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_CleanupResource_ConfirmedState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
SlapLoginCurrentComputer \
CheckSuccessSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListErrorText \
CheckConfirmedPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_CleanupResource_CancelledState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
CancelPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListNoErrorText \
CheckCancelledPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_CleanupResource_StartedState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSuccessSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListErrorText \
CheckStartedPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_CleanupResource_StoppedState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
StopPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListNoErrorText \
CheckStoppedPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_CleanupResource_DeliveredState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
StopPurchasePackingList \
DeliverPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListNoErrorText \
CheckDeliveredPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_twoPurchasePackingList(self):
"""
Check that calling SoftwareRelease.error uses the latest purchase packing
list for calculation
"""
sequence_list = SequenceList()
sequence_string = self.prepare_two_purchase_packing_list + '\
SlapLoginCurrentComputer \
CheckSuccessComputerGetSoftwareReleaseListCall \
SlapLogout \
LoginDefaultUser \
StepPurchasePackingListBStartDateAfterPurchasePackingListA \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSuccessSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListErrorText \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_string = self.prepare_two_purchase_packing_list + '\
SlapLoginCurrentComputer \
CheckSuccessComputerGetSoftwareReleaseListCall \
SlapLogout \
LoginDefaultUser \
StepPurchasePackingListBStartDateBeforePurchasePackingListA \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSuccessSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListErrorText \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_suite():
suite = unittest.TestSuite()
......
......@@ -20,13 +20,6 @@ class TestVifibSlapSupply(TestVifibSlapWebServiceMixin):
# Supply.supply
########################################
def stepSupplyComputerSoftwareReleaseAvailable(self, sequence, **kw):
self.slap = slap.slap()
self.slap.initializeConnection(self.server_url, timeout=None)
supply = self.slap.registerSupply()
supply.supply(sequence['software_release_uri'],
sequence['computer_reference'], 'available')
def stepSupplyComputerSoftwareReleaseAvailableRaisesNotImplementedError(self,
sequence, **kw):
# slap not used to raise on server side
......@@ -36,13 +29,6 @@ class TestVifibSlapSupply(TestVifibSlapWebServiceMixin):
computer.requestSoftwareRelease,
software_release_url=sequence['software_release_uri'], state='available')
def stepSupplyComputerSoftwareReleaseDestroyed(self, sequence, **kw):
self.slap = slap.slap()
self.slap.initializeConnection(self.server_url, timeout=None)
supply = self.slap.registerSupply()
supply.supply(sequence['software_release_uri'],
sequence['computer_reference'], 'destroyed')
def stepSupplyComputerSoftwareReleaseDestroyedRaisesNotImplementedError(self,
sequence, **kw):
# slap not used to raise on server side
......
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