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
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
Nicolas Wavrant
slapos.toolbox
Commits
2bdf2a58
Commit
2bdf2a58
authored
7 years ago
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resiliencytest: Update Haproxy "patch" to follow up changes on erp5 SR.
parent
4c932de8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
slapos/resiliencytest/suites/erp5.py
slapos/resiliencytest/suites/erp5.py
+4
-4
No files found.
slapos/resiliencytest/suites/erp5.py
View file @
2bdf2a58
...
@@ -153,18 +153,18 @@ class ERP5TestSuite(SlaprunnerTestSuite):
...
@@ -153,18 +153,18 @@ class ERP5TestSuite(SlaprunnerTestSuite):
result
=
self
.
_connectToSlaprunner
(
result
=
self
.
_connectToSlaprunner
(
resource
=
'/getFileContent'
,
resource
=
'/getFileContent'
,
data
=
'file=runner_workdir%2Finstance%2Fslappart
5%2Fetc%2Fhaproxy-erp5
.cfg'
data
=
'file=runner_workdir%2Finstance%2Fslappart
7%2Fetc%2Fhaproxy
.cfg'
)
)
file_content
=
json
.
loads
(
result
)[
'result'
]
file_content
=
json
.
loads
(
result
)[
'result'
]
file_content
=
file_content
.
replace
(
'var/run/haproxy
-erp5.sock'
,
'ha-erp5
.sock'
)
file_content
=
file_content
.
replace
(
'var/run/haproxy
.sock'
,
'ha
.sock'
)
self
.
_connectToSlaprunner
(
self
.
_connectToSlaprunner
(
resource
=
'/saveFileContent'
,
resource
=
'/saveFileContent'
,
data
=
'file=runner_workdir%%2Finstance%%2Fslappart
5%%2Fetc%%2Fhaproxy-erp5
.cfg&content=%s'
%
urllib
.
quote
(
file_content
)
data
=
'file=runner_workdir%%2Finstance%%2Fslappart
7%%2Fetc%%2Fhaproxy
.cfg&content=%s'
%
urllib
.
quote
(
file_content
)
)
)
# Restart HAProxy
# Restart HAProxy
self
.
_connectToSlaprunner
(
self
.
_connectToSlaprunner
(
resource
=
'/startStopProccess/name/slappart
5:haproxy-erp5
/cmd/STOPPED'
resource
=
'/startStopProccess/name/slappart
7:haproxy
/cmd/STOPPED'
)
)
time
.
sleep
(
15
)
time
.
sleep
(
15
)
...
...
This diff is collapsed.
Click to expand it.
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