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
Guillaume Hervier
slapos.core
Commits
dbe2055b
Commit
dbe2055b
authored
Dec 17, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Can not destroy from draft state.
parent
889793a2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingInteractionWorkflow.py
...stTemplateItem/testSlapOSAccountingInteractionWorkflow.py
+4
-1
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingInteractionWorkflow.py
View file @
dbe2055b
...
@@ -319,6 +319,7 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
...
@@ -319,6 +319,7 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
shared
=
False
,
shared
=
False
,
)
)
subscription
.
requestStart
(
**
request_kw
)
subscription
.
converge
()
subscription
.
converge
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'solved'
)
subscription
.
requestDestroy
(
**
request_kw
)
subscription
.
requestDestroy
(
**
request_kw
)
...
@@ -333,7 +334,6 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
...
@@ -333,7 +334,6 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
)
)
subscription
.
validate
()
subscription
.
validate
()
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'diverged'
)
request_kw
=
dict
(
request_kw
=
dict
(
software_release
=
'http://example.org'
,
software_release
=
'http://example.org'
,
...
@@ -343,5 +343,8 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
...
@@ -343,5 +343,8 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
shared
=
False
,
shared
=
False
,
)
)
subscription
.
requestStart
(
**
request_kw
)
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'diverged'
)
subscription
.
requestDestroy
(
**
request_kw
)
subscription
.
requestDestroy
(
**
request_kw
)
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'diverged'
)
self
.
assertEqual
(
subscription
.
getCausalityState
(),
'diverged'
)
master/bt5/slapos_accounting/bt/revision
View file @
dbe2055b
235
236
\ No newline at end of file
\ 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