Commit 01da4c0a authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_configurator: Test if portal_alarm is subscribed by default

parent 54601f5c
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2012 Nexedi SA and Contributors. All Rights Reserved. # Copyright (C) 2013-2019 Nexedi SA and Contributors.
#
# This program is free software: you can Use, Study, Modify and Redistribute
# it under the terms of the GNU General Public License version 3, or (at your
# option) any later version, as published by the Free Software Foundation.
#
# You can also Link and Combine this program with other software covered by
# the terms of any of the Free Software licenses or any of the Open Source
# Initiative approved licenses and Convey the resulting work. Corresponding
# source of such a combination shall include the source code for all other
# software used.
#
# This program is distributed WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
# #
############################################################################## ##############################################################################
...@@ -128,6 +144,10 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin): ...@@ -128,6 +144,10 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin):
self.assertEqual(os.environ['TEST_CA_PATH'], self.assertEqual(os.environ['TEST_CA_PATH'],
self.portal.portal_certificate_authority.certificate_authority_path) self.portal.portal_certificate_authority.certificate_authority_path)
def testAlarmIsSubscribed(self):
""" Make sure portal_alarms is subscribed. """
self.assertTrue(self.portal.portal_alarms.isSubscribed())
def testModuleHasIdGeneratorByDay(self): def testModuleHasIdGeneratorByDay(self):
""" Ensure the Constraint sets appropriate id generator on all modules. """ Ensure the Constraint sets appropriate id generator on all modules.
""" """
......
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