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
Kazuhiko Shiozaki
slapos.toolbox
Commits
8fbf647f
Commit
8fbf647f
authored
Jan 12, 2015
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner resilient test: update API about slapgridResult.
Allow to detect if instance has been processed or not.
parent
c75a71ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
slapos/resiliencytest/suites/slaprunner.py
slapos/resiliencytest/suites/slaprunner.py
+5
-2
No files found.
slapos/resiliencytest/suites/slaprunner.py
View file @
8fbf647f
...
...
@@ -161,9 +161,12 @@ class SlaprunnerTestSuite(ResiliencyTestSuite):
except
(
NotHttpOkException
,
urllib2
.
HTTPError
):
# The nginx frontend might timeout before someftware release is finished.
pass
while
self
.
_connectToSlaprunner
(
resource
=
'slapgridResult'
,
data
=
'position=0&log='
).
find
(
'"instance": true'
)
is
not
-
1
:
self
.
logger
.
info
(
'Buildout is still running. Sleeping...'
)
while
True
:
time
.
sleep
(
15
)
result
=
json
.
loads
(
self
.
_connectToSlaprunner
(
resource
=
'slapgridResult'
,
data
=
'position=0&log='
))
if
result
[
'instance'
][
'state'
]
is
False
:
break
self
.
logger
.
info
(
'Buildout is still running. Sleeping...'
)
self
.
logger
.
info
(
'Instance has been deployed.'
)
def
_gitClone
(
self
):
...
...
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