Commit 42d4d863 authored by Romain Courteaud's avatar Romain Courteaud

slapos_rss_style: test: fixup permission issue

parent c8fd80f8
...@@ -292,10 +292,14 @@ class TestSlapOSFolder_getOpenTicketList(TestRSSSyleSkinsMixin): ...@@ -292,10 +292,14 @@ class TestSlapOSFolder_getOpenTicketList(TestRSSSyleSkinsMixin):
'{}-{}'.format(event.getFollowUp(), '{}-{}'.format(event.getFollowUp(),
event.getRelativeUrl())) event.getRelativeUrl()))
self.logout()
self.login()
ticket.start() ticket.start()
with TemporaryAlarmScript(self.portal, 'Base_reindexAndSenseAlarm', with TemporaryAlarmScript(self.portal, 'Base_reindexAndSenseAlarm',
"'disabled'", attribute='comment'): "'disabled'", attribute='comment'):
self.tic() self.tic()
self.login(ticket.getDestinationDecisionValue().getUserId())
self.portal.portal_skins.changeSkin('RSS') self.portal.portal_skins.changeSkin('RSS')
open_ticket_list = module.Folder_getOpenTicketList() open_ticket_list = module.Folder_getOpenTicketList()
self.assertEqual(len(open_ticket_list), expected_amount) self.assertEqual(len(open_ticket_list), expected_amount)
...@@ -545,10 +549,14 @@ class TestSlapOSBase_getTicketRelatedEventList(TestRSSSyleSkinsMixin): ...@@ -545,10 +549,14 @@ class TestSlapOSBase_getTicketRelatedEventList(TestRSSSyleSkinsMixin):
self.assertEqual(open_related_ticket_list[0].title, self.assertEqual(open_related_ticket_list[0].title,
ticket.getTitle()) ticket.getTitle())
self.logout()
self.login()
ticket.start() ticket.start()
with TemporaryAlarmScript(self.portal, 'Base_reindexAndSenseAlarm', with TemporaryAlarmScript(self.portal, 'Base_reindexAndSenseAlarm',
"'disabled'", attribute='comment'): "'disabled'", attribute='comment'):
self.tic() self.tic()
self.login(person.getUserId())
self.portal.portal_skins.changeSkin('RSS') self.portal.portal_skins.changeSkin('RSS')
open_related_ticket_list = document.Base_getTicketRelatedEventList() open_related_ticket_list = document.Base_getTicketRelatedEventList()
self.assertEqual(len(open_related_ticket_list), 1) self.assertEqual(len(open_related_ticket_list), 1)
......
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