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
Guillaume Hervier
slapos.core
Commits
2fec024c
Commit
2fec024c
authored
Jun 06, 2012
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only check busy partitions.
parent
a66d312f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+8
-1
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
2fec024c
...
...
@@ -2397,11 +2397,18 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
Check that Computer.getComputerPartitionList is successfully called.
"""
computer_guid
=
sequence
[
"computer_reference"
]
computer_uid
=
sequence
[
"computer_uid"
]
erp5_computer
=
self
.
portal
.
portal_catalog
.
unrestrictedSearchResults
(
uid
=
computer_uid
)[
0
].
getObject
()
computer_partition_amount
=
len
([
x
for
x
in
\
erp5_computer
.
contentValues
(
portal_type
=
"Computer Partition"
)
\
if
x
.
getSlapState
()
==
"busy"
])
self
.
slap
=
slap
.
slap
()
self
.
slap
.
initializeConnection
(
self
.
server_url
,
timeout
=
None
)
computer
=
self
.
slap
.
registerComputer
(
computer_guid
)
computer_partition_list
=
computer
.
getComputerPartitionList
()
self
.
assertEquals
(
self
.
computer_partition_amount
,
self
.
assertEquals
(
computer_partition_amount
,
len
(
computer_partition_list
))
def
stepCheckSuccessComputerPartitionGetIdCall
(
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