Commit d5f71e30 by Rafael Monnerat Committed by Alain Takoudjou

slapos_erp5: Enable alarms for the test purpose.

1 parent 8cb51987
......@@ -18,6 +18,15 @@ class TestSlapOSDump(SlapOSTestCaseMixin):
return path
def test(self):
#####
# Expected configuration to be found in production has some diffs compared to the latest
# test or a development instance. So the code bellow is to ajust the delta.
for alarm_id in ['slapos_crm_check_update_personal_allocation_scope',
'slapos_crm_stop_hosting_subscription',
'slapos_crm_delete_hosting_subscription']:
self.portal.portal_alarms[alarm_id].setEnabled(1)
#####
issue_count = 0
for dump, filename in [
('ERP5Site_dumpAlarmToolConfiguration', 'expected_alarm_tool_dumped_configuration'),
......@@ -41,4 +50,4 @@ class TestSlapOSDump(SlapOSTestCaseMixin):
issue_count += 1
else:
ZopeTestCase._print('Stored dump %s in %s\n' % (dump, location))
self.assertEqual(0, issue_count)
\ No newline at end of file
self.assertEqual(0, issue_count)
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!