Commit c9497769 authored by Tatuya Kamada's avatar Tatuya Kamada

Add a test to reproduce a bug that to cancel a bug causes an authorization...

Add a test to reproduce a bug that to cancel a bug causes an authorization failer. Because canceling a bug try to create an event by the after script, but the script can not create an event when cancelled state except a manager role user.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32762 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cc8c6557
##############################################################################
#############################################################################
#
# Copyright (c) 2007-2008 Nexedi SA and Contributors. All Rights Reserved.
# Kevin Deldycke <kevin_AT_nexedi_DOT_com>
......@@ -491,24 +491,24 @@ class TestBug(ERP5TypeTestCase):
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet)
# This tests is not Appliable anymore. It will be kept for a while.
# def test_04_StopDateUpdatedOnCancel(self, quiet=QUIET, run=RUN_ALL_TEST):
# """
# Same test as above but on cancel action (test bug #600).
# """
# if not run: return
# sequence_list = SequenceList()
# step_list = [ 'stepCreateBug'
# , 'stepOpenBug'
# , 'stepTic'
# , 'stepSetOldClosedDate'
# , 'stepCancelBug'
# , 'stepTic'
# , 'stepCheckClosedDate'
# ]
# sequence_string = ' '.join(step_list)
# sequence_list.addSequenceString(sequence_string)
# sequence_list.play(self, quiet=quiet)
def test_04_StopDateUpdatedOnCancelWithUsualUser(self, quiet=QUIET, run=RUN_ALL_TEST):
"""
Test that cancelBug with usual user.
"""
if not run: return
sequence_list = SequenceList()
step_list = [ 'stepLoginUsualUser'
, 'stepCreateBug'
, 'stepOpenBug'
, 'stepTic'
, 'stepSetOldClosedDate'
, 'stepCancelBug'
, 'stepTic'
, 'stepCheckClosedDate'
]
sequence_string = ' '.join(step_list)
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=quiet)
def test_05_setCheckBugClone(self, quiet=QUIET, run=RUN_ALL_TEST):
"""
......
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