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
Lu Xu
slapos
Commits
722ecd22
Commit
722ecd22
authored
May 17, 2021
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Plain Diff
Theia frontend custom
See merge request
nexedi/slapos!981
parents
12eab3c1
e63c9c59
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
649 additions
and
554 deletions
+649
-554
software/theia/buildout.hash.cfg
software/theia/buildout.hash.cfg
+5
-1
software/theia/instance-theia.cfg.jinja.in
software/theia/instance-theia.cfg.jinja.in
+597
-0
software/theia/instance.cfg.in
software/theia/instance.cfg.in
+26
-553
software/theia/software.cfg
software/theia/software.cfg
+5
-0
software/theia/test/test.py
software/theia/test/test.py
+16
-0
No files found.
software/theia/buildout.hash.cfg
View file @
722ecd22
...
...
@@ -13,9 +13,13 @@
# section inheritance (< = ...) are NOT supported (but you should really
# not need these here).
[instance-theia]
filename = instance-theia.cfg.jinja.in
md5sum = 65c66a4cc4eb1d074dcafddf945a34d4
[instance]
filename = instance.cfg.in
md5sum =
bfd488ba023f505be25d947ec830bab3
md5sum =
43923e3e1f27c43696ecbca9ee147bdb
[yarn.lock]
filename = yarn.lock
...
...
software/theia/instance-theia.cfg.jinja.in
0 → 100644
View file @
722ecd22
This diff is collapsed.
Click to expand it.
software/theia/instance.cfg.in
View file @
722ecd22
This diff is collapsed.
Click to expand it.
software/theia/software.cfg
View file @
722ecd22
...
...
@@ -22,6 +22,7 @@ extends =
parts =
theia-wrapper
slapos-cookbook
instance-theia
instance
# default for slapos-standalone
...
...
@@ -323,6 +324,10 @@ template =
#!/bin/sh
exec ${nodejs:location}/bin/node ${theia:location}/node_modules/.bin/theia-open "$@"
[instance-theia]
<= template-base
output = ${buildout:directory}/instance-theia.cfg.jinja
[instance]
<= template-base
output = ${buildout:directory}/instance.cfg
software/theia/test/test.py
View file @
722ecd22
...
...
@@ -247,6 +247,22 @@ class TestTheiaWithSR(TheiaTestCase):
self
.
assertIsNotNone
(
re
.
search
(
r"%s\
s+%s
\s+%s"
%
(
self
.
sr_url
,
self
.
sr_type
,
instance_name
),
info
),
info
)
class
TestTheiaFrontend
(
TheiaTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'additional-frontend-guid'
:
'SOMETHING'
}
def
setUp
(
self
):
self
.
connection_parameters
=
self
.
computer_partition
.
getConnectionParameterDict
()
def
test_http_get
(
self
):
for
key
in
(
'url'
,
'additional-url'
):
resp
=
requests
.
get
(
self
.
connection_parameters
[
key
],
verify
=
False
)
self
.
assertEqual
(
requests
.
codes
.
unauthorized
,
resp
.
status_code
)
class
TestTheiaEnv
(
TheiaTestCase
):
dummy_software_path
=
os
.
path
.
abspath
(
'dummy/software.cfg'
)
...
...
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