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
Léo-Paul Géneau
slapos.core
Commits
acce1763
Commit
acce1763
authored
Mar 27, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check filling (or not) of software_release table.
parent
0d4e150b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
master/product/Vifib/tests/testVifibSlapSoftwareReleaseAvailable.py
...duct/Vifib/tests/testVifibSlapSoftwareReleaseAvailable.py
+1
-0
master/product/Vifib/tests/testVifibSlapSoftwareReleaseDestroyed.py
...duct/Vifib/tests/testVifibSlapSoftwareReleaseDestroyed.py
+13
-0
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+17
-0
No files found.
master/product/Vifib/tests/testVifibSlapSoftwareReleaseAvailable.py
View file @
acce1763
...
...
@@ -165,6 +165,7 @@ class TestVifibSlapSoftwareReleaseAvailable(TestVifibSlapWebServiceMixin):
LoginDefaultUser
\
CheckStoppedPurchasePackingList
\
CheckSoftwareReleaseAvailableForRequest
\
CheckSoftwareReleaseInPublicTable
\
Logout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapSoftwareReleaseDestroyed.py
View file @
acce1763
...
...
@@ -31,6 +31,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
LoginDefaultUser
\
CheckDeliveredPurchasePackingList
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
Logout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
@@ -48,6 +49,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
CheckSiteConsistency
\
Logout
\
'
...
...
@@ -63,6 +65,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
self
.
prepare_software_release_cleanup_confirmed_packing_list
+
'
\
LoginDefaultUser
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
SetCurrentPurchasePackingListAsB
\
SlapLoginCurrentComputer
\
CheckSuccessSoftwareReleaseDestroyedCall
\
...
...
@@ -71,6 +74,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA
\
CheckDeliveredPurchasePackingListB
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
Logout
\
SlapLogout
\
LoginERP5TypeTestCase
\
...
...
@@ -87,6 +91,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
StartPurchasePackingList
\
Tic
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
SetCurrentPurchasePackingListAsA
\
Logout'
+
\
self
.
prepare_software_release_cleanup_confirmed_packing_list
+
'
\
...
...
@@ -98,6 +103,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA
\
CheckDeliveredPurchasePackingListB
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
Logout
\
SlapLogout
\
LoginERP5TypeTestCase
\
...
...
@@ -115,6 +121,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
Tic
\
StopPurchasePackingList
\
Tic
\
CheckSoftwareReleaseInPublicTable
\
CheckSoftwareReleaseAvailableForRequest
\
SetCurrentPurchasePackingListAsA
\
Logout'
+
\
...
...
@@ -127,6 +134,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA
\
CheckDeliveredPurchasePackingListB
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
Logout
\
SlapLogout
\
LoginERP5TypeTestCase
\
...
...
@@ -159,6 +167,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckDeliveredPurchasePackingListA
\
CheckDeliveredPurchasePackingListB
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
Logout
\
SlapLogout
\
LoginERP5TypeTestCase
\
...
...
@@ -175,6 +184,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CancelPurchasePackingList
\
Tic
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
SetCurrentPurchasePackingListAsA
\
Logout'
+
\
self
.
prepare_software_release_cleanup_confirmed_packing_list
+
'
\
...
...
@@ -186,6 +196,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CheckCancelledPurchasePackingListA
\
CheckDeliveredPurchasePackingListB
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
Logout
\
SlapLogout
\
LoginERP5TypeTestCase
\
...
...
@@ -202,6 +213,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
CancelPurchasePackingList
\
Tic
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
Logout
\
SlapLoginCurrentComputer
\
CheckNotFoundSoftwareReleaseDestroyedCall
\
...
...
@@ -210,6 +222,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
LoginDefaultUser
\
CheckCancelledPurchasePackingList
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotInPublicTable
\
Logout
\
LoginERP5TypeTestCase
\
CheckSiteConsistency
\
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
acce1763
...
...
@@ -233,6 +233,23 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def
stepCheckSoftwareReleaseUnavailableForRequest
(
self
,
sequence
,
**
kw
):
self
.
assertTrue
(
self
.
_getRequestBasedComputerPartitionCount
(
sequence
)
==
0
)
def
_getSoftwareReleasePublicTableAmount
(
self
,
sequence
,
**
kw
):
self
.
getPortal
().
portal_skins
.
changeSkin
(
"Hosting"
)
request
.
set
(
'portal_skin'
,
"Hosting"
)
amount
=
len
(
self
.
portal
.
Base_getAvailableSoftwareReleaseList
(
**
{
'software_release.url'
:
sequence
[
'software_release_uri'
]}))
self
.
portal
.
web_site_module
.
hosting
.
WebSection_registerNewComputer
(
title
=
sequence
[
'computer_title'
])
self
.
getPortal
().
portal_skins
.
changeSkin
(
"View"
)
request
.
set
(
'portal_skin'
,
"View"
)
return
amount
def
stepCheckSoftwareReleaseInPublicTable
(
self
,
sequence
,
**
kw
):
self
.
assertFalse
(
0
,
self
.
_getSoftwareReleasePublicTableAmount
(
sequence
))
def
stepCheckSoftwareReleaseNotInPublicTable
(
self
,
sequence
,
**
kw
):
self
.
assertTrue
(
0
,
self
.
_getSoftwareReleasePublicTableAmount
(
sequence
))
def
stepTriggerConfirmPlannedInvoiceAlarm
(
self
,
sequence
,
**
kw
):
sm
=
getSecurityManager
()
self
.
login
()
...
...
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