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
Ivan Tyagov
slapos.core
Commits
9ffff1f4
Commit
9ffff1f4
authored
Jun 15, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish test_person_request_ComputerPartition.
parent
3c7f1ef2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
1 deletion
+44
-1
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+44
-1
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
9ffff1f4
...
...
@@ -3014,6 +3014,36 @@ class TestVifibSlapWebService(testVifibMixin):
portal_type
=
self
.
sale_packing_list_line_portal_type
)
self
.
assertEqual
(
1
,
len
(
computer_partition_sale_packing_list_line_list
))
def
stepCheckPersonRequestedSoftwareInstanceAndRelatedComputerPartition
(
self
,
sequence
,
**
kw
):
computer_partition
=
self
.
portal
.
portal_catalog
.
getResultValue
(
parent_uid
=
sequence
[
'computer_uid'
],
reference
=
sequence
[
'requested_computer_partition_reference'
],
portal_type
=
'Computer Partition'
)
software_instance
=
self
.
_computerPartition_getSoftwareInstance
(
computer_partition
)
# There should be only one Sale Packing List Line
sale_packing_list_line_list
=
software_instance
\
.
getAggregateRelatedValueList
(
portal_type
=
self
.
sale_packing_list_line_portal_type
)
self
.
assertEqual
(
1
,
len
(
sale_packing_list_line_list
))
sale_packing_list_line
=
sale_packing_list_line_list
[
0
]
# This Sale Packing List Line shall have only one Computer Partition
computer_partition_list
=
sale_packing_list_line
.
getAggregateValueList
(
portal_type
=
'Computer Partition'
)
self
.
assertEqual
(
1
,
len
(
computer_partition_list
))
computer_partition
=
computer_partition_list
[
0
]
# This Computer Partition shall have only Sale Packing List Line related
computer_partition_sale_packing_list_line_list
=
computer_partition
\
.
getAggregateRelatedValueList
(
portal_type
=
self
.
sale_packing_list_line_portal_type
)
self
.
assertEqual
(
1
,
len
(
computer_partition_sale_packing_list_line_list
))
sequence
[
'software_instance_reference'
]
=
software_instance
.
getReference
()
sequence
[
'software_instance_uid'
]
=
software_instance
.
getUid
()
def
stepCheckSoftwareInstanceAndRelatedComputerPartition
(
self
,
sequence
,
**
kw
):
software_instance_uid
=
sequence
[
'software_instance_uid'
]
...
...
@@ -7032,10 +7062,23 @@ class TestVifibSlapWebService(testVifibMixin):
PersonRequestSlapSoftwareInstance
Tic
SlapLogout
LoginDefaultUser
CheckPersonRequestedSoftwareInstanceAndRelatedComputerPartition
Logout
SlapLoginCurrentSoftwareInstance
CheckRequestedComputerPartitionCleanParameterList
SlapLogout
LoginTestVifibCustomer
CheckViewCurrentSoftwareInstance
CheckWriteCurrentSoftwareInstance
Tic
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
raise
NotImplementedError
def
test_person_request_ComputerPartition_filter_computer_guid
(
self
):
"""Check that requesting with computer_guid in filter_kw works as
...
...
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