Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Eteri
erp5
Commits
c6794993
Commit
c6794993
authored
7 years ago
by
Nicolas Wavrant
Browse files
Options
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
This diff is collapsed.
Click to expand it.
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