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
Ophélie Gagnard
slapos.core
Commits
a71f3e5e
Commit
a71f3e5e
authored
Mar 08, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that lines are correctly removed.
parent
0ec01860
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+27
-0
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
a71f3e5e
...
...
@@ -177,6 +177,32 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
########################################
# Steps -- scenarios
########################################
def
stepCheckOpenOrderLineRemoved
(
self
,
sequence
,
**
kw
):
software_instance
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'software_instance_uid'
])
hosting_subscription
=
software_instance
.
getAggregateRelatedValue
(
portal_type
=
'Sale Packing List Line'
).
getAggregateValue
(
portal_type
=
'Hosting Subscription'
)
# shall be not present on any validted open order
validated_open_order_line
=
self
.
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Open Sale Order Line'
,
validation_state
=
'validated'
,
default_aggregate_uid
=
hosting_subscription
.
getUid
())
self
.
assertEqual
(
None
,
validated_open_order_line
)
# shall be present on the latest archived open order
reference
=
self
.
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Open Sale Order Line'
,
default_aggregate_uid
=
hosting_subscription
.
getUid
())
\
.
getParentValue
().
getReference
()
open_sale_order
=
self
.
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Open Sale Order'
,
reference
=
reference
,
validation_state
=
'archived'
,
sort_on
=
((
'effective_date'
,
'descending'
),)
)
self
.
assertTrue
(
hosting_subscription
.
getRelativeUrl
()
in
\
[
q
.
getAggregate
(
portal_type
=
'Hosting Subscription'
)
for
q
in
\
open_sale_order
.
contentValues
(
portal_type
=
'Open Sale Order Line'
)])
def
stepRequestComputerPartitionNoTic
(
self
,
sequence
,
**
kw
):
self
.
slap
=
slap
.
slap
()
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
...
...
@@ -1096,6 +1122,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
LoginDefaultUser
\
CheckComputerPartitionInstanceCleanupSalePackingListDelivered
\
CheckComputerPartitionIsFree
\
CheckOpenOrderLineRemoved
\
Logout
\
'
...
...
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