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
837e35a7
Commit
837e35a7
authored
Dec 25, 2018
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner new style test
parent
b0dc30e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
software/slaprunner/test/test.py
software/slaprunner/test/test.py
+14
-4
No files found.
software/slaprunner/test/test.py
View file @
837e35a7
...
...
@@ -38,22 +38,32 @@ import json
import
psutil
from
slapos.testing.testcase
import
SlapOSInstanceTestCase
from
slapos.testing.testcase
import
installSoftwareUrlList
#import ipdb; ipdb.set_trace()
SLAPOS_TEST_DEBUG
=
os
.
environ
.
get
(
'SLAPOS_TEST_DEBUG'
)
SLAPOS_TEST_SOFTWARE_URL
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'software.cfg'
)),
# for development: debugging logs and install Ctrl+C handler
if
os
.
environ
.
get
(
'DEBUG'
)
:
if
SLAPOS_TEST_DEBUG
:
import
logging
logging
.
basicConfig
(
level
=
logging
.
DEBUG
)
import
unittest
unittest
.
installHandler
()
def
setUpModule
():
installSoftwareUrlList
(
[
SLAPOS_TEST_SOFTWARE_URL
],
debug
=
SLAPOS_TEST_DEBUG
)
class
InstanceTestCase
(
SlapOSInstanceTestCase
):
debug
=
SLAPOS_TEST_DEBUG
@
classmethod
def
getSoftwareURLList
(
cls
):
return
(
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'software.cfg'
)),
)
def
getSoftwareURL
(
cls
):
return
SLAPOS_TEST_SOFTWARE_URL
class
ServicesTestCase
(
InstanceTestCase
):
@
staticmethod
...
...
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