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
320e0c9d
Commit
320e0c9d
authored
Nov 08, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that partition history does not impact the catalog.
parent
a650acb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
0 deletions
+68
-0
master/product/Vifib/tests/testVifibSlapBug.py
master/product/Vifib/tests/testVifibSlapBug.py
+68
-0
No files found.
master/product/Vifib/tests/testVifibSlapBug.py
View file @
320e0c9d
...
...
@@ -1249,6 +1249,74 @@ class TestVifibSlapBug(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
stepCheckComputerPartitionInTable
(
self
,
sequence
,
**
kw
):
self
.
assertEqual
(
1
,
self
.
portal
.
erp5_sql_connection
.
manage_test
(
'select count(*) from computer_partition where uid=%s'
%
sequence
[
'computer_partition_uid'
])[
0
][
0
]
)
def
stepCheckComputerPartitionNotInTable
(
self
,
sequence
,
**
kw
):
self
.
assertEqual
(
0
,
self
.
portal
.
erp5_sql_connection
.
manage_test
(
'select count(*) from computer_partition where uid=%s'
%
sequence
[
'computer_partition_uid'
])[
0
][
0
]
)
def
test_catalog_after_destruction
(
self
):
"""Test that computer partition if correctly catalogged after destruction"""
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_installed_computer_partition_sequence_string
+
\
"""
LoginDefaultUser
CheckComputerPartitionInTable
Logout
LoginTestVifibCustomer
RequestSoftwareInstanceDestroy
Tic
Logout
LoginDefaultUser
CheckComputerPartitionNotInTable
Logout
LoginDefaultUser
CheckComputerPartitionInstanceCleanupSalePackingListConfirmed
Logout
SlapLoginCurrentComputer
SoftwareInstanceDestroyed
Tic
SlapLogout
LoginDefaultUser
CheckComputerPartitionInTable
CheckComputerPartitionInstanceCleanupSalePackingListDelivered
CheckComputerPartitionIsFree
Logout
LoginTestVifibCustomer
PersonRequestSoftwareInstance
Tic
Logout
LoginDefaultUser
ConfirmOrderedSaleOrderActiveSense
Tic
SetSelectedComputerPartition
SelectCurrentlyUsedSalePackingListUid
Logout
LoginDefaultUser
CheckComputerPartitionInTable
CheckComputerPartitionInstanceSetupSalePackingListConfirmed
Logout
"""
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_suite
():
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestVifibSlapBug
))
...
...
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