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
72752e23
Commit
72752e23
authored
Jul 23, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert libslap changes
parent
87dc2525
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
23 deletions
+23
-23
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseDefaultScenarioMixin.py
...omponents/test.erp5.SlapOSTestCaseDefaultScenarioMixin.py
+1
-1
master/bt5/slapos_slap_tool/TestTemplateItem/portal_components/test.erp5.testSlapOSSlapTool.py
...ateItem/portal_components/test.erp5.testSlapOSSlapTool.py
+21
-21
master/bt5/slapos_slap_tool/ToolComponentTemplateItem/portal_components/tool.erp5.SlapTool.py
...onentTemplateItem/portal_components/tool.erp5.SlapTool.py
+1
-1
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseDefaultScenarioMixin.py
View file @
72752e23
...
@@ -117,7 +117,7 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
...
@@ -117,7 +117,7 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
self
.
tic
()
self
.
tic
()
self
.
assertTrue
(
'marshal'
in
requestXml
)
self
.
assertTrue
(
'marshal'
in
requestXml
)
compute_node
=
xml_marshaller
.
xml_marshaller
.
loads
(
requestXml
)
compute_node
=
xml_marshaller
.
xml_marshaller
.
loads
(
requestXml
)
compute_node_id
=
getattr
(
compute_node
,
'_compute
_node
_id'
,
None
)
compute_node_id
=
getattr
(
compute_node
,
'_compute
r
_id'
,
None
)
self
.
assertNotEqual
(
None
,
compute_node_id
)
self
.
assertNotEqual
(
None
,
compute_node_id
)
return
compute_node_id
.
encode
(
'UTF-8'
)
return
compute_node_id
.
encode
(
'UTF-8'
)
...
...
master/bt5/slapos_slap_tool/TestTemplateItem/portal_components/test.erp5.testSlapOSSlapTool.py
View file @
72752e23
...
@@ -266,7 +266,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
...
@@ -266,7 +266,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
</tuple>
</tuple>
<dictionary id='i3'>
<dictionary id='i3'>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_compute_partition_list</string>
<string>_compute_partition_list</string>
<list id='i4'>
<list id='i4'>
...
@@ -276,7 +276,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
...
@@ -276,7 +276,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
<string>partition4</string>
<string>partition4</string>
</tuple>
</tuple>
<dictionary id='i6'>
<dictionary id='i6'>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_need_modification</string>
<string>_need_modification</string>
<int>0</int>
<int>0</int>
...
@@ -298,7 +298,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
...
@@ -298,7 +298,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
<dictionary id='i8'>
<dictionary id='i8'>
<string>_access_status</string>
<string>_access_status</string>
<string>%(access_status)s</string>
<string>%(access_status)s</string>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_connection_dict</string>
<string>_connection_dict</string>
<dictionary id='i9'/>
<dictionary id='i9'/>
...
@@ -330,7 +330,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
...
@@ -330,7 +330,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
<string/>
<string/>
<string>root_instance_title</string>
<string>root_instance_title</string>
<string>%(partition_3_root_instance_title)s</string>
<string>%(partition_3_root_instance_title)s</string>
<string>slap_compute
_node
_id</string>
<string>slap_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>slap_compute_partition_id</string>
<string>slap_compute_partition_id</string>
<string>partition3</string>
<string>partition3</string>
...
@@ -374,7 +374,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
...
@@ -374,7 +374,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
<dictionary id='i19'>
<dictionary id='i19'>
<string>_access_status</string>
<string>_access_status</string>
<string>%(access_status)s</string>
<string>%(access_status)s</string>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_connection_dict</string>
<string>_connection_dict</string>
<dictionary id='i20'/>
<dictionary id='i20'/>
...
@@ -406,7 +406,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
...
@@ -406,7 +406,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
<string/>
<string/>
<string>root_instance_title</string>
<string>root_instance_title</string>
<string>%(partition_2_root_instance_title)s</string>
<string>%(partition_2_root_instance_title)s</string>
<string>slap_compute
_node
_id</string>
<string>slap_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>slap_compute_partition_id</string>
<string>slap_compute_partition_id</string>
<string>partition2</string>
<string>partition2</string>
...
@@ -450,7 +450,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
...
@@ -450,7 +450,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
<dictionary id='i30'>
<dictionary id='i30'>
<string>_access_status</string>
<string>_access_status</string>
<string>%(access_status)s</string>
<string>%(access_status)s</string>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_connection_dict</string>
<string>_connection_dict</string>
<dictionary id='i31'/>
<dictionary id='i31'/>
...
@@ -482,7 +482,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
...
@@ -482,7 +482,7 @@ class TestSlapOSSlapToolComputeNodeAccess(TestSlapOSSlapToolMixin):
<string/>
<string/>
<string>root_instance_title</string>
<string>root_instance_title</string>
<string>%(partition_1_root_instance_title)s</string>
<string>%(partition_1_root_instance_title)s</string>
<string>slap_compute
_node
_id</string>
<string>slap_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>slap_compute_partition_id</string>
<string>slap_compute_partition_id</string>
<string>partition1</string>
<string>partition1</string>
...
@@ -1177,7 +1177,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -1177,7 +1177,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
</tuple>
</tuple>
<dictionary id='i3'>
<dictionary id='i3'>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_compute_partition_list</string>
<string>_compute_partition_list</string>
<list id='i4'>
<list id='i4'>
...
@@ -1189,7 +1189,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -1189,7 +1189,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<dictionary id='i6'>
<dictionary id='i6'>
<string>_access_status</string>
<string>_access_status</string>
<string>%(access_status)s</string>
<string>%(access_status)s</string>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_connection_dict</string>
<string>_connection_dict</string>
<dictionary id='i7'/>
<dictionary id='i7'/>
...
@@ -1221,7 +1221,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -1221,7 +1221,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string/>
<string/>
<string>root_instance_title</string>
<string>root_instance_title</string>
<string>%(root_instance_title)s</string>
<string>%(root_instance_title)s</string>
<string>slap_compute
_node
_id</string>
<string>slap_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>slap_compute_partition_id</string>
<string>slap_compute_partition_id</string>
<string>partition1</string>
<string>partition1</string>
...
@@ -1424,7 +1424,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -1424,7 +1424,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>partition1</string>
<string>partition1</string>
</tuple>
</tuple>
<dictionary id='i3'>
<dictionary id='i3'>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_connection_dict</string>
<string>_connection_dict</string>
<dictionary id='i4'/>
<dictionary id='i4'/>
...
@@ -1456,7 +1456,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -1456,7 +1456,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string/>
<string/>
<string>root_instance_title</string>
<string>root_instance_title</string>
<string>%(root_instance_title)s</string>
<string>%(root_instance_title)s</string>
<string>slap_compute
_node
_id</string>
<string>slap_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>slap_compute_partition_id</string>
<string>slap_compute_partition_id</string>
<string>partition1</string>
<string>partition1</string>
...
@@ -1558,7 +1558,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -1558,7 +1558,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>partition1</string>
<string>partition1</string>
</tuple>
</tuple>
<dictionary id='i3'>
<dictionary id='i3'>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_connection_dict</string>
<string>_connection_dict</string>
<dictionary id='i4'/>
<dictionary id='i4'/>
...
@@ -1590,7 +1590,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
...
@@ -1590,7 +1590,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string/>
<string/>
<string>root_instance_title</string>
<string>root_instance_title</string>
<string>%(root_instance_title)s</string>
<string>%(root_instance_title)s</string>
<string>slap_compute
_node
_id</string>
<string>slap_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>slap_compute_partition_id</string>
<string>slap_compute_partition_id</string>
<string>partition1</string>
<string>partition1</string>
...
@@ -2747,7 +2747,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
...
@@ -2747,7 +2747,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>partition1</string>
<string>partition1</string>
</tuple>
</tuple>
<dictionary id='i3'>
<dictionary id='i3'>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_connection_dict</string>
<string>_connection_dict</string>
<dictionary id='i4'/>
<dictionary id='i4'/>
...
@@ -2779,7 +2779,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
...
@@ -2779,7 +2779,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string/>
<string/>
<string>root_instance_title</string>
<string>root_instance_title</string>
<string>%(root_instance_title)s</string>
<string>%(root_instance_title)s</string>
<string>slap_compute
_node
_id</string>
<string>slap_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>slap_compute_partition_id</string>
<string>slap_compute_partition_id</string>
<string>partition1</string>
<string>partition1</string>
...
@@ -2881,7 +2881,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
...
@@ -2881,7 +2881,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>partition1</string>
<string>partition1</string>
</tuple>
</tuple>
<dictionary id='i3'>
<dictionary id='i3'>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>_connection_dict</string>
<string>_connection_dict</string>
<dictionary id='i4'/>
<dictionary id='i4'/>
...
@@ -2913,7 +2913,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
...
@@ -2913,7 +2913,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string/>
<string/>
<string>root_instance_title</string>
<string>root_instance_title</string>
<string>%(root_instance_title)s</string>
<string>%(root_instance_title)s</string>
<string>slap_compute
_node
_id</string>
<string>slap_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>slap_compute_partition_id</string>
<string>slap_compute_partition_id</string>
<string>partition1</string>
<string>partition1</string>
...
@@ -3178,7 +3178,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
...
@@ -3178,7 +3178,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string/>
<string/>
<string>root_instance_title</string>
<string>root_instance_title</string>
<string>%(root_instance_title)s</string>
<string>%(root_instance_title)s</string>
<string>slap_compute
_node
_id</string>
<string>slap_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
<string>slap_compute_partition_id</string>
<string>slap_compute_partition_id</string>
<string>%(partition_id)s</string>
<string>%(partition_id)s</string>
...
@@ -3273,7 +3273,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
...
@@ -3273,7 +3273,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
</tuple>
</tuple>
<dictionary id='i3'>
<dictionary id='i3'>
<string>_compute
_node
_id</string>
<string>_compute
r
_id</string>
<string>%(compute_node_id)s</string>
<string>%(compute_node_id)s</string>
</dictionary>
</dictionary>
</object>
</object>
...
...
master/bt5/slapos_slap_tool/ToolComponentTemplateItem/portal_components/tool.erp5.SlapTool.py
View file @
72752e23
...
@@ -1635,7 +1635,7 @@ class SlapTool(BaseTool):
...
@@ -1635,7 +1635,7 @@ class SlapTool(BaseTool):
'xml'
:
software_instance
.
getTextContent
(),
'xml'
:
software_instance
.
getTextContent
(),
'connection_xml'
:
software_instance
.
getConnectionXml
(),
'connection_xml'
:
software_instance
.
getConnectionXml
(),
'filter_xml'
:
software_instance
.
getSlaXml
(),
'filter_xml'
:
software_instance
.
getSlaXml
(),
'slap_compute
_node
_id'
:
\
'slap_compute
r
_id'
:
\
compute_partition
.
getParentValue
().
getReference
().
decode
(
"UTF-8"
),
compute_partition
.
getParentValue
().
getReference
().
decode
(
"UTF-8"
),
'slap_compute_partition_id'
:
\
'slap_compute_partition_id'
:
\
compute_partition
.
getReference
().
decode
(
"UTF-8"
),
compute_partition
.
getReference
().
decode
(
"UTF-8"
),
...
...
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