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
470da70c
Commit
470da70c
authored
Oct 01, 2018
by
Guillaume Hervier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resiliencytest.slaprunner: Add error log when contacting slaprunner.
/reviewed-on
nexedi/slapos.toolbox!38
parent
ed7f5603
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
slapos/resiliencytest/suites/slaprunner.py
slapos/resiliencytest/suites/slaprunner.py
+13
-9
No files found.
slapos/resiliencytest/suites/slaprunner.py
View file @
470da70c
...
...
@@ -85,6 +85,7 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
Connect through HTTP to the slaprunner instance.
Require self.slaprunner_backend_url to be set.
"""
try
:
url
=
"%s/%s"
%
(
self
.
slaprunner_backend_url
,
resource
)
if
data
:
result
=
self
.
_opener_director
.
open
(
url
,
data
=
data
)
...
...
@@ -94,6 +95,9 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
if
result
.
getcode
()
is
not
200
:
raise
NotHttpOkException
(
result
.
getcode
())
return
result
.
read
()
except
urllib2
.
HTTPError
:
self
.
logger
.
error
(
'Error when contacting slaprunner at URL: {}'
.
format
(
url
))
raise
def
_login
(
self
):
self
.
logger
.
debug
(
'Logging in...'
)
...
...
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