Commit b8c0a5b2 authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: drop tests for dropped scripts

parent 25e5c7f0
...@@ -782,145 +782,3 @@ class TestItem_getSecurityCategoryFromMovementAggregateComputeNodeDestinationSec ...@@ -782,145 +782,3 @@ class TestItem_getSecurityCategoryFromMovementAggregateComputeNodeDestinationSec
self.assertEqual([{'destination_section': [org.getRelativeUrl()]}], self.assertEqual([{'destination_section': [org.getRelativeUrl()]}],
self.portal.Item_getSecurityCategoryFromMovementAggregateComputeNodeDestinationSection( self.portal.Item_getSecurityCategoryFromMovementAggregateComputeNodeDestinationSection(
["destination_section", "destination_project"], None, support, None)) ["destination_section", "destination_project"], None, support, None))
class TestEvent_getSecurityCategoryFromMovementFollowUpAggregateDestination(TestSlapOSCoreMixin):
def test(self):
person = self.createPerson()
instance_tree = self.createInstanceTree(person)
support = self.portal.support_request_module.newContent(
portal_type="Support Request",
aggregate=instance_tree.getRelativeUrl()
)
event = self.portal.event_module.newContent(
portal_type="Web Message",
follow_up=support.getRelativeUrl()
)
org = self.portal.organisation_module.newContent(
portal_type='Organisation')
self.tic()
self.login(person.getUserId())
instance_tree.requestTransfer(
destination_project=None,
destination_section=None,
destination=org.getRelativeUrl())
self.login()
self.tic()
self.assertEqual([],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateDestination(
[], None, None, None))
self.assertEqual([{'destination': [org.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateDestination(
[], None, event, None))
self.assertEqual([{'destination': [org.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateDestination(
["destination_section"], None, event, None))
self.assertEqual([{'destination': [org.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateDestination(
["destination"], None, event, None))
self.assertEqual([{'destination': [org.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateDestination(
["destination_section", "destination_project"], None, event, None))
class TestEvent_getSecurityCategoryFromMovementFollowUpAggregateComputeNodeDestinationSection(TestSlapOSCoreMixin):
def test(self):
person = self.createPerson()
node = self.createComputeNode(person)
support = self.portal.support_request_module.newContent(
portal_type="Support Request",
aggregate=node.getRelativeUrl()
)
event = self.portal.event_module.newContent(
portal_type="Web Message",
follow_up=support.getRelativeUrl()
)
org = self.portal.organisation_module.newContent(
portal_type='Organisation')
self.tic()
self.login(person.getUserId())
node.requestTransfer(
destination_project=None,
destination=org.getRelativeUrl(),
destination_section=org.getRelativeUrl())
self.login()
self.tic()
self.assertEqual([],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateComputeNodeDestinationSection(
[], None, None, None))
self.assertEqual([{'destination_section': [org.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateComputeNodeDestinationSection(
[], None, event, None))
self.assertEqual([{'destination_section': [org.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateComputeNodeDestinationSection(
["destination_section"], None, event, None))
self.assertEqual([{'destination_section': [org.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateComputeNodeDestinationSection(
["destination"], None, event, None))
self.assertEqual([{'destination_section': [org.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateComputeNodeDestinationSection(
["destination_section", "destination_project"], None, event, None))
class TestEvent_getSecurityCategoryFromMovementFollowUpAggregateDestinationProject(TestSlapOSCoreMixin):
def test(self):
person = self.createPerson()
node = self.createComputeNode(person)
support = self.portal.support_request_module.newContent(
portal_type="Support Request",
aggregate=node.getRelativeUrl()
)
event = self.portal.event_module.newContent(
portal_type="Web Message",
follow_up=support.getRelativeUrl()
)
org = self.portal.organisation_module.newContent(
portal_type='Organisation')
project = self.portal.project_module.newContent(
portal_type='Project')
self.tic()
self.login(person.getUserId())
node.requestTransfer(
destination_project=project.getRelativeUrl(),
destination=org.getRelativeUrl(),
destination_section=None)
self.login()
self.tic()
self.assertEqual([],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateDestinationProject(
[], None, None, None))
self.assertEqual([{'destination_project': [project.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateDestinationProject(
[], None, event, None))
self.assertEqual([{'destination_project': [project.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateDestinationProject(
["destination_section"], None, event, None))
self.assertEqual([{'destination_project': [project.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateDestinationProject(
["destination"], None, event, None))
self.assertEqual([{'destination_project': [project.getRelativeUrl()]}],
self.portal.Event_getSecurityCategoryFromMovementFollowUpAggregateDestinationProject(
["destination_section", "destination_project"], None, event, None))
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