Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
ab1148d2
Commit
ab1148d2
authored
Dec 26, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner test wip
parent
837e35a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
software/slaprunner/test/test.py
software/slaprunner/test/test.py
+15
-3
No files found.
software/slaprunner/test/test.py
View file @
ab1148d2
...
...
@@ -61,6 +61,7 @@ def setUpModule():
class
InstanceTestCase
(
SlapOSInstanceTestCase
):
debug
=
SLAPOS_TEST_DEBUG
ignore_promise_during_instanciation
=
True
# XXX because of monitor promise
@
classmethod
def
getSoftwareURL
(
cls
):
return
SLAPOS_TEST_SOFTWARE_URL
...
...
@@ -93,7 +94,7 @@ class ServicesTestCase(InstanceTestCase):
'supervisord-{hash}-on-watch'
,
]
supervisor
=
self
.
getSupervisorRPCServer
().
supervisor
with
self
.
getSupervisorRPC
()
as
supervisor
:
process_names
=
[
process
[
'name'
]
for
process
in
supervisor
.
getAllProcessInfo
()]
...
...
@@ -105,3 +106,14 @@ class ServicesTestCase(InstanceTestCase):
expected_process_name
=
name
.
format
(
hash
=
h
)
self
.
assertIn
(
expected_process_name
,
process_names
)
class
Test
(
ServicesTestCase
):
def
test_x
(
self
):
self
.
assertEqual
(
1
,
2
)
def
test_xx
(
self
):
self
.
assertEqual
(
1
,
2
)
def
test_xxxx
(
self
):
self
.
assertEqual
(
1
,
2
)
def
test_xxxxx
(
self
):
self
.
assertEqual
(
1
,
2
)
\ No newline at end of file
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