Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Boxiang Sun
slapos.core
Commits
5544e081
Commit
5544e081
authored
Oct 28, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio_ui_test: Pre-Create Theia rather them webrunner for testing
parent
979a0c36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
master/bt5/slapos_jio_ui_test/SkinTemplateItem/portal_skins/slapos_ui_test/ERP5Site_initSlapOSUITest.py
.../portal_skins/slapos_ui_test/ERP5Site_initSlapOSUITest.py
+19
-17
No files found.
master/bt5/slapos_jio_ui_test/SkinTemplateItem/portal_skins/slapos_ui_test/ERP5Site_initSlapOSUITest.py
View file @
5544e081
# PreferenceTool
# PreferenceTool
from
DateTime
import
DateTime
from
DateTime
import
DateTime
software_version
=
"1.0.289"
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
preference
=
portal
.
portal_preferences
.
getActiveSystemPreference
()
preference
=
portal
.
portal_preferences
.
getActiveSystemPreference
()
...
@@ -39,46 +41,46 @@ except KeyError:
...
@@ -39,46 +41,46 @@ except KeyError:
)
)
kvm_software_release
.
edit
(
kvm_software_release
.
edit
(
url_string
=
"https://lab.nexedi.com/nexedi/slapos/raw/
1.0.164/software/kvm/software.cfg"
,
url_string
=
"https://lab.nexedi.com/nexedi/slapos/raw/
%s/software/kvm/software.cfg"
%
software_version
,
)
)
if
kvm_software_release
.
getValidationState
()
==
"draft"
:
if
kvm_software_release
.
getValidationState
()
==
"draft"
:
kvm_software_release
.
publishAlive
()
kvm_software_release
.
publishAlive
()
try
:
try
:
slaprunner_product
=
context
.
software_product_module
[
"slaprunner
"
]
theia_product
=
context
.
software_product_module
[
"theia
"
]
except
KeyError
:
except
KeyError
:
slaprunner
_product
=
context
.
software_product_module
.
newContent
(
theia
_product
=
context
.
software_product_module
.
newContent
(
id
=
"
slaprunner
"
,
id
=
"
theia
"
,
title
=
"
Webrunner
"
,
title
=
"
Theia
"
,
product_line
=
"software/application"
,
product_line
=
"software/application"
,
reference
=
"
slaprunner
"
,
reference
=
"
theia
"
,
portal_type
=
"Software Product"
portal_type
=
"Software Product"
)
)
if
slaprunner
_product
.
getValidationState
()
==
"draft"
:
if
theia
_product
.
getValidationState
()
==
"draft"
:
slaprunner
_product
.
publish
()
theia
_product
.
publish
()
try
:
try
:
slaprunner_software_release
=
context
.
software_release_module
[
"slaprunner
"
]
theia_software_release
=
context
.
software_release_module
[
"theia
"
]
except
KeyError
:
except
KeyError
:
slaprunner
_software_release
=
context
.
software_release_module
.
newContent
(
theia
_software_release
=
context
.
software_release_module
.
newContent
(
id
=
"
slaprunner
"
,
id
=
"
theia
"
,
title
=
"
Webrunner
"
,
title
=
"
Theia
"
,
portal_type
=
"Software Release"
,
portal_type
=
"Software Release"
,
version
=
"0.1"
,
version
=
"0.1"
,
language
=
"en"
,
language
=
"en"
,
effective_date
=
DateTime
(
'2018/03/14 00:00:00 UTC'
),
effective_date
=
DateTime
(
'2018/03/14 00:00:00 UTC'
),
aggregate
=
"software_product_module/
slaprunner
"
aggregate
=
"software_product_module/
theia
"
)
)
slaprunner
_software_release
.
edit
(
theia
_software_release
.
edit
(
url_string
=
"https://lab.nexedi.com/nexedi/slapos/raw/
1.0.164/software/slaprunner/software.cfg"
url_string
=
"https://lab.nexedi.com/nexedi/slapos/raw/
%s/software/theia/software.cfg"
%
software_version
)
)
if
slaprunner
_software_release
.
getValidationState
()
==
"draft"
:
if
theia
_software_release
.
getValidationState
()
==
"draft"
:
slaprunner
_software_release
.
publishAlive
()
theia
_software_release
.
publishAlive
()
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
...
...
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