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
Xavier Thompson
slapos.core
Commits
c7a62cc1
Commit
c7a62cc1
authored
Jun 11, 2012
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Number of SPL depends on expected state
parent
3537fa39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+7
-2
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
c7a62cc1
...
@@ -3715,7 +3715,12 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -3715,7 +3715,12 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
sale_packing_list_line_list
=
software_instance
\
sale_packing_list_line_list
=
software_instance
\
.
getAggregateRelatedValueList
(
.
getAggregateRelatedValueList
(
portal_type
=
self
.
sale_packing_list_line_portal_type
)
portal_type
=
self
.
sale_packing_list_line_portal_type
)
self
.
assertEqual
(
2
,
len
(
sale_packing_list_line_list
))
if
(
software_instance
.
getSlapState
()
==
"start_requested"
):
expected_count
=
2
else
:
expected_count
=
1
self
.
assertEqual
(
expected_count
,
len
(
sale_packing_list_line_list
))
sale_packing_list_line
=
sale_packing_list_line_list
[
0
]
sale_packing_list_line
=
sale_packing_list_line_list
[
0
]
# This Sale Packing List Line shall have only one Computer Partition
# This Sale Packing List Line shall have only one Computer Partition
...
@@ -3729,7 +3734,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -3729,7 +3734,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
computer_partition_sale_packing_list_line_list
=
computer_partition
\
computer_partition_sale_packing_list_line_list
=
computer_partition
\
.
getAggregateRelatedValueList
(
.
getAggregateRelatedValueList
(
portal_type
=
self
.
sale_packing_list_line_portal_type
)
portal_type
=
self
.
sale_packing_list_line_portal_type
)
self
.
assertEqual
(
2
,
len
(
computer_partition_sale_packing_list_line_list
))
self
.
assertEqual
(
expected_count
,
len
(
computer_partition_sale_packing_list_line_list
))
def
stepCheckPersonRequestedSoftwareInstanceAndRelatedComputerPartition
(
self
,
def
stepCheckPersonRequestedSoftwareInstanceAndRelatedComputerPartition
(
self
,
sequence
,
**
kw
):
sequence
,
**
kw
):
...
...
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