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
Iliya Manolov
slapos.toolbox
Commits
99ef9c16
Commit
99ef9c16
authored
Dec 12, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: new verification added in test_maximumRunOfSlapgrid
parent
6756320b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
slapos/runner/runnertest.py
slapos/runner/runnertest.py
+8
-0
No files found.
slapos/runner/runnertest.py
View file @
99ef9c16
...
@@ -24,6 +24,7 @@ from slapos.runner.utils import (getProfilePath, getSession, isInstanceRunning,
...
@@ -24,6 +24,7 @@ from slapos.runner.utils import (getProfilePath, getSession, isInstanceRunning,
isSoftwareRunning
,
startProxy
,
isSoftwareRunning
,
startProxy
,
isSoftwareReleaseReady
,
isSoftwareReleaseReady
,
runSlapgridUntilSuccess
,
runSlapgridUntilSuccess
,
getBuildAndRunParams
,
saveBuildAndRunParams
,
MAX_RUN_INSTANCE
,
MAX_RUN_SOFTWARE
)
MAX_RUN_INSTANCE
,
MAX_RUN_SOFTWARE
)
from
slapos.runner.process
import
killRunningProcess
,
isRunning
from
slapos.runner.process
import
killRunningProcess
,
isRunning
from
slapos.runner
import
views
from
slapos.runner
import
views
...
@@ -494,6 +495,13 @@ class SlaprunnerTestCase(unittest.TestCase):
...
@@ -494,6 +495,13 @@ class SlaprunnerTestCase(unittest.TestCase):
project
.
write
(
self
.
software
+
'slaprunner-test'
)
project
.
write
(
self
.
software
+
'slaprunner-test'
)
project
.
close
()
project
.
close
()
# Build and Run
# Build and Run
parameters
=
getBuildAndRunParams
()
parameters
[
'run_instance'
]
=
False
saveBuildAndRunParams
(
parameters
)
response
=
runSlapgridUntilSuccess
(
self
.
app
.
config
,
'software'
)
self
.
assertEqual
(
response
,
1
)
parameters
[
'run_instance'
]
=
True
saveBuildAndRunParams
(
parameters
)
response
=
runSlapgridUntilSuccess
(
self
.
app
.
config
,
'software'
)
response
=
runSlapgridUntilSuccess
(
self
.
app
.
config
,
'software'
)
self
.
assertEqual
(
response
,
(
1
,
MAX_RUN_INSTANCE
))
self
.
assertEqual
(
response
,
(
1
,
MAX_RUN_INSTANCE
))
...
...
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