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
17
Merge Requests
17
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
nexedi
slapos.core
Commits
f5fc3869
Commit
f5fc3869
authored
Sep 21, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Validate services, as this is required by restored constraints.
parent
ab72db5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
master/product/Vifib/tests/VifibMixin.py
master/product/Vifib/tests/VifibMixin.py
+12
-0
No files found.
master/product/Vifib/tests/VifibMixin.py
View file @
f5fc3869
...
@@ -248,6 +248,17 @@ class testVifibMixin(ERP5TypeTestCase):
...
@@ -248,6 +248,17 @@ class testVifibMixin(ERP5TypeTestCase):
if
isTransitionPossible
(
assignment
,
'open'
):
if
isTransitionPossible
(
assignment
,
'open'
):
assignment
.
open
()
assignment
.
open
()
def
prepareTestServices
(
self
):
isTransitionPossible
=
self
.
portal
.
portal_workflow
.
isTransitionPossible
for
service
in
self
.
portal
.
portal_catalog
(
portal_type
=
"Service"
,
id
=
"service_%"
,
):
service
=
service
.
getObject
()
if
isTransitionPossible
(
service
,
'validate'
):
service
.
validate
()
def
setupVifibMachineAuthenticationPlugin
(
self
):
def
setupVifibMachineAuthenticationPlugin
(
self
):
"""Sets up Vifib Authentication plugin"""
"""Sets up Vifib Authentication plugin"""
pas
=
self
.
getPortal
().
acl_users
pas
=
self
.
getPortal
().
acl_users
...
@@ -295,6 +306,7 @@ class testVifibMixin(ERP5TypeTestCase):
...
@@ -295,6 +306,7 @@ class testVifibMixin(ERP5TypeTestCase):
self
.
setupRuleTool
()
self
.
setupRuleTool
()
self
.
setupNotificationModule
()
self
.
setupNotificationModule
()
self
.
prepareTestUsers
()
self
.
prepareTestUsers
()
self
.
prepareTestServices
()
transaction
.
commit
()
transaction
.
commit
()
self
.
tic
()
self
.
tic
()
self
.
logout
()
self
.
logout
()
...
...
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