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
Paul Graydon
slapos.core
Commits
77988293
Commit
77988293
authored
Mar 08, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cover more interesting case.
Remove open order line and prove that simulation are correct.
parent
77143759
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
+16
-15
No files found.
master/product/Vifib/tests/testVifibOpenOrderSimulation.py
View file @
77988293
...
@@ -166,17 +166,12 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -166,17 +166,12 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
precision
=
'month'
,
before
=
1
),
month
=
3
)})
precision
=
'month'
,
before
=
1
),
month
=
3
)})
def
stepCheckThreeTopLevelSimulationMovement
(
self
,
sequence
,
**
kw
):
def
stepCheckThreeTopLevelSimulationMovement
(
self
,
sequence
,
**
kw
):
person
=
self
.
portal
.
person_module
[
'test_vifib_customer'
]
hosting_subscription
=
self
.
portal
.
portal_catalog
.
getResultValue
(
open_order
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'hosting_subscription_uid'
])
default_destination_decision_uid
=
person
.
getUid
(),
self
.
assertEqual
(
2
,
self
.
portal
.
portal_catalog
.
countResults
(
validation_state
=
'validated'
,
default_aggregate_uid
=
sequence
[
'hosting_subscription_uid'
],
portal_type
=
"Open Sale Order"
)
portal_type
=
'Open Sale Order Line'
)[
0
][
0
]
open_order_line_list
=
\
)
open_order
.
contentValues
(
portal_type
=
"Open Sale Order Line"
)
self
.
assertEquals
(
1
,
len
(
open_order_line_list
))
open_order_line
=
open_order_line_list
[
0
]
hosting_subscription
=
\
open_order_line
.
getAggregateValue
(
portal_type
=
"Hosting Subscription"
)
applied_rule
=
\
applied_rule
=
\
hosting_subscription
.
getCausalityRelatedValue
(
portal_type
=
"Applied Rule"
)
hosting_subscription
.
getCausalityRelatedValue
(
portal_type
=
"Applied Rule"
)
self
.
assertEquals
(
self
.
assertEquals
(
...
@@ -212,22 +207,28 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
...
@@ -212,22 +207,28 @@ class TestVifibOpenOrderSimulation(TestVifibSlapWebServiceMixin):
Logout
Logout
LoginTestVifibCustomer
LoginTestVifibCustomer
RequestSoftwareInstance
Start
RequestSoftwareInstance
Destroy
Tic
Tic
Logout
Logout
LoginDefaultUser
LoginDefaultUser
CheckComputerPartitionInstance
Hosting
SalePackingListConfirmed
CheckComputerPartitionInstance
Cleanup
SalePackingListConfirmed
Logout
Logout
SlapLoginCurrentComputer
SlapLoginCurrentComputer
SoftwareInstance
Start
ed
SoftwareInstance
Destroy
ed
Tic
Tic
SlapLogout
SlapLogout
LoginDefaultUser
LoginDefaultUser
CheckComputerPartitionInstanceHostingSalePackingListStarted
CheckComputerPartitionInstanceCleanupSalePackingListDelivered
CheckComputerPartitionIsFree
CheckOpenOrderLineRemoved
Logout
Logout
LoginERP5TypeTestCase
LoginERP5TypeTestCase
Tic # in order to call update simulation alarm of open order
Tic
CheckThreeTopLevelSimulationMovement
CheckSiteConsistency
CheckSiteConsistency
Logout
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