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
Léo-Paul Géneau
slapos
Commits
6da866cb
Commit
6da866cb
authored
Apr 16, 2021
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/theia: Add software-py3.cfg
parent
722ecd22
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
17 deletions
+32
-17
software/theia/buildout.hash.cfg
software/theia/buildout.hash.cfg
+7
-7
software/theia/software-py3.cfg
software/theia/software-py3.cfg
+6
-0
software/theia/software.cfg
software/theia/software.cfg
+13
-6
software/theia/test/test.py
software/theia/test/test.py
+6
-4
No files found.
software/theia/buildout.hash.cfg
View file @
6da866cb
...
...
@@ -14,29 +14,29 @@
# not need these here).
[instance-theia]
filename
= instance-theia.cfg.jinja.in
_update_hash_filename_
= instance-theia.cfg.jinja.in
md5sum = 65c66a4cc4eb1d074dcafddf945a34d4
[instance]
filename
= instance.cfg.in
_update_hash_filename_
= instance.cfg.in
md5sum = 43923e3e1f27c43696ecbca9ee147bdb
[yarn.lock]
filename
= yarn.lock
_update_hash_filename_
= yarn.lock
md5sum = 80e7ad91deea54cebcccef5a83fdb380
[python-language-server-requirements.txt]
filename
= python-language-server-requirements.txt
_update_hash_filename_
= python-language-server-requirements.txt
md5sum = 9f478fd1b03b7738f3de549cb899bf54
[preloadTemplate.html]
filename
= preloadTemplate.html
_update_hash_filename_
= preloadTemplate.html
md5sum = 8157c22134200bd862a07c6521ebf799
[slapos.css.in]
filename
= slapos.css.in
_update_hash_filename_
= slapos.css.in
md5sum = d2930ec3ef973b7908f0fa896033fd64
[logo.png]
filename
= logo.png
_update_hash_filename_
= logo.png
md5sum = 97bd0f828ffbac2681af0f4bd72cba27
software/theia/software-py3.cfg
0 → 100644
View file @
6da866cb
[buildout]
extends =
software.cfg
[python]
part = python3
software/theia/software.cfg
View file @
6da866cb
...
...
@@ -149,10 +149,17 @@ eggs =
[template-base]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/${:
filename
}
url = ${:_profile_base_location_}/${:
_update_hash_filename_
}
output = ${buildout:parts-directory}/${:_buildout_section_name_}
mode = 0644
[download-base]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
destination = ${buildout:directory}/${:_buildout_section_name_}
output = ${:destination}
mode = 0644
[python-language-server]
version = 0.19.0
recipe = plone.recipe.command
...
...
@@ -164,7 +171,7 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
[python-language-server-requirements.txt]
<=
template
-base
<=
download
-base
[theia]
recipe = plone.recipe.command
...
...
@@ -194,16 +201,16 @@ install =
os.chmod(destination_dir, 0o750)
[yarn.lock]
<=
template
-base
<=
download
-base
[preloadTemplate.html]
<=
template
-base
<=
download
-base
[slapos.css.in]
<=
template
-base
<=
download
-base
[logo.png]
<=
template
-base
<=
download
-base
[package.json]
recipe = slapos.recipe.template:jinja2
...
...
software/theia/test/test.py
View file @
6da866cb
...
...
@@ -40,15 +40,17 @@ import pexpect
import
psutil
import
requests
import
sqlite3
import
six
from
slapos.testing.testcase
import
makeModuleSetUpAndTestCaseClass
from
slapos.grid.svcbackend
import
getSupervisorRPC
from
slapos.grid.svcbackend
import
_getSupervisordSocketPath
software_cfg
=
'software%s.cfg'
%
(
'-py3'
if
six
.
PY3
else
''
)
setUpModule
,
SlapOSInstanceTestCase
=
makeModuleSetUpAndTestCaseClass
(
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'software.cfg'
)))
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
software_cfg
)))
class
TheiaTestCase
(
SlapOSInstanceTestCase
):
...
...
@@ -190,9 +192,9 @@ class TestTheia(TheiaTestCase):
def
test_slapos_cli
(
self
):
slapos
=
self
.
_getSlapos
()
proxy_show_output
=
subprocess
.
check_output
((
slapos
,
'proxy'
,
'show'
))
self
.
assertIn
(
'slaprunner'
,
proxy_show_output
)
self
.
assertIn
(
b
'slaprunner'
,
proxy_show_output
)
computer_list_output
=
subprocess
.
check_output
((
slapos
,
'computer'
,
'list'
))
self
.
assertIn
(
'slaprunner'
,
computer_list_output
)
self
.
assertIn
(
b
'slaprunner'
,
computer_list_output
)
class
TestTheiaEmbeddedSlapOSShutdown
(
TheiaTestCase
):
...
...
@@ -240,7 +242,7 @@ class TestTheiaWithSR(TheiaTestCase):
def
test
(
self
):
slapos
=
self
.
_getSlapos
()
info
=
subprocess
.
check_output
((
slapos
,
'proxy'
,
'show'
))
info
=
subprocess
.
check_output
((
slapos
,
'proxy'
,
'show'
)
,
universal_newlines
=
True
)
instance_name
=
"Embedded Instance"
self
.
assertIsNotNone
(
re
.
search
(
r"%s\
s+sl
aprunner\
s+
available"
%
(
self
.
sr_url
,),
info
),
info
)
...
...
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