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
049fdc55
Commit
049fdc55
authored
Mar 02, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_erp5:
* disable monitor only if allocation_scope is closed/forever
parent
e6199f7f
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
7 additions
and
267 deletions
+7
-267
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_array_module.xml
.../slapos_erp5/LocalRolesTemplateItem/data_array_module.xml
+0
-14
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_ingestion_module.xml
...pos_erp5/LocalRolesTemplateItem/data_ingestion_module.xml
+0
-18
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_mapping_module.xml
...lapos_erp5/LocalRolesTemplateItem/data_mapping_module.xml
+0
-14
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_operation_module.xml
...pos_erp5/LocalRolesTemplateItem/data_operation_module.xml
+0
-17
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_stream_module.xml
...slapos_erp5/LocalRolesTemplateItem/data_stream_module.xml
+0
-18
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_supply_module.xml
...slapos_erp5/LocalRolesTemplateItem/data_supply_module.xml
+0
-17
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_transformation_module.xml
...rp5/LocalRolesTemplateItem/data_transformation_module.xml
+0
-14
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Array%20Module.xml
...rp5/PortalTypeRolesTemplateItem/Data%20Array%20Module.xml
+0
-8
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Array.xml
.../slapos_erp5/PortalTypeRolesTemplateItem/Data%20Array.xml
+0
-8
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Ingestion%20Module.xml
...PortalTypeRolesTemplateItem/Data%20Ingestion%20Module.xml
+0
-13
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Ingestion.xml
...pos_erp5/PortalTypeRolesTemplateItem/Data%20Ingestion.xml
+0
-13
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Mapping%20Module.xml
...5/PortalTypeRolesTemplateItem/Data%20Mapping%20Module.xml
+0
-8
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Mapping.xml
...lapos_erp5/PortalTypeRolesTemplateItem/Data%20Mapping.xml
+0
-8
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Operation%20Module.xml
...PortalTypeRolesTemplateItem/Data%20Operation%20Module.xml
+0
-13
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Operation.xml
...pos_erp5/PortalTypeRolesTemplateItem/Data%20Operation.xml
+0
-13
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Stream%20Module.xml
...p5/PortalTypeRolesTemplateItem/Data%20Stream%20Module.xml
+0
-13
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Stream.xml
...slapos_erp5/PortalTypeRolesTemplateItem/Data%20Stream.xml
+0
-13
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Supply%20Module.xml
...p5/PortalTypeRolesTemplateItem/Data%20Supply%20Module.xml
+0
-13
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Supply.xml
...slapos_erp5/PortalTypeRolesTemplateItem/Data%20Supply.xml
+0
-13
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Transformation%20Module.xml
...lTypeRolesTemplateItem/Data%20Transformation%20Module.xml
+0
-8
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Transformation.xml
...rp5/PortalTypeRolesTemplateItem/Data%20Transformation.xml
+0
-8
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5InteractionWorkflow.py
...components/test.erp5.testSlapOSERP5InteractionWorkflow.py
+7
-3
No files found.
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_array_module.xml
deleted
100644 → 0
View file @
e6199f7f
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
</local_roles>
<local_role_group_ids>
<local_role_group_id
id=
'group'
>
<principal
id=
'G-COMPANY'
>
Auditor
</principal>
<principal
id=
'G-COMPANY'
>
Author
</principal>
</local_role_group_id>
</local_role_group_ids>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_ingestion_module.xml
deleted
100644 → 0
View file @
e6199f7f
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-COMPUTER'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
</local_roles>
<local_role_group_ids>
<local_role_group_id
id=
'group'
>
<principal
id=
'G-COMPANY'
>
Auditor
</principal>
<principal
id=
'G-COMPANY'
>
Author
</principal>
</local_role_group_id>
</local_role_group_ids>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_mapping_module.xml
deleted
100644 → 0
View file @
e6199f7f
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
</local_roles>
<local_role_group_ids>
<local_role_group_id
id=
'group'
>
<principal
id=
'G-COMPANY'
>
Auditor
</principal>
<principal
id=
'G-COMPANY'
>
Author
</principal>
</local_role_group_id>
</local_role_group_ids>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_operation_module.xml
deleted
100644 → 0
View file @
e6199f7f
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-COMPUTER'
>
<item>
Auditor
</item>
</role>
</local_roles>
<local_role_group_ids>
<local_role_group_id
id=
'group'
>
<principal
id=
'G-COMPANY'
>
Auditor
</principal>
<principal
id=
'G-COMPANY'
>
Author
</principal>
</local_role_group_id>
</local_role_group_ids>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_stream_module.xml
deleted
100644 → 0
View file @
e6199f7f
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-COMPUTER'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
</local_roles>
<local_role_group_ids>
<local_role_group_id
id=
'group'
>
<principal
id=
'G-COMPANY'
>
Auditor
</principal>
<principal
id=
'G-COMPANY'
>
Author
</principal>
</local_role_group_id>
</local_role_group_ids>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_supply_module.xml
deleted
100644 → 0
View file @
e6199f7f
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
<role
id=
'R-COMPUTER'
>
<item>
Auditor
</item>
</role>
</local_roles>
<local_role_group_ids>
<local_role_group_id
id=
'group'
>
<principal
id=
'G-COMPANY'
>
Auditor
</principal>
<principal
id=
'G-COMPANY'
>
Author
</principal>
</local_role_group_id>
</local_role_group_ids>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/LocalRolesTemplateItem/data_transformation_module.xml
deleted
100644 → 0
View file @
e6199f7f
<local_roles_item>
<local_roles>
<role
id=
'G-COMPANY'
>
<item>
Auditor
</item>
<item>
Author
</item>
</role>
</local_roles>
<local_role_group_ids>
<local_role_group_id
id=
'group'
>
<principal
id=
'G-COMPANY'
>
Auditor
</principal>
<principal
id=
'G-COMPANY'
>
Author
</principal>
</local_role_group_id>
</local_role_group_ids>
</local_roles_item>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Array%20Module.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Array.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Ingestion%20Module.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Compute Node
</property>
<multi_property
id=
'category'
>
role/computer
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Ingestion.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Compute Node
</property>
<multi_property
id=
'category'
>
role/computer
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Mapping%20Module.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Mapping.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Operation%20Module.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Compute Node
</property>
<multi_property
id=
'category'
>
role/computer
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Operation.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Compute Node
</property>
<multi_property
id=
'category'
>
role/computer
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Stream%20Module.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Compute Node
</property>
<multi_property
id=
'category'
>
role/computer
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Stream.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Compute Node
</property>
<multi_property
id=
'category'
>
role/computer
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Supply%20Module.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Compute Node
</property>
<multi_property
id=
'category'
>
role/computer
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Supply.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Auditor'
>
<property
id=
'title'
>
Compute Node
</property>
<multi_property
id=
'category'
>
role/computer
</multi_property>
<multi_property
id=
'base_category'
>
role
</multi_property>
</role>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Transformation%20Module.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Author; Auditor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/PortalTypeRolesTemplateItem/Data%20Transformation.xml
deleted
100644 → 0
View file @
e6199f7f
<type_roles>
<role
id=
'Assignor'
>
<property
id=
'title'
>
Group company
</property>
<multi_property
id=
'categories'
>
local_role_group/group
</multi_property>
<multi_property
id=
'category'
>
group/company
</multi_property>
<multi_property
id=
'base_category'
>
group
</multi_property>
</role>
</type_roles>
\ No newline at end of file
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5InteractionWorkflow.py
View file @
049fdc55
...
...
@@ -23,13 +23,13 @@ from erp5.component.test.SlapOSTestCaseMixin import SlapOSTestCaseMixin
class
TestSlapOSERP5InteractionWorkflowComputeNodeSetAllocationScope
(
SlapOSTestCaseMixin
):
def
test_ComputeNode_setAllocationScope_open
(
self
):
def
test_ComputeNode_setAllocationScope_open
(
self
,
allocation_scope
=
"open"
):
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
portal_type
=
'Compute Node'
)
compute_node
.
edit
(
capacity_scope
=
None
,
monitor_scope
=
None
)
self
.
commit
()
compute_node
.
edit
(
allocation_scope
=
"open"
)
compute_node
.
edit
(
allocation_scope
=
allocation_scope
)
self
.
commit
()
self
.
assertEqual
(
compute_node
.
getCapacityScope
(),
'close'
)
...
...
@@ -50,7 +50,8 @@ class TestSlapOSERP5InteractionWorkflowComputeNodeSetAllocationScope(
return
compute_node
def
_test_ComputeNode_setAllocationScope_closed
(
self
,
allocation_scope
=
"close/forever"
):
allocation_scope
=
"close/forever"
,
monitor_scope
=
"disabled"
):
compute_node
=
self
.
portal
.
compute_node_module
.
newContent
(
portal_type
=
'Compute Node'
,
capacity_scope
=
None
,
...
...
@@ -83,16 +84,19 @@ class TestSlapOSERP5InteractionWorkflowComputeNodeSetAllocationScope(
def
test_ComputeNode_setAllocationScope_closed_termination
(
self
):
self
.
_test_ComputeNode_setAllocationScope_closed
(
allocation_scope
=
"close/termination"
,
monitor_scope
=
"enabled"
)
def
test_ComputeNode_setAllocationScope_closed_outdated
(
self
):
self
.
_test_ComputeNode_setAllocationScope_closed
(
allocation_scope
=
"close/outdated"
,
monitor_scope
=
"enabled"
)
def
test_ComputeNode_setAllocationScope_closed_maintenance
(
self
):
self
.
_test_ComputeNode_setAllocationScope_closed
(
allocation_scope
=
"close/maintenance"
,
monitor_scope
=
"enabled"
)
def
test_ComputeNode_setAllocationScope_closed_noallocation
(
self
):
...
...
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