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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
3349598c
Commit
3349598c
authored
Sep 03, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
squash! slapos_erp5: Assignment
parent
996a0dab
Pipeline
#36549
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
...l_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
+4
-4
No files found.
master/bt5/slapos_erp5/TestTemplateItem/portal_components/test.erp5.testSlapOSERP5GroupRoleSecurity.py
View file @
3349598c
...
@@ -385,18 +385,18 @@ class TestAllocationSupply(TestSlapOSGroupRoleSecurityMixin):
...
@@ -385,18 +385,18 @@ class TestAllocationSupply(TestSlapOSGroupRoleSecurityMixin):
self
.
assertRoles
(
supply
,
'%s_F-PRODMAN'
%
project
.
getReference
(),
[
'Assignor'
])
self
.
assertRoles
(
supply
,
'%s_F-PRODMAN'
%
project
.
getReference
(),
[
'Assignor'
])
self
.
assertRoles
(
supply
,
'%s_F-PRODAGNT'
%
project
.
getReference
(),
[
'Assignee'
])
self
.
assertRoles
(
supply
,
'%s_F-PRODAGNT'
%
project
.
getReference
(),
[
'Assignee'
])
class
TestAssignment
(
TestSlapOSGroupRoleSecurityMixin
):
class
TestAssignment
(
TestSlapOSGroupRoleSecurityMixin
):
def
test_Assignment_Sale
(
self
):
def
test_Assignment_Sale
_Accountant
(
self
):
assignment
=
self
.
portal
.
person_module
.
newContent
(
assignment
=
self
.
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
).
newContent
(
portal_type
=
'Assignment'
)
portal_type
=
'Person'
).
newContent
(
portal_type
=
'Assignment'
)
self
.
assertSecurityGroup
(
assignment
,
self
.
assertSecurityGroup
(
assignment
,
[
self
.
user_id
,
'F-SALEAGT'
,
'F-SALEMAN'
],
False
)
[
self
.
user_id
,
'F-SALEAGT'
,
'F-SALEMAN'
,
'F-ACCMAN'
,
'F-ACCAGT'
],
False
)
self
.
assertRoles
(
assignment
,
'F-ACCMAN'
,
[
'Auditor'
])
self
.
assertRoles
(
assignment
,
'F-ACCAGT'
,
[
'Auditor'
])
self
.
assertRoles
(
assignment
,
self
.
user_id
,
[
'Owner'
])
self
.
assertRoles
(
assignment
,
self
.
user_id
,
[
'Owner'
])
self
.
assertRoles
(
assignment
,
'F-SALEMAN'
,
[
'Assignor'
])
self
.
assertRoles
(
assignment
,
'F-SALEMAN'
,
[
'Assignor'
])
self
.
assertRoles
(
assignment
,
'F-SALEAGT'
,
[
'Assignee'
])
self
.
assertRoles
(
assignment
,
'F-SALEAGT'
,
[
'Assignee'
])
class
TestComputeNodeModule
(
TestSlapOSGroupRoleSecurityMixin
):
class
TestComputeNodeModule
(
TestSlapOSGroupRoleSecurityMixin
):
def
test_ComputeNodeModule
(
self
):
def
test_ComputeNodeModule
(
self
):
module
=
self
.
portal
.
compute_node_module
module
=
self
.
portal
.
compute_node_module
...
...
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