Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
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
Xavier Thompson
slapos
Commits
d0d2dc3a
Commit
d0d2dc3a
authored
Feb 25, 2021
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP theia resilient: Add basic tests
parent
d17935fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
software/theia/test/test.py
software/theia/test/test.py
+28
-0
No files found.
software/theia/test/test.py
View file @
d0d2dc3a
...
...
@@ -241,3 +241,31 @@ class TestTheiaWithSR(SlapOSInstanceTestCase):
where
=
{
'software_release'
:
self
.
srurl
,
'software_type'
:
self
.
srtype
}
)
self
.
assertEqual
(
len
(
requested
),
1
)
class
TestTheiaResilient
(
TestTheia
):
instance_max_retry
=
30
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
'theia-resilient'
@
classmethod
def
setUpClass
(
cls
):
super
(
TestTheia
,
cls
).
setUpClass
()
# Patch the computer root path to that of the actual theia instance
cls
.
computer_partition_root_path
=
os
.
path
.
join
(
cls
.
slap
.
_instance_root
,
"T2"
)
class
TestTheiaResilientWithSR
(
TestTheiaWithSR
):
instance_max_retry
=
30
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
'theia-resilient'
@
classmethod
def
setUpClass
(
cls
):
super
(
TestTheiaWithSR
,
cls
).
setUpClass
()
# Patch the computer root path to that of the actual theia instance
cls
.
computer_partition_root_path
=
os
.
path
.
join
(
cls
.
slap
.
_instance_root
,
"T2"
)
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