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
Klaus Wölfel
slapos.toolbox
Commits
9c44e70c
Commit
9c44e70c
authored
Dec 11, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: tests now use "/isSRReady" to know slapgrid-sr state
parent
ad1dca87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
slapos/runner/runnertest.py
slapos/runner/runnertest.py
+8
-5
No files found.
slapos/runner/runnertest.py
View file @
9c44e70c
...
...
@@ -322,10 +322,9 @@ class SlaprunnerTestCase(unittest.TestCase):
# Compile software and wait until slapgrid ends
# this is supposed to use current SR
response
=
loadJson
(
self
.
app
.
post
(
'/runSoftwareProfile'
,
data
=
dict
(),
follow_redirects
=
True
))
self
.
assertTrue
(
response
[
'result'
])
while
self
.
app
.
get
(
'/isSRReady'
).
data
==
"2"
:
time
.
sleep
(
2
)
self
.
assertEqual
(
self
.
app
.
get
(
'/isSRReady'
).
data
,
"1"
)
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
app
.
config
[
'software_root'
]))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
app
.
config
[
'software_log'
]))
assert
"test-application"
in
open
(
self
.
app
.
config
[
'software_log'
]).
read
()
...
...
@@ -387,12 +386,16 @@ class SlaprunnerTestCase(unittest.TestCase):
response
=
loadJson
(
self
.
app
.
post
(
'/runSoftwareProfile'
,
data
=
dict
(),
follow_redirects
=
True
))
self
.
assertTrue
(
response
[
'result'
])
while
self
.
app
.
get
(
'/isSRReady'
).
data
==
"2"
:
time
.
sleep
(
2
)
self
.
assertEqual
(
self
.
app
.
get
(
'/isSRReady'
).
data
,
"1"
)
#run instance profile
response
=
loadJson
(
self
.
app
.
post
(
'/runInstanceProfile'
,
data
=
dict
(),
follow_redirects
=
True
))
self
.
assertTrue
(
response
[
'result'
])
# lets some time to the Instance to be deployed
time
.
sleep
(
5
)
#Check that all partitions has been created
assert
"create-file"
in
open
(
self
.
app
.
config
[
'instance_log'
]).
read
()
instanceDir
=
os
.
listdir
(
self
.
app
.
config
[
'instance_root'
])
...
...
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