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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
61c5d678
Commit
61c5d678
authored
Nov 10, 2023
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: test: there is no causality_state anymore on instance tree
parent
094460ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
53 deletions
+0
-53
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingInteractionWorkflow.py
...ents/test.erp5.testSlapOSAccountingInteractionWorkflow.py
+0
-53
No files found.
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingInteractionWorkflow.py
View file @
61c5d678
...
...
@@ -124,56 +124,3 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
portal_type
=
"Sale Invoice Transaction"
self
.
_test_calculate
(
new_id
,
newContent
,
portal_type
=
portal_type
,
start_date
=
'2011/01/01'
)
def
test_InstanceTree_changePromise
(
self
):
new_id
=
self
.
generateNewId
()
project
=
self
.
addProject
()
subscription
=
self
.
portal
.
instance_tree_module
.
newContent
(
portal_type
=
'Instance Tree'
,
title
=
"Subscription %s"
%
new_id
,
reference
=
"TESTSUB-%s"
%
new_id
,
follow_up_value
=
project
)
subscription
.
validate
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'diverged'
)
request_kw
=
dict
(
software_release
=
'http://example.org'
,
software_type
=
'http://example.org'
,
instance_xml
=
self
.
generateSafeXml
(),
sla_xml
=
self
.
generateSafeXml
(),
shared
=
False
,
)
subscription
.
requestStart
(
**
request_kw
)
subscription
.
converge
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
subscription
.
requestDestroy
(
**
request_kw
)
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'diverged'
)
def
test_InstanceTree_changePromiseInDivergedState
(
self
):
new_id
=
self
.
generateNewId
()
project
=
self
.
addProject
()
subscription
=
self
.
portal
.
instance_tree_module
.
newContent
(
portal_type
=
'Instance Tree'
,
title
=
"Subscription %s"
%
new_id
,
reference
=
"TESTSUB-%s"
%
new_id
,
follow_up_value
=
project
)
subscription
.
validate
()
request_kw
=
dict
(
software_release
=
'http://example.org'
,
software_type
=
'http://example.org'
,
instance_xml
=
self
.
generateSafeXml
(),
sla_xml
=
self
.
generateSafeXml
(),
shared
=
False
,
)
subscription
.
requestStart
(
**
request_kw
)
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'diverged'
)
subscription
.
requestDestroy
(
**
request_kw
)
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'diverged'
)
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