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
Łukasz Nowak
slapos.core
Commits
908318e4
Commit
908318e4
authored
Mar 20, 2015
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test testSlapOSSlapTool (full_ip_list)
parent
f25131f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
64 deletions
+82
-64
master/bt5/slapos_slap_tool/TestTemplateItem/portal_components/test.erp5.testSlapOSSlapTool.py
...ateItem/portal_components/test.erp5.testSlapOSSlapTool.py
+82
-64
No files found.
master/bt5/slapos_slap_tool/TestTemplateItem/portal_components/test.erp5.testSlapOSSlapTool.py
View file @
908318e4
...
...
@@ -137,8 +137,10 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i11'>
<string>full_ip_list</string>
<list id='i12'/>
<string>ip_list</string>
<list id='i1
2
'>
<list id='i1
3
'>
<tuple>
<unicode/>
<unicode>ip_address_3</unicode>
...
...
@@ -155,7 +157,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
3
'/>
<list id='i1
4
'/>
<string>timestamp</string>
<string>%(partition_3_timestamp)s</string>
</dictionary>
...
...
@@ -166,34 +168,34 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>destroyed</string>
<string>_software_release_document</string>
<object id='i1
4
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i1
5
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(partition_3_software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i1
5
'>
<dictionary id='i1
6
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i1
6
'/>
<list id='i1
7
'/>
<string>_software_release</string>
<unicode>%(partition_3_software_release_url)s</unicode>
</dictionary>
</object>
</dictionary>
</object>
<object id='i1
7
' module='slapos.slap.slap' class='ComputerPartition'>
<object id='i1
8
' module='slapos.slap.slap' class='ComputerPartition'>
<tuple>
<unicode>%(computer_id)s</unicode>
<unicode>partition2</unicode>
</tuple>
<dictionary id='i1
8
'>
<dictionary id='i1
9
'>
<string>_computer_id</string>
<unicode>%(computer_id)s</unicode>
<string>_connection_dict</string>
<dictionary id='i
19
'/>
<dictionary id='i
20
'/>
<string>_filter_dict</string>
<dictionary id='i2
0
'>
<dictionary id='i2
1
'>
<unicode>paramé</unicode>
<unicode>%(partition_2_sla)s</unicode>
</dictionary>
...
...
@@ -202,9 +204,11 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>_need_modification</string>
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i21'>
<dictionary id='i22'>
<string>full_ip_list</string>
<list id='i23'/>
<string>ip_list</string>
<list id='i2
2
'>
<list id='i2
4
'>
<tuple>
<unicode/>
<unicode>ip_address_2</unicode>
...
...
@@ -221,7 +225,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
3
'/>
<list id='i2
5
'/>
<string>timestamp</string>
<string>%(partition_2_timestamp)s</string>
</dictionary>
...
...
@@ -232,34 +236,34 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>stopped</string>
<string>_software_release_document</string>
<object id='i2
4
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i2
6
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(partition_2_software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i2
5
'>
<dictionary id='i2
7
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i2
6
'/>
<list id='i2
8
'/>
<string>_software_release</string>
<unicode>%(partition_2_software_release_url)s</unicode>
</dictionary>
</object>
</dictionary>
</object>
<object id='i2
7
' module='slapos.slap.slap' class='ComputerPartition'>
<object id='i2
9
' module='slapos.slap.slap' class='ComputerPartition'>
<tuple>
<unicode>%(computer_id)s</unicode>
<unicode>partition1</unicode>
</tuple>
<dictionary id='i
28
'>
<dictionary id='i
30
'>
<string>_computer_id</string>
<unicode>%(computer_id)s</unicode>
<string>_connection_dict</string>
<dictionary id='i
29
'/>
<dictionary id='i
31
'/>
<string>_filter_dict</string>
<dictionary id='i3
0
'>
<dictionary id='i3
2
'>
<unicode>paramé</unicode>
<unicode>%(partition_1_sla)s</unicode>
</dictionary>
...
...
@@ -268,9 +272,11 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>_need_modification</string>
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i31'>
<dictionary id='i33'>
<string>full_ip_list</string>
<list id='i34'/>
<string>ip_list</string>
<list id='i3
2
'>
<list id='i3
5
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -287,8 +293,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
3
'>
<dictionary id='i3
4
'>
<list id='i3
6
'>
<dictionary id='i3
7
'>
<unicode>paramé</unicode>
<unicode>%(slave_1_param)s</unicode>
<string>slap_software_type</string>
...
...
@@ -311,16 +317,16 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>started</string>
<string>_software_release_document</string>
<object id='i3
5
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i3
8
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(partition_1_software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i3
6
'>
<dictionary id='i3
9
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i
37
'/>
<list id='i
40
'/>
<string>_software_release</string>
<unicode>%(partition_1_software_release_url)s</unicode>
</dictionary>
...
...
@@ -329,35 +335,35 @@ class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
</object>
</list>
<string>_software_release_list</string>
<list id='i
38
'>
<object id='i
39
' module='slapos.slap.slap' class='SoftwareRelease'>
<list id='i
41
'>
<object id='i
42
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(destroy_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>destroyed</string>
<string>_software_instance_list</string>
<list id='i4
1
'/>
<list id='i4
4
'/>
<string>_software_release</string>
<unicode>%(destroy_requested_url)s</unicode>
</dictionary>
</object>
<object id='i4
2
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i4
5
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(start_requested_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i4
3
'>
<dictionary id='i4
6
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_requested_state</string>
<string>available</string>
<string>_software_instance_list</string>
<list id='i4
4
'/>
<list id='i4
7
'/>
<string>_software_release</string>
<unicode>%(start_requested_url)s</unicode>
</dictionary>
...
...
@@ -945,8 +951,10 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i9'>
<string>full_ip_list</string>
<list id='i10'/>
<string>ip_list</string>
<list id='i1
0
'>
<list id='i1
1
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -963,8 +971,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i1
1
'>
<dictionary id='i1
2
'>
<list id='i1
2
'>
<dictionary id='i1
3
'>
<unicode>paramé</unicode>
<unicode>%(slave_1_param)s</unicode>
<string>slap_software_type</string>
...
...
@@ -987,16 +995,16 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>started</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>%(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>%(software_release_url)s</unicode>
</dictionary>
...
...
@@ -1005,7 +1013,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
</object>
</list>
<string>_software_release_list</string>
<list id='i1
6
'/>
<list id='i1
7
'/>
</dictionary>
</object>
</marshal>
...
...
@@ -1157,8 +1165,10 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i6'>
<string>full_ip_list</string>
<list id='i7'/>
<string>ip_list</string>
<list id='i
7
'>
<list id='i
8
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -1175,8 +1185,8 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i
8
'>
<dictionary id='i
9
'>
<list id='i
9
'>
<dictionary id='i
10
'>
<unicode>paramé</unicode>
<unicode>%(slave_1_param)s</unicode>
<string>slap_software_type</string>
...
...
@@ -1199,16 +1209,16 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>started</string>
<string>_software_release_document</string>
<object id='i1
0
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i1
1
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i1
1
'>
<dictionary id='i1
2
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i1
2
'/>
<list id='i1
3
'/>
<string>_software_release</string>
<unicode>%(software_release_url)s</unicode>
</dictionary>
...
...
@@ -1279,8 +1289,10 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i6'>
<string>full_ip_list</string>
<list id='i7'/>
<string>ip_list</string>
<list id='i
7
'>
<list id='i
8
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -1297,7 +1309,7 @@ class TestSlapOSSlapToolInstanceAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i
8
'/>
<list id='i
9
'/>
<string>timestamp</string>
<string>%(timestamp)s</string>
</dictionary>
...
...
@@ -1308,16 +1320,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>
...
...
@@ -2234,8 +2246,10 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i6'>
<string>full_ip_list</string>
<list id='i7'/>
<string>ip_list</string>
<list id='i
7
'>
<list id='i
8
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -2252,8 +2266,8 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i
8
'>
<dictionary id='i
9
'>
<list id='i
9
'>
<dictionary id='i
10
'>
<unicode>paramé</unicode>
<unicode>%(slave_1_param)s</unicode>
<string>slap_software_type</string>
...
...
@@ -2276,16 +2290,16 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>_requested_state</string>
<string>started</string>
<string>_software_release_document</string>
<object id='i1
0
' module='slapos.slap.slap' class='SoftwareRelease'>
<object id='i1
1
' module='slapos.slap.slap' class='SoftwareRelease'>
<tuple>
<unicode>%(software_release_url)s</unicode>
<unicode>%(computer_id)s</unicode>
</tuple>
<dictionary id='i1
1
'>
<dictionary id='i1
2
'>
<string>_computer_guid</string>
<unicode>%(computer_id)s</unicode>
<string>_software_instance_list</string>
<list id='i1
2
'/>
<list id='i1
3
'/>
<string>_software_release</string>
<unicode>%(software_release_url)s</unicode>
</dictionary>
...
...
@@ -2356,8 +2370,10 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<int>1</int>
<string>_parameter_dict</string>
<dictionary id='i6'>
<string>full_ip_list</string>
<list id='i7'/>
<string>ip_list</string>
<list id='i
7
'>
<list id='i
8
'>
<tuple>
<unicode/>
<unicode>ip_address_1</unicode>
...
...
@@ -2374,7 +2390,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(software_type)s</unicode>
<string>slave_instance_list</string>
<list id='i
8
'/>
<list id='i
9
'/>
<string>timestamp</string>
<string>%(timestamp)s</string>
</dictionary>
...
...
@@ -2385,16 +2401,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>
...
...
@@ -2607,8 +2623,10 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<dictionary id='i6'/>
<string>_requested_state</string>
<string>%(state)s</string>
<string>full_ip_list</string>
<list id='i7'/>
<string>ip_list</string>
<list id='i
7
'>
<list id='i
8
'>
<tuple>
<unicode/>
<unicode>%(ip)s</unicode>
...
...
@@ -2623,7 +2641,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSSlapToolMixin):
<string>slap_software_type</string>
<unicode>%(type)s</unicode>
<string>slave_instance_list</string>
<list id='i
8
'/>
<list id='i
9
'/>
<string>timestamp</string>
<string>%(timestamp)s</string>
</dictionary>
...
...
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