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
Guillaume Hervier
slapos.core
Commits
b0488ab9
Commit
b0488ab9
authored
Nov 07, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finalise test.
parent
6e4ec90b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
5 deletions
+31
-5
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSGroupRoleSecurity.py
...apos_erp5/TestTemplateItem/testSlapOSGroupRoleSecurity.py
+30
-4
master/bt5/slapos_erp5/bt/revision
master/bt5/slapos_erp5/bt/revision
+1
-1
No files found.
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSGroupRoleSecurity.py
View file @
b0488ab9
...
@@ -706,9 +706,35 @@ class TestSoftwareReleaseModule(TestSlapOSGroupRoleSecurityMixin):
...
@@ -706,9 +706,35 @@ class TestSoftwareReleaseModule(TestSlapOSGroupRoleSecurityMixin):
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
class
TestSpreadsheet
(
TestSlapOSGroupRoleSecurityMixin
):
class
TestSpreadsheet
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
def
test_SecurityForShacache
(
self
):
raise
NotImplementedError
spreadsheet
=
self
.
portal
.
document_module
.
newContent
(
portal_type
=
'Spreadsheet'
)
spreadsheet
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
spreadsheet
,
[
'G-COMPANY'
,
self
.
user_id
,
'R-COMPUTER'
,
'R-INSTANCE'
,
'R-MEMBER'
],
False
)
self
.
assertRoles
(
spreadsheet
,
'R-COMPUTER'
,
[
'Auditor'
])
self
.
assertRoles
(
spreadsheet
,
'R-INSTANCE'
,
[
'Auditor'
])
self
.
assertRoles
(
spreadsheet
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
spreadsheet
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
spreadsheet
,
self
.
user_id
,
[
'Owner'
])
test_GroupCompany
=
test_SecurityForShacache
class
TestText
(
TestSlapOSGroupRoleSecurityMixin
):
class
TestText
(
TestSlapOSGroupRoleSecurityMixin
):
def
test
(
self
):
def
test_SecurityForShacache
(
self
):
raise
NotImplementedError
text
=
self
.
portal
.
document_module
.
newContent
(
portal_type
=
'Text'
)
text
.
updateLocalRolesOnSecurityGroups
()
self
.
assertSecurityGroup
(
text
,
[
'G-COMPANY'
,
self
.
user_id
,
'R-COMPUTER'
,
'R-INSTANCE'
,
'R-MEMBER'
],
False
)
self
.
assertRoles
(
text
,
'R-COMPUTER'
,
[
'Auditor'
])
self
.
assertRoles
(
text
,
'R-INSTANCE'
,
[
'Auditor'
])
self
.
assertRoles
(
text
,
'R-MEMBER'
,
[
'Auditor'
])
self
.
assertRoles
(
text
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
text
,
self
.
user_id
,
[
'Owner'
])
test_GroupCompany
=
test_SecurityForShacache
master/bt5/slapos_erp5/bt/revision
View file @
b0488ab9
60
61
\ No newline at end of file
\ No newline at end of file
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