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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
ef0bbae2
Commit
ef0bbae2
authored
Oct 27, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: drop template_software_instance
parent
8b8f240d
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
292 deletions
+13
-292
master/bt5/slapos_cloud/PathTemplateItem/software_instance_module/template_software_instance.xml
...m/software_instance_module/template_software_instance.xml
+0
-272
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
...teItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
+3
-9
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudAllocationAlarm.py
...al_components/test.erp5.testSlapOSCloudAllocationAlarm.py
+4
-4
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudConstraint.py
.../portal_components/test.erp5.testSlapOSCloudConstraint.py
+3
-3
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudInstanceSlapInterfaceWorkflow.py
...test.erp5.testSlapOSCloudInstanceSlapInterfaceWorkflow.py
+2
-2
master/bt5/slapos_cloud/bt/template_path_list
master/bt5/slapos_cloud/bt/template_path_list
+1
-2
No files found.
master/bt5/slapos_cloud/PathTemplateItem/software_instance_module/template_software_instance.xml
deleted
100644 → 0
View file @
8b8f240d
This diff is collapsed.
Click to expand it.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
View file @
ef0bbae2
...
...
@@ -137,12 +137,6 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
self
.
portal
.
portal_activities
.
unsubscribe
()
self
.
new_id
=
self
.
generateNewId
()
instance_template
=
self
.
portal
.
software_instance_module
.
template_software_instance
if
len
(
instance_template
.
objectValues
()):
instance_template
.
manage_delObjects
(
ids
=
[
i
.
getId
()
for
i
in
instance_template
.
objectValues
()])
def
beforeDumpExpectedConfiguration
(
self
):
"""Overwrite this function on project context to tweak production focus tests"""
pass
...
...
@@ -279,7 +273,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
person_user
.
requestSoftwareInstance
(
**
request_kw
)
return
person_user
.
REQUEST
.
get
(
'request_instance_tree'
)
def
_makeTree
(
self
,
project
,
requested_template_id
=
'template_software_instance'
):
def
_makeTree
(
self
,
project
):
new_id
=
self
.
generateNewId
()
self
.
request_kw
=
dict
(
...
...
@@ -299,7 +293,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
self
.
instance_tree
=
self
.
portal
.
instance_tree_module
\
.
newContent
(
portal_type
=
"Instance Tree"
)
self
.
software_instance
=
self
.
portal
.
software_instance_module
\
[
requested_template_id
].
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
self
.
instance_tree
.
edit
(
title
=
self
.
request_kw
[
'software_title'
],
...
...
@@ -317,7 +311,7 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
self
.
portal
.
portal_workflow
.
_jumpToStateFor
(
self
.
instance_tree
,
'start_requested'
)
self
.
requested_software_instance
=
self
.
portal
.
software_instance_module
\
.
template_software_instance
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
self
.
software_instance
.
edit
(
title
=
self
.
request_kw
[
'software_title'
],
reference
=
"TESTSI-%s"
%
new_id
,
...
...
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudAllocationAlarm.py
View file @
ef0bbae2
...
...
@@ -385,7 +385,7 @@ class TestSlapOSAllocation(SlapOSTestCaseMixin):
portal_type
=
'Compute Partition'
))
software_instance2
=
self
.
portal
.
software_instance_module
\
.
template_software_instance
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
software_instance2
.
edit
(
title
=
self
.
generateNewSoftwareTitle
(),
reference
=
"TESTSI-%s"
%
self
.
generateNewId
(),
...
...
@@ -478,7 +478,7 @@ class TestSlapOSAllocation(SlapOSTestCaseMixin):
)
software_instance2
=
self
.
portal
.
software_instance_module
\
.
template_software_instance
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
software_instance2
.
edit
(
title
=
self
.
generateNewSoftwareTitle
(),
reference
=
"TESTSI-%s"
%
self
.
generateNewId
(),
...
...
@@ -499,7 +499,7 @@ class TestSlapOSAllocation(SlapOSTestCaseMixin):
)
software_instance3
=
self
.
portal
.
software_instance_module
\
.
template_software_instance
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
software_instance3
.
edit
(
title
=
self
.
generateNewSoftwareTitle
(),
reference
=
"TESTSI-%s"
%
self
.
generateNewId
(),
...
...
@@ -605,7 +605,7 @@ class TestSlapOSAllocation(SlapOSTestCaseMixin):
portal_type
=
'Compute Partition'
))
software_instance2
=
self
.
portal
.
software_instance_module
\
.
template_software_instance
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
software_instance2
.
edit
(
title
=
self
.
generateNewSoftwareTitle
(),
reference
=
"TESTSI-%s"
%
self
.
generateNewId
(),
...
...
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudConstraint.py
View file @
ef0bbae2
...
...
@@ -50,7 +50,7 @@ class TestSlapOSComputePartitionConstraint(TestSlapOSConstraintMixin):
partition
=
compute_node
.
newContent
(
portal_type
=
'Compute Partition'
)
self
.
portal
.
portal_workflow
.
_jumpToStateFor
(
partition
,
'free'
)
software_instance
=
self
.
portal
.
software_instance_module
\
.
template_software_instance
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
slave_instance
=
self
.
portal
.
software_instance_module
.
newContent
(
portal_type
=
'Slave Instance'
)
...
...
@@ -89,10 +89,10 @@ class TestSlapOSComputePartitionConstraint(TestSlapOSConstraintMixin):
partition
=
compute_node
.
newContent
(
portal_type
=
'Compute Partition'
)
self
.
portal
.
portal_workflow
.
_jumpToStateFor
(
partition
,
'busy'
)
software_instance
=
self
.
portal
.
software_instance_module
\
.
template_software_instance
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
software_instance
.
edit
(
aggregate
=
partition
.
getRelativeUrl
())
software_instance_2
=
self
.
portal
.
software_instance_module
\
.
template_software_instance
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
slave_instance
=
self
.
portal
.
software_instance_module
.
newContent
(
portal_type
=
'Slave Instance'
)
slave_instance_2
=
self
.
portal
.
software_instance_module
.
newContent
(
...
...
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudInstanceSlapInterfaceWorkflow.py
View file @
ef0bbae2
...
...
@@ -46,7 +46,7 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflow(SlapOSTestCaseMixin):
instance_tree
=
portal
.
instance_tree_module
\
.
newContent
(
portal_type
=
"Instance Tree"
)
self
.
software_instance
=
portal
.
software_instance_module
\
.
template_software_instance
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
instance_tree
.
edit
(
title
=
self
.
request_kw
[
'software_title'
],
...
...
@@ -889,7 +889,7 @@ class TestSlapOSCoreInstanceSlapInterfaceWorkflowTransfer(SlapOSTestCaseMixin):
self
.
instance_tree
=
portal
.
instance_tree_module
\
.
newContent
(
portal_type
=
"Instance Tree"
)
self
.
software_instance
=
portal
.
software_instance_module
\
.
template_software_instance
.
Base_createCloneDocument
(
batch_mode
=
1
)
.
newContent
(
portal_type
=
"Software Instance"
)
self
.
instance_tree
.
edit
(
title
=
self
.
request_kw
[
'software_title'
],
...
...
master/bt5/slapos_cloud/bt/template_path_list
View file @
ef0bbae2
...
...
@@ -21,4 +21,3 @@ portal_caches/compute_node_information_cache_factory/persistent_cache_plugin
portal_caches/last_stored_data_cache_factory
portal_caches/last_stored_data_cache_factory/volatile_cache_plugin
product_module/compute_node
\ No newline at end of file
software_instance_module/template_software_instance
\ No newline at end of file
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