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
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):
SlapLogout
\
LoginERP5TypeTestCase
\
CheckSoftwareReleaseUnavailableForRequest
\
CheckSoftwareReleaseNotIn
PublicTable
\
CheckSoftwareReleaseNotIn
SoftwareCatalog
\
CheckSiteConsistency
\
Logout
\
'
...
...
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
99a395df
...
...
@@ -257,18 +257,14 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
def
stepCheckSoftwareReleaseUnavailableForRequest
(
self
,
sequence
,
**
kw
):
self
.
assertEqual
(
0
,
self
.
_getRequestBasedComputerPartitionCount
(
sequence
))
def
_getSoftwareReleasePublicTableAmount
(
self
,
sequence
,
**
kw
):
self
.
getPortal
().
portal_skins
.
changeSkin
(
"Hosting"
)
request
=
self
.
app
.
REQUEST
request
.
set
(
'portal_skin'
,
"Hosting"
)
amount
=
len
(
self
.
portal
.
Base_getAvailableSoftwareReleaseList
(
**
{
'software_release.url'
:
sequence
[
'software_release_uri'
]}))
self
.
getPortal
().
portal_skins
.
changeSkin
(
"View"
)
request
.
set
(
'portal_skin'
,
"View"
)
return
amount
def
stepCheckSoftwareReleaseNotInPublicTable
(
self
,
sequence
,
**
kw
):
self
.
assertEqual
(
0
,
self
.
_getSoftwareReleasePublicTableAmount
(
sequence
))
def
stepCheckSoftwareReleaseNotInSoftwareCatalog
(
self
,
sequence
,
**
kw
):
software_release
=
self
.
portal
.
portal_catalog
.
getResultValue
(
uid
=
sequence
[
'software_release_uid'
])
software_product
=
software_release
.
getAggregateValue
(
portal_type
=
'Software Product'
)
# if software release is back referenced from product, it is preferred
self
.
assertFalse
(
software_product
.
getRelativeUrl
()
\
in
software_product
.
getAggregateList
())
def
stepCheckComputerTradeConditionDestinationSectionTestVifibCustomer
(
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