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
Labels
Merge Requests
20
Merge Requests
20
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
3f90f1e0
Commit
3f90f1e0
authored
Mar 27, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cover cases of cleanup resource and available call.
parent
25db378d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
92 additions
and
0 deletions
+92
-0
master/product/Vifib/tests/testVifibSlapSoftwareReleaseAvailable.py
...duct/Vifib/tests/testVifibSlapSoftwareReleaseAvailable.py
+92
-0
No files found.
master/product/Vifib/tests/testVifibSlapSoftwareReleaseAvailable.py
View file @
3f90f1e0
...
...
@@ -46,6 +46,20 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_available_CleanupResource_ConfirmedState
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_software_release_cleanup_purchase_packing_list
+
'
\
SlapLoginCurrentComputer
\
CheckNotFoundSoftwareReleaseAvailableCall
\
Tic
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
Logout
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_available_SetupResource_CancelledState
(
self
):
"""
Check that calling SoftwareRelease.available works in
...
...
@@ -71,6 +85,24 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_available_CleanupResource_CancelledState
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_software_release_cleanup_purchase_packing_list
+
'
\
LoginDefaultUser
\
CancelPurchasePackingList
\
Tic
\
Logout
\
SlapLoginCurrentComputer
\
CheckNotFoundSoftwareReleaseAvailableCall
\
Tic
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
Logout
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_available_SetupResource_StartedState
(
self
):
"""
Check that calling SoftwareRelease.available works in
...
...
@@ -96,6 +128,24 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_available_CleanupResource_StartedState
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_software_release_cleanup_purchase_packing_list
+
'
\
LoginDefaultUser
\
StartPurchasePackingList
\
Tic
\
Logout
\
SlapLoginCurrentComputer
\
CheckNotFoundSoftwareReleaseAvailableCall
\
Tic
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
Logout
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_available_SetupResource_StoppedState
(
self
):
"""
Check that calling SoftwareRelease.available works in
...
...
@@ -122,6 +172,26 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_available_CleanupResource_StoppedState
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_software_release_cleanup_purchase_packing_list
+
'
\
LoginDefaultUser
\
StartPurchasePackingList
\
Tic
\
StopPurchasePackingList
\
Tic
\
Logout
\
SlapLoginCurrentComputer
\
CheckNotFoundSoftwareReleaseAvailableCall
\
Tic
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
Logout
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_available_SetupResource_DeliveredState
(
self
):
"""
Check that calling SoftwareRelease.available works in
...
...
@@ -149,6 +219,28 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_available_CleanupResource_DeliveredState
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_software_release_cleanup_purchase_packing_list
+
'
\
LoginDefaultUser
\
StartPurchasePackingList
\
Tic
\
StopPurchasePackingList
\
Tic
\
DeliverPurchasePackingList
\
Tic
\
Logout
\
SlapLoginCurrentComputer
\
CheckNotFoundSoftwareReleaseAvailableCall
\
Tic
\
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
Logout
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_available_twoPurchasePackingList
(
self
):
"""
Check that calling SoftwareRelease.available uses the latest purchase packing
...
...
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