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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.core
Commits
23164fd8
Commit
23164fd8
authored
Nov 15, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assert causality solving.
parent
8b6619b9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5DefaultScenario.py
...os_erp5/TestTemplateItem/testSlapOSERP5DefaultScenario.py
+17
-2
master/bt5/slapos_erp5/bt/revision
master/bt5/slapos_erp5/bt/revision
+1
-1
No files found.
master/bt5/slapos_erp5/TestTemplateItem/testSlapOSERP5DefaultScenario.py
View file @
23164fd8
...
...
@@ -398,7 +398,8 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin):
else
:
raise
NotImplementedError
def
assertHostingSubscriptionRelatedDeliveryList
(
self
,
subscription
):
def
assertHostingSubscriptionRelatedDeliveryList
(
self
,
subscription
,
causality_state
=
'building'
):
self
.
login
()
applied_rule_list
=
self
.
portal
.
portal_catalog
(
portal_type
=
'Applied Rule'
,
causality_uid
=
subscription
.
getUid
())
...
...
@@ -415,7 +416,7 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin):
self
.
assertEqual
(
'Sale Packing List'
,
delivery
.
getPortalType
())
self
.
assertEqual
(
'delivered'
,
delivery
.
getSimulationState
())
self
.
assertEqual
(
'building'
,
delivery
.
getCausalityState
())
self
.
assertEqual
(
causality_state
,
delivery
.
getCausalityState
())
def
assertOpenSaleOrderCoverage
(
self
,
person_reference
):
self
.
login
()
...
...
@@ -604,3 +605,17 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin):
default_destination_section_uid
=
person
.
getUid
()):
self
.
assertHostingSubscriptionRelatedDeliveryList
(
subscription
.
getObject
())
# check causality solving
self
.
stepCallSlaposUpdateDeliveryCausalityStateAlarm
()
self
.
tic
()
for
person_reference
in
(
owner_reference
,
friend_reference
,
public_reference
):
person
=
self
.
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Person'
,
reference
=
person_reference
)
for
subscription
in
self
.
portal
.
portal_catalog
(
portal_type
=
'Hosting Subscription'
,
default_destination_section_uid
=
person
.
getUid
()):
self
.
assertHostingSubscriptionRelatedDeliveryList
(
subscription
.
getObject
(),
causality_state
=
'solved'
)
master/bt5/slapos_erp5/bt/revision
View file @
23164fd8
91
\ No newline at end of file
92
\ No newline at end of file
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