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
Łukasz Nowak
slapos.core
Commits
d73c755e
Commit
d73c755e
authored
Mar 27, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cover errors in case of software cleanup.
parent
63123619
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
113 additions
and
0 deletions
+113
-0
master/product/Vifib/tests/testVifibSlapSoftwareReleaseError.py
.../product/Vifib/tests/testVifibSlapSoftwareReleaseError.py
+109
-0
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+4
-0
No files found.
master/product/Vifib/tests/testVifibSlapSoftwareReleaseError.py
View file @
d73c755e
...
@@ -154,6 +154,115 @@ class TestVifibSlapSoftwareReleaseError(TestVifibSlapWebServiceMixin):
...
@@ -154,6 +154,115 @@ class TestVifibSlapSoftwareReleaseError(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_error_CleanupResource_ConfirmedState
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_software_release_cleanup_purchase_packing_list
+
'
\
SlapLoginCurrentComputer
\
CheckSuccessSoftwareReleaseErrorCall
\
Tic
\
SlapLogout
\
LoginDefaultUser
\
CheckPurchasePackingListErrorText
\
CheckConfirmedPurchasePackingList
\
Logout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
Logout
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_error_CleanupResource_CancelledState
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_software_release_cleanup_purchase_packing_list
+
'
\
LoginDefaultUser
\
CancelPurchasePackingList
\
Tic
\
Logout
\
SlapLoginCurrentComputer
\
CheckSoftwareReleaseErrorCall
\
Tic
\
SlapLogout
\
LoginDefaultUser
\
CheckPurchasePackingListNoErrorText
\
CheckCancelledPurchasePackingList
\
Logout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
Logout
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_error_CleanupResource_StartedState
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_software_release_cleanup_purchase_packing_list
+
'
\
LoginDefaultUser
\
StartPurchasePackingList
\
Tic
\
Logout
\
SlapLoginCurrentComputer
\
CheckSuccessSoftwareReleaseErrorCall
\
Tic
\
SlapLogout
\
LoginDefaultUser
\
CheckPurchasePackingListErrorText
\
CheckStartedPurchasePackingList
\
Logout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
Logout
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_error_CleanupResource_StoppedState
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_software_release_cleanup_purchase_packing_list
+
'
\
LoginDefaultUser
\
StartPurchasePackingList
\
StopPurchasePackingList
\
Tic
\
Logout
\
SlapLoginCurrentComputer
\
CheckSoftwareReleaseErrorCall
\
Tic
\
SlapLogout
\
LoginDefaultUser
\
CheckPurchasePackingListNoErrorText
\
CheckStoppedPurchasePackingList
\
Logout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
Logout
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_error_CleanupResource_DeliveredState
(
self
):
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_software_release_cleanup_purchase_packing_list
+
'
\
LoginDefaultUser
\
StartPurchasePackingList
\
StopPurchasePackingList
\
DeliverPurchasePackingList
\
Tic
\
Logout
\
SlapLoginCurrentComputer
\
CheckSoftwareReleaseErrorCall
\
Tic
\
SlapLogout
\
LoginDefaultUser
\
CheckPurchasePackingListNoErrorText
\
CheckDeliveredPurchasePackingList
\
Logout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
Logout
\
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
def
test_SoftwareRelease_error_twoPurchasePackingList
(
self
):
def
test_SoftwareRelease_error_twoPurchasePackingList
(
self
):
"""
"""
Check that calling SoftwareRelease.error uses the latest purchase packing
Check that calling SoftwareRelease.error uses the latest purchase packing
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
d73c755e
...
@@ -1016,6 +1016,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -1016,6 +1016,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
prepare_published_software_release
+
prepare_formated_computer
+
\
prepare_published_software_release
+
prepare_formated_computer
+
\
prepare_software_release_confirmed_packing_list
prepare_software_release_confirmed_packing_list
prepare_software_release_cleanup_purchase_packing_list
=
\
prepare_published_software_release
+
prepare_formated_computer
+
\
prepare_software_release_cleanup_confirmed_packing_list
prepare_software_release_purchase_packing_list_accounting_resource
=
\
prepare_software_release_purchase_packing_list_accounting_resource
=
\
prepare_published_software_release
+
prepare_formated_computer
+
"""
prepare_published_software_release
+
prepare_formated_computer
+
"""
LoginDefaultUser
LoginDefaultUser
...
...
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