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
Nicolas Wavrant
slapos.core
Commits
8afa31c1
Commit
8afa31c1
authored
Sep 22, 2014
by
Cédric de Saint Martin
Committed by
Rafael Monnerat
Nov 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slaptool: Send filter_dict when returning a Partition (test).
parent
351fb0b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
120 additions
and
70 deletions
+120
-70
master/bt5/slapos_slap_tool/TestTemplateItem/testSlapOSSlapTool.py
...5/slapos_slap_tool/TestTemplateItem/testSlapOSSlapTool.py
+119
-69
master/bt5/slapos_slap_tool/bt/revision
master/bt5/slapos_slap_tool/bt/revision
+1
-1
No files found.
master/bt5/slapos_slap_tool/TestTemplateItem/testSlapOSSlapTool.py
View file @
8afa31c1
...
...
@@ -126,14 +126,19 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<unicode>%(computer_id)s</unicode>
<string>_connection_dict</string>
<dictionary id='i9'/>
<string>_filter_dict</string>
<dictionary id='i10'>
<unicode>paramé</unicode>
<unicode>%(partition_3_sla)s</unicode>
</dictionary>
<string>_instance_guid</string>
<unicode>%(partition_3_instance_guid)s</unicode>
<string>_need_modification</string>
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i1
0
'>
<dictionary id='i1
1
'>
<string>ip_list</string>
<list id='i1
1
'>
<list id='i1
2
'>
<tuple>
<unicode/>
<unicode>ip_address_3</unicode>
...
...
@@ -150,7 +155,7 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(partition_3_instance_software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i1
2
'/>
<list id='i1
3
'/>
<string>timestamp</string>
<string>%(partition_3_timestamp)s</string>
</dictionary>
...
...
@@ -161,40 +166,45 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>destroyed</string>
<string>_software_release_document</string>
<object id='i1
3
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i1
4
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(partition_3_software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i1
4
'>
<dictionary id='i1
5
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i1
5
'/>
<list id='i1
6
'/>
<string>_software_release</string>
<unicode>%(partition_3_software_release_url)s</unicode>
</dictionary>
</object>
</dictionary>
</object>
<object id='i1
6
' module='slapos.slap.slap' class='ComputerPartition'>
<object id='i1
7
' module='slapos.slap.slap' class='ComputerPartition'>
<tuple>
<unicode>%(computer_id)s</unicode>
<unicode>partition2</unicode>
</tuple>
<dictionary id='i1
7
'>
<dictionary id='i1
8
'>
<string>_computer_id</string>
<unicode>%(computer_id)s</unicode>
<string>_connection_dict</string>
<dictionary id='i18'/>
<dictionary id='i19'/>
<string>_filter_dict</string>
<dictionary id='i20'>
<unicode>paramé</unicode>
<unicode>%(partition_2_sla)s</unicode>
</dictionary>
<string>_instance_guid</string>
<unicode>%(partition_2_instance_guid)s</unicode>
<string>_need_modification</string>
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i
19
'>
<dictionary id='i
21
'>
<string>ip_list</string>
<list id='i2
0
'>
<list id='i2
2
'>
<tuple>
<unicode/>
<unicode>ip_address_2</unicode>
...
...
@@ -211,7 +221,7 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(partition_2_instance_software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i2
1
'/>
<list id='i2
3
'/>
<string>timestamp</string>
<string>%(partition_2_timestamp)s</string>
</dictionary>
...
...
@@ -222,40 +232,45 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>stopped</string>
<string>_software_release_document</string>
<object id='i2
2
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i2
4
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(partition_2_software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i2
3
'>
<dictionary id='i2
5
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i2
4
'/>
<list id='i2
6
'/>
<string>_software_release</string>
<unicode>%(partition_2_software_release_url)s</unicode>
</dictionary>
</object>
</dictionary>
</object>
<object id='i2
5
' module='slapos.slap.slap' class='ComputerPartition'>
<object id='i2
7
' module='slapos.slap.slap' class='ComputerPartition'>
<tuple>
<unicode>%(computer_id)s</unicode>
<unicode>partition1</unicode>
</tuple>
<dictionary id='i2
6
'>
<dictionary id='i2
8
'>
<string>_computer_id</string>
<unicode>%(computer_id)s</unicode>
<string>_connection_dict</string>
<dictionary id='i27'/>
<dictionary id='i29'/>
<string>_filter_dict</string>
<dictionary id='i30'>
<unicode>paramé</unicode>
<unicode>%(partition_1_sla)s</unicode>
</dictionary>
<string>_instance_guid</string>
<unicode>%(partition_1_instance_guid)s</unicode>
<string>_need_modification</string>
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i
28
'>
<dictionary id='i
31
'>
<string>ip_list</string>
<list id='i
29
'>
<list id='i
32
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -272,8 +287,8 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(partition_1_instance_software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i3
0
'>
<dictionary id='i3
1
'>
<list id='i3
3
'>
<dictionary id='i3
4
'>
<unicode>paramé</unicode>
<unicode>%(slave_1_param)s</unicode>
<string>slap_software_type</string>
...
...
@@ -296,16 +311,16 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>started</string>
<string>_software_release_document</string>
<object id='i3
2
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i3
5
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(partition_1_software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i3
3
'>
<dictionary id='i3
6
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i3
4
'/>
<list id='i3
7
'/>
<string>_software_release</string>
<unicode>%(partition_1_software_release_url)s</unicode>
</dictionary>
...
...
@@ -314,35 +329,35 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
</object>
</list>
<string>_software_release_list</string>
<list id='i3
5
'>
<object id='i3
6
' module='slapos.slap.slap' class='SoftwareRelease'>
<list id='i3
8
'>
<object id='i3
9
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(destroy_requested_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i
37
'>
<dictionary id='i
40
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_requested_state</string>
<string>destroyed</string>
<string>_software_instance_list</string>
<list id='i
38
'/>
<list id='i
41
'/>
<string>_software_release</string>
<unicode>%(destroy_requested_url)s</unicode>
</dictionary>
</object>
<object id='i
39
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i
42
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(start_requested_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i4
0
'>
<dictionary id='i4
3
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_requested_state</string>
<string>available</string>
<string>_software_instance_list</string>
<list id='i4
1
'/>
<list id='i4
4
'/>
<string>_software_release</string>
<unicode>%(start_requested_url)s</unicode>
</dictionary>
...
...
@@ -357,16 +372,19 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
partition_1_instance_guid
=
self
.
computer
.
partition1
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getReference
(),
partition_1_instance_software_type
=
self
.
computer
.
partition1
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getSourceReference
(),
partition_1_param
=
self
.
computer
.
partition1
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getInstanceXmlAsDict
()[
'paramé'
],
partition_1_sla
=
self
.
computer
.
partition1
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getSlaXmlAsDict
()[
'paramé'
],
partition_1_software_release_url
=
self
.
computer
.
partition1
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getUrlString
(),
partition_1_timestamp
=
int
(
self
.
computer
.
partition1
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getModificationDate
()),
partition_2_instance_guid
=
self
.
computer
.
partition2
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getReference
(),
partition_2_instance_software_type
=
self
.
computer
.
partition2
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getSourceReference
(),
partition_2_param
=
self
.
computer
.
partition2
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getInstanceXmlAsDict
()[
'paramé'
],
partition_2_sla
=
self
.
computer
.
partition2
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getSlaXmlAsDict
()[
'paramé'
],
partition_2_software_release_url
=
self
.
computer
.
partition2
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getUrlString
(),
partition_2_timestamp
=
int
(
self
.
computer
.
partition2
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getModificationDate
()),
partition_3_instance_guid
=
self
.
computer
.
partition3
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getReference
(),
partition_3_instance_software_type
=
self
.
computer
.
partition3
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getSourceReference
(),
partition_3_param
=
self
.
computer
.
partition3
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getInstanceXmlAsDict
()[
'paramé'
],
partition_3_sla
=
self
.
computer
.
partition3
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getSlaXmlAsDict
()[
'paramé'
],
partition_3_software_release_url
=
self
.
computer
.
partition3
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getUrlString
(),
partition_3_timestamp
=
int
(
self
.
computer
.
partition3
.
getAggregateRelatedValue
(
portal_type
=
'Software Instance'
).
getModificationDate
()),
slave_1_param
=
self
.
start_requested_slave_instance
.
getInstanceXmlAsDict
()[
'paramé'
],
...
...
@@ -916,14 +934,19 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<unicode>%(computer_id)s</unicode>
<string>_connection_dict</string>
<dictionary id='i7'/>
<string>_filter_dict</string>
<dictionary id='i8'>
<unicode>paramé</unicode>
<unicode>%(sla)s</unicode>
</dictionary>
<string>_instance_guid</string>
<unicode>%(instance_guid)s</unicode>
<string>_need_modification</string>
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i
8
'>
<dictionary id='i
9
'>
<string>ip_list</string>
<list id='i
9
'>
<list id='i
10
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -940,8 +963,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i1
0
'>
<dictionary id='i1
1
'>
<list id='i1
1
'>
<dictionary id='i1
2
'>
<unicode>paramé</unicode>
<unicode>%(slave_1_param)s</unicode>
<string>slap_software_type</string>
...
...
@@ -964,16 +987,16 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>started</string>
<string>_software_release_document</string>
<object id='i1
2
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i1
3
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i1
3
'>
<dictionary id='i1
4
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i1
4
'/>
<list id='i1
5
'/>
<string>_software_release</string>
<unicode>%(software_release_url)s</unicode>
</dictionary>
...
...
@@ -982,7 +1005,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
</object>
</list>
<string>_software_release_list</string>
<list id='i1
5
'/>
<list id='i1
6
'/>
</dictionary>
</object>
</marshal>
...
...
@@ -992,6 +1015,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
software_release_url
=
self
.
start_requested_software_instance
.
getUrlString
(),
software_type
=
self
.
start_requested_software_instance
.
getSourceReference
(),
param
=
self
.
start_requested_software_instance
.
getInstanceXmlAsDict
()[
'paramé'
],
sla
=
self
.
start_requested_software_instance
.
getSlaXmlAsDict
()[
'paramé'
],
timestamp
=
int
(
self
.
start_requested_software_instance
.
getModificationDate
()),
slave_1_param
=
self
.
start_requested_slave_instance
.
getInstanceXmlAsDict
()[
'paramé'
],
slave_1_software_type
=
self
.
start_requested_slave_instance
.
getSourceReference
(),
...
...
@@ -1122,14 +1146,19 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<unicode>%(computer_id)s</unicode>
<string>_connection_dict</string>
<dictionary id='i4'/>
<string>_filter_dict</string>
<dictionary id='i5'>
<unicode>paramé</unicode>
<unicode>%(sla)s</unicode>
</dictionary>
<string>_instance_guid</string>
<unicode>%(instance_guid)s</unicode>
<string>_need_modification</string>
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i
5
'>
<dictionary id='i
6
'>
<string>ip_list</string>
<list id='i
6
'>
<list id='i
7
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -1146,8 +1175,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i
7
'>
<dictionary id='i
8
'>
<list id='i
8
'>
<dictionary id='i
9
'>
<unicode>paramé</unicode>
<unicode>%(slave_1_param)s</unicode>
<string>slap_software_type</string>
...
...
@@ -1170,16 +1199,16 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>started</string>
<string>_software_release_document</string>
<object id='i
9
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i
10
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i1
0
'>
<dictionary id='i1
1
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i1
1
'/>
<list id='i1
2
'/>
<string>_software_release</string>
<unicode>%(software_release_url)s</unicode>
</dictionary>
...
...
@@ -1192,6 +1221,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
"""
%
dict
(
computer_id
=
self
.
computer_id
,
param
=
self
.
start_requested_software_instance
.
getInstanceXmlAsDict
()[
'paramé'
],
sla
=
self
.
start_requested_software_instance
.
getSlaXmlAsDict
()[
'paramé'
],
software_release_url
=
self
.
start_requested_software_instance
.
getUrlString
(),
timestamp
=
int
(
self
.
start_requested_software_instance
.
getModificationDate
()),
instance_guid
=
self
.
start_requested_software_instance
.
getReference
(),
...
...
@@ -1238,14 +1268,19 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<unicode>%(computer_id)s</unicode>
<string>_connection_dict</string>
<dictionary id='i4'/>
<string>_filter_dict</string>
<dictionary id='i5'>
<unicode>paramé</unicode>
<unicode>%(sla)s</unicode>
</dictionary>
<string>_instance_guid</string>
<unicode>%(instance_guid)s</unicode>
<string>_need_modification</string>
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i
5
'>
<dictionary id='i
6
'>
<string>ip_list</string>
<list id='i
6
'>
<list id='i
7
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -1262,7 +1297,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i
7
'/>
<list id='i
8
'/>
<string>timestamp</string>
<string>%(timestamp)s</string>
</dictionary>
...
...
@@ -1273,16 +1308,16 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>started</string>
<string>_software_release_document</string>
<object id='i
8
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i
9
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i
9
'>
<dictionary id='i
10
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i1
0
'/>
<list id='i1
1
'/>
<string>_software_release</string>
<unicode>%(software_release_url)s</unicode>
</dictionary>
...
...
@@ -1295,6 +1330,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
"""
%
dict
(
computer_id
=
self
.
computer_id
,
param
=
self
.
start_requested_software_instance
.
getInstanceXmlAsDict
()[
'paramé'
],
sla
=
self
.
start_requested_software_instance
.
getSlaXmlAsDict
()[
'paramé'
],
software_release_url
=
self
.
start_requested_software_instance
.
getUrlString
(),
timestamp
=
int
(
self
.
start_requested_software_instance
.
getModificationDate
()),
instance_guid
=
self
.
start_requested_software_instance
.
getReference
(),
...
...
@@ -2187,14 +2223,19 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<unicode>%(computer_id)s</unicode>
<string>_connection_dict</string>
<dictionary id='i4'/>
<string>_filter_dict</string>
<dictionary id='i5'>
<unicode>paramé</unicode>
<unicode>%(sla)s</unicode>
</dictionary>
<string>_instance_guid</string>
<unicode>%(instance_guid)s</unicode>
<string>_need_modification</string>
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i
5
'>
<dictionary id='i
6
'>
<string>ip_list</string>
<list id='i
6
'>
<list id='i
7
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -2211,8 +2252,8 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i
7
'>
<dictionary id='i
8
'>
<list id='i
8
'>
<dictionary id='i
9
'>
<unicode>paramé</unicode>
<unicode>%(slave_1_param)s</unicode>
<string>slap_software_type</string>
...
...
@@ -2235,16 +2276,16 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>started</string>
<string>_software_release_document</string>
<object id='i
9
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i
10
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i1
0
'>
<dictionary id='i1
1
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i1
1
'/>
<list id='i1
2
'/>
<string>_software_release</string>
<unicode>%(software_release_url)s</unicode>
</dictionary>
...
...
@@ -2257,6 +2298,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
"""
%
dict
(
computer_id
=
self
.
computer_id
,
param
=
self
.
start_requested_software_instance
.
getInstanceXmlAsDict
()[
'paramé'
],
sla
=
self
.
start_requested_software_instance
.
getSlaXmlAsDict
()[
'paramé'
],
software_release_url
=
self
.
start_requested_software_instance
.
getUrlString
(),
timestamp
=
int
(
self
.
start_requested_software_instance
.
getModificationDate
()),
instance_guid
=
self
.
start_requested_software_instance
.
getReference
(),
...
...
@@ -2303,14 +2345,19 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<unicode>%(computer_id)s</unicode>
<string>_connection_dict</string>
<dictionary id='i4'/>
<string>_filter_dict</string>
<dictionary id='i5'>
<unicode>paramé</unicode>
<unicode>%(sla)s</unicode>
</dictionary>
<string>_instance_guid</string>
<unicode>%(instance_guid)s</unicode>
<string>_need_modification</string>
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i
5
'>
<dictionary id='i
6
'>
<string>ip_list</string>
<list id='i
6
'>
<list id='i
7
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -2327,7 +2374,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i
7
'/>
<list id='i
8
'/>
<string>timestamp</string>
<string>%(timestamp)s</string>
</dictionary>
...
...
@@ -2338,16 +2385,16 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>started</string>
<string>_software_release_document</string>
<object id='i
8
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i
9
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i
9
'>
<dictionary id='i
10
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i1
0
'/>
<list id='i1
1
'/>
<string>_software_release</string>
<unicode>%(software_release_url)s</unicode>
</dictionary>
...
...
@@ -2360,6 +2407,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
"""
%
dict
(
computer_id
=
self
.
computer_id
,
param
=
self
.
start_requested_software_instance
.
getInstanceXmlAsDict
()[
'paramé'
],
sla
=
self
.
start_requested_software_instance
.
getSlaXmlAsDict
()[
'paramé'
],
software_release_url
=
self
.
start_requested_software_instance
.
getUrlString
(),
timestamp
=
int
(
self
.
start_requested_software_instance
.
getModificationDate
()),
instance_guid
=
self
.
start_requested_software_instance
.
getReference
(),
...
...
@@ -2551,14 +2599,16 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<dictionary id='i3'>
<string>_connection_dict</string>
<dictionary id='i4'/>
<string>_filter_dict</string>
<dictionary id='i5'/>
<string>_instance_guid</string>
<unicode>%(instance_guid)s</unicode>
<string>_parameter_dict</string>
<dictionary id='i
5
'/>
<dictionary id='i
6
'/>
<string>_requested_state</string>
<string>%(state)s</string>
<string>ip_list</string>
<list id='i
6
'>
<list id='i
7
'>
<tuple>
<unicode/>
<unicode>%(ip)s</unicode>
...
...
@@ -2573,7 +2623,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(type)s</unicode>
<string>slave_instance_list</string>
<list id='i
7
'/>
<list id='i
8
'/>
<string>timestamp</string>
<string>%(timestamp)s</string>
</dictionary>
...
...
master/bt5/slapos_slap_tool/bt/revision
View file @
8afa31c1
36
\ No newline at end of file
37
\ 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