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
Hardik Juneja
slapos.core
Commits
245010d3
Commit
245010d3
authored
Dec 02, 2011
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Abort the transaction when we are breaking the tree.
This avoid other tests doing Tic to fail.
parent
b000b94b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
master/product/Vifib/tests/testVifibSlapBug.py
master/product/Vifib/tests/testVifibSlapBug.py
+3
-0
No files found.
master/product/Vifib/tests/testVifibSlapBug.py
View file @
245010d3
...
@@ -2,6 +2,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList
...
@@ -2,6 +2,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList
import
unittest
import
unittest
from
testVifibSlapWebService
import
TestVifibSlapWebServiceMixin
from
testVifibSlapWebService
import
TestVifibSlapWebServiceMixin
import
random
import
random
import
transaction
class
TestVifibSlapBug
(
TestVifibSlapWebServiceMixin
):
class
TestVifibSlapBug
(
TestVifibSlapWebServiceMixin
):
def
test_bug_Person_request_more_then_one_instance
(
self
):
def
test_bug_Person_request_more_then_one_instance
(
self
):
...
@@ -808,6 +809,7 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
...
@@ -808,6 +809,7 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
sla_xml
=
self
.
minimal_correct_xml
,
sla_xml
=
self
.
minimal_correct_xml
,
state
=
'started'
state
=
'started'
)
)
transaction
.
abort
()
def
test_bug_cyclic_software_instance
(
self
):
def
test_bug_cyclic_software_instance
(
self
):
"""Check that no cyclic Software Instance trees would be created
"""Check that no cyclic Software Instance trees would be created
...
@@ -938,6 +940,7 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
...
@@ -938,6 +940,7 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
SelectRequestedReferenceB
SelectRequestedReferenceB
LoginDefaultUser # login as superuser in order to work in erp5
LoginDefaultUser # login as superuser in order to work in erp5
Pdb
DirectRequestComputerPartitionRaisesCyclicSoftwareTree
DirectRequestComputerPartitionRaisesCyclicSoftwareTree
"""
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
addSequenceString
(
sequence_string
)
...
...
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