Commit 49106680 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio_ui_test: Remove Authentication Events

This prevents some tests to work
parent 9fb46b08
Pipeline #9694 canceled with stages
......@@ -2,8 +2,8 @@
from DateTime import DateTime
portal = context.getPortalObject()
preference = portal.portal_preferences.getActiveSystemPreference()
preference = portal.portal_preferences.getActiveSystemPreference()
preference.edit(
preferred_credential_alarm_automatic_call=1,
preferred_credential_recovery_automatic_approval=1,
......@@ -74,4 +74,11 @@ except KeyError:
if slaprunner_software_release.getValidationState() == "draft":
slaprunner_software_release.publishAlive()
portal = context.getPortalObject()
# some are already indexed
kw = {'portal_type': ('Authentication Event', 'Passoword Event')}
for authentication_event in portal.portal_catalog(**kw):
portal.system_event_module.manage_delObjects(ids=[authentication_event.getId()])
return "Done."
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