Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
13c1c883
Commit
13c1c883
authored
Aug 01, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: test: allow to disable alarm when validation a allocation supply
parent
8155dc05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
...teItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
+8
-2
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
View file @
13c1c883
...
...
@@ -822,7 +822,8 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
def
addAllocationSupply
(
self
,
title
,
node
,
software_product
,
software_release
,
software_type
,
destination_value
=
None
,
is_slave_on_same_instance_tree_allocable
=
False
):
is_slave_on_same_instance_tree_allocable
=
False
,
disable_alarm
=
False
):
allocation_supply
=
self
.
portal
.
allocation_supply_module
.
newContent
(
portal_type
=
"Allocation Supply"
,
title
=
title
,
...
...
@@ -861,6 +862,11 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
predicate_category_list
=
cell_key
,
variation_category_list
=
cell_key
)
if
disable_alarm
:
# disable generation of Upgrade Decision
with
TemporaryAlarmScript
(
self
.
portal
,
'Base_reindexAndSenseAlarm'
,
"'disabled'"
):
allocation_supply
.
validate
()
else
:
allocation_supply
.
validate
()
return
allocation_supply
...
...
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