Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.toolbox
Commits
71115f74
Commit
71115f74
authored
Feb 19, 2015
by
Cédric de Saint Martin
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpdb hack.
This reverts commit
c15487ed
.
parent
e2ed2d26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
setup.py
setup.py
+1
-1
slapos/resiliencytest/suites/erp5cluster.py
slapos/resiliencytest/suites/erp5cluster.py
+25
-0
No files found.
setup.py
View file @
71115f74
...
@@ -42,7 +42,7 @@ setup(name=name,
...
@@ -42,7 +42,7 @@ setup(name=name,
'slapos.core'
,
# as it provides library for slap
'slapos.core'
,
# as it provides library for slap
'xml_marshaller'
,
# needed to dump information
'xml_marshaller'
,
# needed to dump information
'GitPython'
,
#needed for git manipulation into slaprunner
'GitPython'
,
#needed for git manipulation into slaprunner
'netifaces'
,
'netifaces'
,
'rpdb'
]
+
additional_install_requires
,
]
+
additional_install_requires
,
extras_require
=
{
extras_require
=
{
'lampconfigure'
:
[
"mysql-python"
],
#needed for MySQL Database access
'lampconfigure'
:
[
"mysql-python"
],
#needed for MySQL Database access
...
...
slapos/resiliencytest/suites/erp5cluster.py
View file @
71115f74
...
@@ -93,6 +93,31 @@ class ERP5ClusterTestSuite(ERP5TestSuite):
...
@@ -93,6 +93,31 @@ class ERP5ClusterTestSuite(ERP5TestSuite):
data
=
'project=workspace%2Fslapos&name=erp5-cluster&create=0'
data
=
'project=workspace%2Fslapos&name=erp5-cluster&create=0'
)
)
def
_createRandomERP5Document
(
self
):
""" Create a document with random content in erp5 site."""
# XXX currently only sets erp5 site title.
# XXX could be simplified to /erp5/setTitle?title=slapos
import
rpdb
debugger
=
rpdb
.
Rpdb
(
port
=
12349
)
debugger
.
set_trace
()
erp5_site_title
=
self
.
slaprunner_user
url
=
"%s/erp5?__ac_name=zope&__ac_password=insecure"
%
self
.
_getERP5Url
()
form
=
'title%%3AUTF-8:string=%s&manage_editProperties%%3Amethod=Save+Changes'
%
erp5_site_title
self
.
_connectToERP5
(
url
,
form
)
return
erp5_site_title
def
_getCreatedERP5Document
(
self
):
""" Fetch and return content of ERP5 document created above."""
import
rpdb
debugger
=
rpdb
.
Rpdb
(
port
=
12348
)
debugger
.
set_trace
()
url
=
"%s/erp5/getTitle"
%
self
.
_getERP5Url
()
return
self
.
_connectToERP5
(
url
)
def
runTestSuite
(
*
args
,
**
kwargs
):
def
runTestSuite
(
*
args
,
**
kwargs
):
"""
"""
...
...
Rafael Monnerat
@rafael
mentioned in commit
a3852b8d
·
Nov 25, 2015
mentioned in commit
a3852b8d
mentioned in commit a3852b8da31d3215685365ffed697dd02035c816
Toggle commit list
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