Commit acce1763 authored by Łukasz Nowak's avatar Łukasz Nowak

Check filling (or not) of software_release table.

parent 0d4e150b
...@@ -165,6 +165,7 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin): ...@@ -165,6 +165,7 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin):
LoginDefaultUser \ LoginDefaultUser \
CheckStoppedPurchasePackingList \ CheckStoppedPurchasePackingList \
CheckSoftwareReleaseAvailableForRequest \ CheckSoftwareReleaseAvailableForRequest \
CheckSoftwareReleaseInPublicTable \
Logout \ Logout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CheckSiteConsistency \ CheckSiteConsistency \
......
...@@ -31,6 +31,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -31,6 +31,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
LoginDefaultUser \ LoginDefaultUser \
CheckDeliveredPurchasePackingList \ CheckDeliveredPurchasePackingList \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \ Logout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CheckSiteConsistency \ CheckSiteConsistency \
...@@ -48,6 +49,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -48,6 +49,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
CheckSiteConsistency \ CheckSiteConsistency \
Logout \ Logout \
' '
...@@ -63,6 +65,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -63,6 +65,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
self.prepare_software_release_cleanup_confirmed_packing_list + '\ self.prepare_software_release_cleanup_confirmed_packing_list + '\
LoginDefaultUser \ LoginDefaultUser \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
SetCurrentPurchasePackingListAsB \ SetCurrentPurchasePackingListAsB \
SlapLoginCurrentComputer \ SlapLoginCurrentComputer \
CheckSuccessSoftwareReleaseDestroyedCall \ CheckSuccessSoftwareReleaseDestroyedCall \
...@@ -71,6 +74,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -71,6 +74,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA \ CheckDeliveredPurchasePackingListA \
CheckDeliveredPurchasePackingListB \ CheckDeliveredPurchasePackingListB \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \ Logout \
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
...@@ -87,6 +91,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -87,6 +91,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
StartPurchasePackingList \ StartPurchasePackingList \
Tic \ Tic \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
SetCurrentPurchasePackingListAsA \ SetCurrentPurchasePackingListAsA \
Logout' + \ Logout' + \
self.prepare_software_release_cleanup_confirmed_packing_list + '\ self.prepare_software_release_cleanup_confirmed_packing_list + '\
...@@ -98,6 +103,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -98,6 +103,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA \ CheckDeliveredPurchasePackingListA \
CheckDeliveredPurchasePackingListB \ CheckDeliveredPurchasePackingListB \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \ Logout \
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
...@@ -115,6 +121,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -115,6 +121,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
Tic \ Tic \
StopPurchasePackingList \ StopPurchasePackingList \
Tic \ Tic \
CheckSoftwareReleaseInPublicTable \
CheckSoftwareReleaseAvailableForRequest \ CheckSoftwareReleaseAvailableForRequest \
SetCurrentPurchasePackingListAsA \ SetCurrentPurchasePackingListAsA \
Logout' + \ Logout' + \
...@@ -127,6 +134,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -127,6 +134,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA \ CheckDeliveredPurchasePackingListA \
CheckDeliveredPurchasePackingListB \ CheckDeliveredPurchasePackingListB \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \ Logout \
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
...@@ -159,6 +167,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -159,6 +167,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA \ CheckDeliveredPurchasePackingListA \
CheckDeliveredPurchasePackingListB \ CheckDeliveredPurchasePackingListB \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \ Logout \
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
...@@ -175,6 +184,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -175,6 +184,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CancelPurchasePackingList \ CancelPurchasePackingList \
Tic \ Tic \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
SetCurrentPurchasePackingListAsA \ SetCurrentPurchasePackingListAsA \
Logout' + \ Logout' + \
self.prepare_software_release_cleanup_confirmed_packing_list + '\ self.prepare_software_release_cleanup_confirmed_packing_list + '\
...@@ -186,6 +196,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -186,6 +196,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckCancelledPurchasePackingListA \ CheckCancelledPurchasePackingListA \
CheckDeliveredPurchasePackingListB \ CheckDeliveredPurchasePackingListB \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \ Logout \
SlapLogout \ SlapLogout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
...@@ -202,6 +213,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -202,6 +213,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CancelPurchasePackingList \ CancelPurchasePackingList \
Tic \ Tic \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \ Logout \
SlapLoginCurrentComputer \ SlapLoginCurrentComputer \
CheckNotFoundSoftwareReleaseDestroyedCall \ CheckNotFoundSoftwareReleaseDestroyedCall \
...@@ -210,6 +222,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin): ...@@ -210,6 +222,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
LoginDefaultUser \ LoginDefaultUser \
CheckCancelledPurchasePackingList \ CheckCancelledPurchasePackingList \
CheckSoftwareReleaseUnavailableForRequest \ CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \ Logout \
LoginERP5TypeTestCase \ LoginERP5TypeTestCase \
CheckSiteConsistency \ CheckSiteConsistency \
......
...@@ -233,6 +233,23 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -233,6 +233,23 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def stepCheckSoftwareReleaseUnavailableForRequest(self, sequence, **kw): def stepCheckSoftwareReleaseUnavailableForRequest(self, sequence, **kw):
self.assertTrue(self._getRequestBasedComputerPartitionCount(sequence) == 0) self.assertTrue(self._getRequestBasedComputerPartitionCount(sequence) == 0)
def _getSoftwareReleasePublicTableAmount(self, sequence, **kw):
self.getPortal().portal_skins.changeSkin("Hosting")
request.set('portal_skin', "Hosting")
amount = len(self.portal.Base_getAvailableSoftwareReleaseList(
**{'software_release.url': sequence['software_release_uri']}))
self.portal.web_site_module.hosting.WebSection_registerNewComputer(
title=sequence['computer_title'])
self.getPortal().portal_skins.changeSkin("View")
request.set('portal_skin', "View")
return amount
def stepCheckSoftwareReleaseInPublicTable(self, sequence, **kw):
self.assertFalse(0, self._getSoftwareReleasePublicTableAmount(sequence))
def stepCheckSoftwareReleaseNotInPublicTable(self, sequence, **kw):
self.assertTrue(0, self._getSoftwareReleasePublicTableAmount(sequence))
def stepTriggerConfirmPlannedInvoiceAlarm(self, sequence, **kw): def stepTriggerConfirmPlannedInvoiceAlarm(self, sequence, **kw):
sm = getSecurityManager() sm = getSecurityManager()
self.login() self.login()
......
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