Commit 42ad1f29 authored by Łukasz Nowak's avatar Łukasz Nowak

Cover cases of cleanup resource and building call.

parent 3f90f1e0
...@@ -46,6 +46,20 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin): ...@@ -46,6 +46,20 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_SoftwareRelease_building_CleanupResource_ConfirmedState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
SlapLoginCurrentComputer \
CheckNotFoundSoftwareReleaseBuildingCall \
Tic \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_building_SetupResource_CancelledState(self): def test_SoftwareRelease_building_SetupResource_CancelledState(self):
""" """
Check that calling SoftwareRelease.building works in Check that calling SoftwareRelease.building works in
...@@ -70,6 +84,24 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin): ...@@ -70,6 +84,24 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_SoftwareRelease_building_CleanupResource_CancelledState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
CancelPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckNotFoundSoftwareReleaseBuildingCall \
Tic \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_building_SetupResource_StartedState(self): def test_SoftwareRelease_building_SetupResource_StartedState(self):
""" """
Check that calling SoftwareRelease.building works in Check that calling SoftwareRelease.building works in
...@@ -95,6 +127,24 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin): ...@@ -95,6 +127,24 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_SoftwareRelease_building_CleanupResource_StartedState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckNotFoundSoftwareReleaseBuildingCall \
Tic \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_building_SetupResource_StoppedState(self): def test_SoftwareRelease_building_SetupResource_StoppedState(self):
""" """
Check that calling SoftwareRelease.building works in Check that calling SoftwareRelease.building works in
...@@ -121,6 +171,26 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin): ...@@ -121,6 +171,26 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_SoftwareRelease_building_CleanupResource_StoppedState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
Tic \
StopPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckNotFoundSoftwareReleaseBuildingCall \
Tic \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_building_SetupResource_DeliveredState(self): def test_SoftwareRelease_building_SetupResource_DeliveredState(self):
""" """
Check that calling SoftwareRelease.building works in Check that calling SoftwareRelease.building works in
...@@ -148,6 +218,28 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin): ...@@ -148,6 +218,28 @@ class TestVifibSlapSoftwareReleaseBuilding(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_SoftwareRelease_building_CleanupResource_DeliveredState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
Tic \
StopPurchasePackingList \
Tic \
DeliverPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckNotFoundSoftwareReleaseBuildingCall \
Tic \
SlapLogout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_building_twoPurchasePackingList(self): def test_SoftwareRelease_building_twoPurchasePackingList(self):
""" """
Check that calling SoftwareRelease.building uses the Purchase Packing List Check that calling SoftwareRelease.building uses the Purchase Packing List
......
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