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
Roque
slapos.core
Commits
9882eb5c
Commit
9882eb5c
authored
Sep 28, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup
a62e1d68
Wrong code has been "fixed".
parent
4c20f2f7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
master/bt5/vifib_erp5/TestTemplateItem/testVifibComputerModelSecurity.py
...b_erp5/TestTemplateItem/testVifibComputerModelSecurity.py
+2
-2
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/testVifibComputerModelSecurity.py
View file @
9882eb5c
...
@@ -78,7 +78,7 @@ class TestVifibComputerModelSecurity(TestVifibSlapWebServiceMixin):
...
@@ -78,7 +78,7 @@ class TestVifibComputerModelSecurity(TestVifibSlapWebServiceMixin):
def
test_ComputerModelModuleLocalRoles
(
self
):
def
test_ComputerModelModuleLocalRoles
(
self
):
module
=
self
.
portal
.
computer_model_module
module
=
self
.
portal
.
computer_model_module
self
.
assertSecurityGroup
(
module
,
self
.
assertSecurityGroup
(
module
,
[
'R-MEMBER'
,
'
R-SHADOW'
,
'
zope'
],
False
)
[
'R-MEMBER'
,
'zope'
],
False
)
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Author'
,
'Auditor'
])
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Author'
,
'Auditor'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
...
@@ -95,7 +95,7 @@ class TestVifibComputerModelSecurity(TestVifibSlapWebServiceMixin):
...
@@ -95,7 +95,7 @@ class TestVifibComputerModelSecurity(TestVifibSlapWebServiceMixin):
Model
=
module
.
newContent
(
portal_type
=
"Computer Model"
)
Model
=
module
.
newContent
(
portal_type
=
"Computer Model"
)
self
.
assertSecurityGroup
(
Model
,
self
.
assertSecurityGroup
(
Model
,
[
'ERP5TypeTestCase'
,
'G-COMPANY'
,
'R-SHADOW'
],
False
)
[
'ERP5TypeTestCase'
,
'G-COMPANY'
],
False
)
self
.
assertRoles
(
Model
,
'ERP5TypeTestCase'
,
[
'Owner'
])
self
.
assertRoles
(
Model
,
'ERP5TypeTestCase'
,
[
'Owner'
])
self
.
assertRoles
(
Model
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
Model
,
'G-COMPANY'
,
[
'Assignor'
])
...
...
master/bt5/vifib_erp5/TestTemplateItem/testVifibComputerNetworkSecurity.py
View file @
9882eb5c
...
@@ -77,7 +77,8 @@ class TestVifibComputerNetworkSecurity(TestVifibSlapWebServiceMixin):
...
@@ -77,7 +77,8 @@ class TestVifibComputerNetworkSecurity(TestVifibSlapWebServiceMixin):
def
test_ComputerNetworkModuleLocalRoles
(
self
):
def
test_ComputerNetworkModuleLocalRoles
(
self
):
module
=
self
.
portal
.
computer_network_module
module
=
self
.
portal
.
computer_network_module
self
.
assertSecurityGroup
(
module
,
[
'R-MEMBER'
,
'ERP5TypeTestCase'
],
False
)
self
.
assertSecurityGroup
(
module
,
[
'R-MEMBER'
,
'R-SHADOW'
,
'ERP5TypeTestCase'
],
False
)
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Author'
,
'Auditor'
])
self
.
assertRoles
(
module
,
'R-MEMBER'
,
[
'Author'
,
'Auditor'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
self
.
assertRoles
(
module
,
'zope'
,
[
'Owner'
])
...
@@ -93,7 +94,8 @@ class TestVifibComputerNetworkSecurity(TestVifibSlapWebServiceMixin):
...
@@ -93,7 +94,8 @@ class TestVifibComputerNetworkSecurity(TestVifibSlapWebServiceMixin):
module
=
self
.
portal
.
computer_network_module
module
=
self
.
portal
.
computer_network_module
network
=
module
.
newContent
(
portal_type
=
"Computer Network"
)
network
=
module
.
newContent
(
portal_type
=
"Computer Network"
)
self
.
assertSecurityGroup
(
network
,
[
'ERP5TypeTestCase'
,
'G-COMPANY'
],
False
)
self
.
assertSecurityGroup
(
network
,
[
'ERP5TypeTestCase'
,
'G-COMPANY'
,
'R-SHADOW'
],
False
)
self
.
assertRoles
(
network
,
'ERP5TypeTestCase'
,
[
'Owner'
])
self
.
assertRoles
(
network
,
'ERP5TypeTestCase'
,
[
'Owner'
])
self
.
assertRoles
(
network
,
'G-COMPANY'
,
[
'Assignor'
])
self
.
assertRoles
(
network
,
'G-COMPANY'
,
[
'Assignor'
])
...
...
master/bt5/vifib_erp5/bt/revision
View file @
9882eb5c
477
478
\ 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