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
Thomas Leymonerie
slapos.core
Commits
99a395df
Commit
99a395df
authored
Oct 18, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow up implementation.
parent
1eab1c97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
master/product/Vifib/tests/testVifibSlapSoftwareReleaseDestroyed.py
...duct/Vifib/tests/testVifibSlapSoftwareReleaseDestroyed.py
+1
-1
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+8
-12
No files found.
master/product/Vifib/tests/testVifibSlapSoftwareReleaseDestroyed.py
View file @
99a395df
...
@@ -34,7 +34,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
...
@@ -34,7 +34,7 @@ class TestVifibSlapSoftwareReleaseDestroyed(TestVifibSlapWebServiceMixin):
SlapLogout
\
SlapLogout
\
LoginERP5TypeTestCase
\
LoginERP5TypeTestCase
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotIn
PublicTable
\
CheckSoftwareReleaseNotIn
SoftwareCatalog
\
CheckSiteConsistency
\
CheckSiteConsistency
\
Logout
\
Logout
\
'
'
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
99a395df
...
@@ -257,18 +257,14 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
...
@@ -257,18 +257,14 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def
stepCheckSoftwareReleaseUnavailableForRequest
(
self
,
sequence
,
**
kw
):
def
stepCheckSoftwareReleaseUnavailableForRequest
(
self
,
sequence
,
**
kw
):
self
.
assertEqual
(
0
,
self
.
_getRequestBasedComputerPartitionCount
(
sequence
))
self
.
assertEqual
(
0
,
self
.
_getRequestBasedComputerPartitionCount
(
sequence
))
def
_getSoftwareReleasePublicTableAmount
(
self
,
sequence
,
**
kw
):
def
stepCheckSoftwareReleaseNotInSoftwareCatalog
(
self
,
sequence
,
**
kw
):
self
.
getPortal
().
portal_skins
.
changeSkin
(
"Hosting"
)
software_release
=
self
.
portal
.
portal_catalog
.
getResultValue
(
request
=
self
.
app
.
REQUEST
uid
=
sequence
[
'software_release_uid'
])
request
.
set
(
'portal_skin'
,
"Hosting"
)
software_product
=
software_release
.
getAggregateValue
(
amount
=
len
(
self
.
portal
.
Base_getAvailableSoftwareReleaseList
(
portal_type
=
'Software Product'
)
**
{
'software_release.url'
:
sequence
[
'software_release_uri'
]}))
# if software release is back referenced from product, it is preferred
self
.
getPortal
().
portal_skins
.
changeSkin
(
"View"
)
self
.
assertFalse
(
software_product
.
getRelativeUrl
()
\
request
.
set
(
'portal_skin'
,
"View"
)
in
software_product
.
getAggregateList
())
return
amount
def
stepCheckSoftwareReleaseNotInPublicTable
(
self
,
sequence
,
**
kw
):
self
.
assertEqual
(
0
,
self
.
_getSoftwareReleasePublicTableAmount
(
sequence
))
def
stepCheckComputerTradeConditionDestinationSectionTestVifibCustomer
(
def
stepCheckComputerTradeConditionDestinationSectionTestVifibCustomer
(
self
,
sequence
,
**
kw
):
self
,
sequence
,
**
kw
):
...
...
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