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
Titouan Soulard
slapos.core
Commits
0f14a7fe
Commit
0f14a7fe
authored
Feb 01, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make test exposing all errors.
parent
4e154687
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
master/bt5/vifib_erp5/TestTemplateItem/testVifibModuleSecurity.py
...t5/vifib_erp5/TestTemplateItem/testVifibModuleSecurity.py
+5
-3
master/bt5/vifib_erp5/bt/revision
master/bt5/vifib_erp5/bt/revision
+1
-1
No files found.
master/bt5/vifib_erp5/TestTemplateItem/testVifibModuleSecurity.py
View file @
0f14a7fe
...
@@ -78,15 +78,17 @@ class TestVifibModuleSecurity(testVifibMixin):
...
@@ -78,15 +78,17 @@ class TestVifibModuleSecurity(testVifibMixin):
"""
"""
portal
=
self
.
getPortal
()
portal
=
self
.
getPortal
()
self
.
login
(
user_name
=
'test_vifib_member'
)
self
.
login
(
user_name
=
'test_vifib_member'
)
error_list
=
[]
for
module_id
in
portal
.
objectIds
(
spec
=
(
'ERP5 Folder'
,)):
for
module_id
in
portal
.
objectIds
(
spec
=
(
'ERP5 Folder'
,)):
if
module_id
in
self
.
used_module_id_list
:
if
module_id
in
self
.
used_module_id_list
:
try
:
try
:
portal
.
restrictedTraverse
(
module_id
)
portal
.
restrictedTraverse
(
module_id
)
except
Unauthorized
:
except
Unauthorized
:
raise
AssertionError
,
"User can not access '%s'"
%
module_id
error_list
.
append
(
"User can not access '%s'"
%
module_id
)
else
:
else
:
try
:
try
:
self
.
assertRaises
(
Unauthorized
,
portal
.
restrictedTraverse
,
module_id
)
self
.
assertRaises
(
Unauthorized
,
portal
.
restrictedTraverse
,
module_id
)
except
AssertionError
:
except
AssertionError
:
raise
AssertionError
,
"User can access '%s'"
%
module_id
error_list
.
append
(
"User can access '%s'"
%
module_id
)
self
.
assertEqual
([],
error_list
,
'
\
n
'
.
join
(
error_list
))
master/bt5/vifib_erp5/bt/revision
View file @
0f14a7fe
334
335
\ 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