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):
LoginDefaultUser \
CheckStoppedPurchasePackingList \
CheckSoftwareReleaseAvailableForRequest \
CheckSoftwareReleaseInPublicTable \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......
......@@ -31,6 +31,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
LoginDefaultUser \
CheckDeliveredPurchasePackingList \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......@@ -48,6 +49,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
SlapLogout \
LoginERP5TypeTestCase \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
CheckSiteConsistency \
Logout \
'
......@@ -63,6 +65,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
self.prepare_software_release_cleanup_confirmed_packing_list + '\
LoginDefaultUser \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
SetCurrentPurchasePackingListAsB \
SlapLoginCurrentComputer \
CheckSuccessSoftwareReleaseDestroyedCall \
......@@ -71,6 +74,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA \
CheckDeliveredPurchasePackingListB \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \
SlapLogout \
LoginERP5TypeTestCase \
......@@ -87,6 +91,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
StartPurchasePackingList \
Tic \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
SetCurrentPurchasePackingListAsA \
Logout' + \
self.prepare_software_release_cleanup_confirmed_packing_list + '\
......@@ -98,6 +103,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA \
CheckDeliveredPurchasePackingListB \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \
SlapLogout \
LoginERP5TypeTestCase \
......@@ -115,6 +121,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
Tic \
StopPurchasePackingList \
Tic \
CheckSoftwareReleaseInPublicTable \
CheckSoftwareReleaseAvailableForRequest \
SetCurrentPurchasePackingListAsA \
Logout' + \
......@@ -127,6 +134,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA \
CheckDeliveredPurchasePackingListB \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \
SlapLogout \
LoginERP5TypeTestCase \
......@@ -159,6 +167,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA \
CheckDeliveredPurchasePackingListB \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \
SlapLogout \
LoginERP5TypeTestCase \
......@@ -175,6 +184,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CancelPurchasePackingList \
Tic \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
SetCurrentPurchasePackingListAsA \
Logout' + \
self.prepare_software_release_cleanup_confirmed_packing_list + '\
......@@ -186,6 +196,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckCancelledPurchasePackingListA \
CheckDeliveredPurchasePackingListB \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \
SlapLogout \
LoginERP5TypeTestCase \
......@@ -202,6 +213,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CancelPurchasePackingList \
Tic \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \
SlapLoginCurrentComputer \
CheckNotFoundSoftwareReleaseDestroyedCall \
......@@ -210,6 +222,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
LoginDefaultUser \
CheckCancelledPurchasePackingList \
CheckSoftwareReleaseUnavailableForRequest \
CheckSoftwareReleaseNotInPublicTable \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
......
......@@ -233,6 +233,23 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def stepCheckSoftwareReleaseUnavailableForRequest(self, sequence, **kw):
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):
sm = getSecurityManager()
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