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
0
Merge Requests
0
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
Léo-Paul Géneau
slapos.core
Commits
cdbc03a5
Commit
cdbc03a5
authored
Oct 02, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shadow user have access to network during allocation
parent
38d3f681
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
master/bt5/vifib_erp5/TestTemplateItem/testVifibComputerNetworkSecurity.py
...erp5/TestTemplateItem/testVifibComputerNetworkSecurity.py
+4
-2
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
No files found.
master/bt5/vifib_erp5/TestTemplateItem/testVifibComputerNetworkSecurity.py
View file @
cdbc03a5
...
...
@@ -78,8 +78,9 @@ class TestVifibComputerNetworkSecurity(TestVifibSlapWebServiceMixin):
def
test_ComputerNetworkModuleLocalRoles
(
self
):
module
=
self
.
portal
.
computer_network_module
self
.
assertSecurityGroup
(
module
,
[
'R-MEMBER'
,
'R-SHADOW'
,
'
ERP5TypeTestCas
e'
],
False
)
'
zop
e'
],
False
)
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Author'
,
'Auditor'
])
self
.
assertRoles
(
module
,
'R-SHADOW'
,
[
'Auditor'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
def
test_ComputerNetworkModulePermissions
(
self
):
...
...
@@ -98,12 +99,13 @@ class TestVifibComputerNetworkSecurity(TestVifibSlapWebServiceMixin):
'R-SHADOW'
],
False
)
self
.
assertRoles
(
network
,
'ERP5TypeTestCase'
,
[
'Owner'
])
self
.
assertRoles
(
network
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
network
,
'R-SHADOW'
,
[
'Auditor'
])
# Setting source administration give person the assignee role
person
=
self
.
createMemberUser
()
network
.
edit
(
source_administration_value
=
person
)
self
.
assertSecurityGroup
(
network
,
[
'ERP5TypeTestCase'
,
'G-COMPANY'
,
person
.
getReference
()],
False
)
[
'ERP5TypeTestCase'
,
'G-COMPANY'
,
'R-SHADOW'
,
person
.
getReference
()],
False
)
self
.
assertRoles
(
network
,
person
.
getReference
(),
[
'Assignee'
])
def
test_ComputerNetworkPermission
(
self
):
...
...
master/bt5/vifib_erp5/bt/revision
View file @
cdbc03a5
478
\ No newline at end of file
479
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