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
a30b3bdc
Commit
a30b3bdc
authored
Jan 02, 2023
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: Allocation Supply need an aggregated Node
parent
96bb07f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSAllocationSupply.py
...portal_components/test.erp5.testSlapOSAllocationSupply.py
+8
-1
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSAllocationSupply.py
View file @
a30b3bdc
...
...
@@ -57,6 +57,11 @@ class TestSlapOSAllocationSupply(SlapOSTestCaseMixin):
person_1
=
self
.
portal
.
person_module
.
newContent
()
person_2
=
self
.
portal
.
person_module
.
newContent
()
# create 1 compute node
compute_node_1
=
self
.
portal
.
compute_node_module
.
newContent
(
portal_type
=
"Compute Node"
)
# Create 2 allocation supplies
# - one for everybody (no destination)
# - one for one specific user
...
...
@@ -64,12 +69,14 @@ class TestSlapOSAllocationSupply(SlapOSTestCaseMixin):
everybody_supply
=
self
.
portal
.
allocation_supply_module
.
newContent
(
title
=
"Everybody Supply"
,
start_date_range_min
=
now
,
destination_project_value
=
project_1
destination_project_value
=
project_1
,
aggregate_value
=
compute_node_1
)
person_1_supply
=
self
.
portal
.
allocation_supply_module
.
newContent
(
title
=
"Person 1 Supply"
,
start_date_range_min
=
now
,
destination_project_value
=
project_1
,
aggregate_value
=
compute_node_1
,
destination_value
=
person_1
)
...
...
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