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
57997ec6
Commit
57997ec6
authored
Oct 11, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resiliencetest: haproxy is changed partition.
parent
9ceaeeaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/resiliencytest/suites/erp5.py
slapos/resiliencytest/suites/erp5.py
+3
-3
No files found.
slapos/resiliencytest/suites/erp5.py
View file @
57997ec6
...
...
@@ -87,18 +87,18 @@ class ERP5TestSuite(SlaprunnerTestSuite):
result
=
self
.
_connectToSlaprunner
(
resource
=
'/getFileContent'
,
data
=
'file=runner_workdir%2Finstance%2Fslappart
7
%2Fetc%2Fhaproxy.cfg'
data
=
'file=runner_workdir%2Finstance%2Fslappart
8
%2Fetc%2Fhaproxy.cfg'
)
file_content
=
json
.
loads
(
result
)[
'result'
]
file_content
=
file_content
.
replace
(
'var/run/haproxy.sock'
,
'ha.sock'
)
self
.
_connectToSlaprunner
(
resource
=
'/saveFileContent'
,
data
=
'file=runner_workdir%%2Finstance%%2Fslappart
7
%%2Fetc%%2Fhaproxy.cfg&content=%s'
%
urllib
.
quote
(
file_content
)
data
=
'file=runner_workdir%%2Finstance%%2Fslappart
8
%%2Fetc%%2Fhaproxy.cfg&content=%s'
%
urllib
.
quote
(
file_content
)
)
# Restart HAProxy
self
.
_connectToSlaprunner
(
resource
=
'/startStopProccess/name/slappart
7
:haproxy/cmd/RESTART'
resource
=
'/startStopProccess/name/slappart
8
:haproxy/cmd/RESTART'
)
...
...
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