Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
erp5
Commits
c6794993
Commit
c6794993
authored
May 05, 2017
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testUpgrader: test that post-upgrader alarm is not triggered during a sense of full-upgrade
parent
535dd563
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
bt5/erp5_upgrader/TestTemplateItem/portal_components/test.erp5.testUpgrader.py
...tTemplateItem/portal_components/test.erp5.testUpgrader.py
+25
-0
No files found.
bt5/erp5_upgrader/TestTemplateItem/portal_components/test.erp5.testUpgrader.py
View file @
c6794993
...
...
@@ -306,6 +306,11 @@ class TestUpgrader(ERP5TypeTestCase):
alarm_id="
promise_check_upgrade
")
self.assertTrue(sense, detail_list)
def stepCheckFullUpgradeNotRequired(self, sequence=None):
sense, detail_list = self._checkAlarmSense(
alarm_id="
promise_check_upgrade
")
self.assertFalse(sense, detail_list)
def stepCheckPostUpgradeNotRequired(self, sequence=None):
sense, detail_list = self._checkAlarmSense(
alarm_id="
upgrader_check_post_upgrade
")
...
...
@@ -743,3 +748,23 @@ class TestUpgrader(ERP5TypeTestCase):
"""
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_sense_full_upgrade_do_not_sense_post_upgrade(self):
"""
Check that the post-upgrade consistency check is not run
when running the activeSense method of the full-upgrade alarm,
as post-upgrade will give inconsistent result
"""
sequence_list = SequenceList()
sequence_string = """
stepRunUpgrader
stepTic
stepCreatePerson
stepValidatePerson
stepSetConstraintInPersonModulePortalType
stepTic
stepCheckFullUpgradeNotRequired
stepCheckPostUpgradeRequired
"""
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment