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
efed5647
Commit
efed5647
authored
Sep 25, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure portal_memcached.
parent
2f0b56d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
master/product/Vifib/tests/VifibMixin.py
master/product/Vifib/tests/VifibMixin.py
+14
-0
No files found.
master/product/Vifib/tests/VifibMixin.py
View file @
efed5647
...
@@ -191,6 +191,19 @@ class testVifibMixin(ERP5TypeTestCase):
...
@@ -191,6 +191,19 @@ class testVifibMixin(ERP5TypeTestCase):
setattr
(
self
,
'stepCall'
+
convertToUpperCase
(
alarm
.
getId
())
\
setattr
(
self
,
'stepCall'
+
convertToUpperCase
(
alarm
.
getId
())
\
+
'Alarm'
,
makeCallAlarm
(
alarm
))
+
'Alarm'
,
makeCallAlarm
(
alarm
))
def
setUpMemcached
(
self
):
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
\
_getVolatileMemcachedServerDict
,
_getPersistentMemcachedServerDict
memcached_tool
=
self
.
getPortal
().
portal_memcached
# setup default volatile distributed memcached
connection_dict
=
_getVolatileMemcachedServerDict
()
url_string
=
'%(hostname)s:%(port)s'
%
connection_dict
memcached_tool
.
default_memcached_plugin
.
setUrlString
(
url_string
)
# setup default persistent distributed memcached
connection_dict
=
_getPersistentMemcachedServerDict
()
url_string
=
'%(hostname)s:%(port)s'
%
connection_dict
memcached_tool
.
persistent_memcached_plugin
.
setUrlString
(
url_string
)
def
afterSetUp
(
self
,
quiet
=
1
,
run
=
run_all_test
):
def
afterSetUp
(
self
,
quiet
=
1
,
run
=
run_all_test
):
"""
"""
Create ERP5 user.
Create ERP5 user.
...
@@ -206,6 +219,7 @@ class testVifibMixin(ERP5TypeTestCase):
...
@@ -206,6 +219,7 @@ class testVifibMixin(ERP5TypeTestCase):
setSecurityManager
(
sm
)
setSecurityManager
(
sm
)
self
.
setupPortalCertificateAuthority
()
self
.
setupPortalCertificateAuthority
()
self
.
setupPayZenInterface
()
self
.
setupPayZenInterface
()
self
.
setUpMemcached
()
import
random
import
random
self
.
portal
.
portal_caches
.
erp5_site_global_id
=
'%s'
%
random
.
random
()
self
.
portal
.
portal_caches
.
erp5_site_global_id
=
'%s'
%
random
.
random
()
self
.
portal
.
portal_caches
.
_p_changed
=
1
self
.
portal
.
portal_caches
.
_p_changed
=
1
...
...
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