Commit df2b6f45 authored by Rafael Monnerat's avatar Rafael Monnerat

testSlapOSMixin: Invoke post_upgrade on all the time is too slow

  Only invoke the script on configurator tests, to prevent some properties (like memcache information),
  be overwriten by the initialisation.
parent a13adb62
...@@ -1363,7 +1363,7 @@ class TestSlapOSUpdateComputerCapacityScopeAlarm(testSlapOSMixin): ...@@ -1363,7 +1363,7 @@ class TestSlapOSUpdateComputerCapacityScopeAlarm(testSlapOSMixin):
'text': '#access ok', 'text': '#access ok',
'created_at': rfc1123_date(DateTime()) 'created_at': rfc1123_date(DateTime())
}) })
transaction.commit() self.commit()
def test_Computer_checkAndUpdateCapacityScope(self): def test_Computer_checkAndUpdateCapacityScope(self):
self.computer.Computer_checkAndUpdateCapacityScope() self.computer.Computer_checkAndUpdateCapacityScope()
......
...@@ -11,6 +11,12 @@ import os ...@@ -11,6 +11,12 @@ import os
class TestSlapOSConfigurator(testSlapOSMixin): class TestSlapOSConfigurator(testSlapOSMixin):
def bootstrapSite(self):
super(TestSlapOSConfigurator, self).bootstrapSite()
self.getBusinessConfiguration().BusinessConfiguration_invokeSlapOSMasterPromiseAlarmList()
self.tic()
def testConfiguredModuleGeneratorIDViaConstraint(self): def testConfiguredModuleGeneratorIDViaConstraint(self):
""" Make sure Generator ID is well configured, in this """ Make sure Generator ID is well configured, in this
case we trust on promise outcome.""" case we trust on promise outcome."""
......
...@@ -248,7 +248,6 @@ class testSlapOSMixin(ERP5TypeTestCase): ...@@ -248,7 +248,6 @@ class testSlapOSMixin(ERP5TypeTestCase):
self.setupPortalAlarms() self.setupPortalAlarms()
self.createCertificateAuthorityFile() self.createCertificateAuthorityFile()
self.getDefaultSystemPreference().setPreferredHateoasUrl("http://dummy/") self.getDefaultSystemPreference().setPreferredHateoasUrl("http://dummy/")
self.getBusinessConfiguration().BusinessConfiguration_invokeSlapOSMasterPromiseAlarmList()
self.clearCache() self.clearCache()
self.tic() self.tic()
......
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