Commit c3ecc095 authored by Romain Courteaud's avatar Romain Courteaud

slapos_configurator: test

parent 7440f417
......@@ -59,12 +59,12 @@ class TestSlapOSConfigurator(SlapOSTestCaseMixin):
self.portal.portal_preferences.fixConsistency()
consistency_list = pref_tool.checkConsistency()
self.assertEqual(len(consistency_list), 1)
self.assertEqual(str(consistency_list[0]), 'The System Preference subscription assignment should have a destination_project')
self.assertEqual(str(consistency_list[0].message), 'The System Preference subscription assignment should have a destination_project')
# Check if configuration is properly set:
consistency_list = pref_tool.slapos_default_system_preference.SystemPreference_checkSystemPreferenceConsistency()
self.assertEqual(len(consistency_list), 1)
self.assertEqual(str(consistency_list[0]), 'The System Preference subscription assignment should have a destination_project')
self.assertEqual(str(consistency_list[0].message), 'The System Preference subscription assignment should have a destination_project')
def testConfiguredCertificateAuthoringConstraint(self):
"""Make sure Certificate Authoring was configured well,
......
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