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
Xiaowu Zhang
slapos.core
Commits
7edd3c55
Commit
7edd3c55
authored
Aug 16, 2011
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docstrings
parent
4145c803
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
master/product/Vifib/tests/testVifibSlapWebService.py
master/product/Vifib/tests/testVifibSlapWebService.py
+11
-12
No files found.
master/product/Vifib/tests/testVifibSlapWebService.py
View file @
7edd3c55
...
@@ -4463,7 +4463,7 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -4463,7 +4463,7 @@ class TestVifibSlapWebService(testVifibMixin):
########################################
########################################
def
test_ComputerPartition_request_slave_firstNotReady
(
self
):
def
test_ComputerPartition_request_slave_firstNotReady
(
self
):
"""
"""
Check that first call to request raises NotReady
r
esponse
Check that first call to request raises NotReady
R
esponse
"""
"""
self
.
computer_partition_amount
=
2
self
.
computer_partition_amount
=
2
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
...
@@ -4510,6 +4510,8 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -4510,6 +4510,8 @@ class TestVifibSlapWebService(testVifibMixin):
def
test_ComputerPartition_request_slave_instantiate
(
self
):
def
test_ComputerPartition_request_slave_instantiate
(
self
):
"""
"""
Check that one Slave Instance is instantiate correctly and the validate
the Sale Packing List states
"""
"""
self
.
computer_partition_amount
=
2
self
.
computer_partition_amount
=
2
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
...
@@ -4565,6 +4567,7 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -4565,6 +4567,7 @@ class TestVifibSlapWebService(testVifibMixin):
def
test_ComputerPartition_request_slave_same_twice_SR
(
self
):
def
test_ComputerPartition_request_slave_same_twice_SR
(
self
):
"""
"""
Check that requesting the same slave instance twice, only one is created
"""
"""
self
.
computer_partition_amount
=
2
self
.
computer_partition_amount
=
2
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
...
@@ -4605,7 +4608,7 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -4605,7 +4608,7 @@ class TestVifibSlapWebService(testVifibMixin):
def
test_ComputerPartition_request_slave_twice_different
(
self
):
def
test_ComputerPartition_request_slave_twice_different
(
self
):
"""
"""
Check request 2 diferent slave instances on same Software
Check request 2 dif
f
erent slave instances on same Software
Instance.
Instance.
"""
"""
simple_request_with_random
=
"""
simple_request_with_random
=
"""
...
@@ -4646,7 +4649,7 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -4646,7 +4649,7 @@ class TestVifibSlapWebService(testVifibMixin):
def
test_ComputerPartition_request_slave_NotFound
(
self
):
def
test_ComputerPartition_request_slave_NotFound
(
self
):
"""
"""
Check that requesting a Slave Instance works in system capable to fulfill
Check that requesting a Slave Instance works in system capable to fulfill
such request, w
ith Slave Partition does not exist
yet.
such request, w
hen Software Instance is not installed
yet.
"""
"""
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
sequence_string
=
self
.
prepare_formated_computer
+
"""
sequence_string
=
self
.
prepare_formated_computer
+
"""
...
@@ -4663,18 +4666,16 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -4663,18 +4666,16 @@ class TestVifibSlapWebService(testVifibMixin):
sequence_list
.
play
(
self
)
sequence_list
.
play
(
self
)
def
test_ComputerPartition_request_slave_state_is_optional
(
self
):
def
test_ComputerPartition_request_slave_state_is_optional
(
self
):
"""Checks that state is optional parameter on Slap Tool
"""Checks that state is optional parameter on Slap Tool This ensures
backward compatibility with old libraries."""
This ensures backward compatibility with old libraries."""
self
.
computer_partition_amount
=
2
self
.
computer_partition_amount
=
2
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
sequence_string
=
\
sequence_string
=
\
self
.
prepare_install_requested_computer_partition_sequence_string
+
'
\
self
.
prepare_install_requested_computer_partition_sequence_string
+
'
\
SlapLoginCurrentSoftwareInstance
\
SlapLoginCurrentSoftwareInstance
\
DirectRequestComputerPartitionNotReadyResponseWithoutStateAndS
lave
True
\
DirectRequestComputerPartitionNotReadyResponseWithoutStateAndS
hared
True
\
Tic
\
Tic
\
SlapLogout
\
SlapLogout
\
\
'
'
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
sequence_list
.
play
(
self
)
...
@@ -4684,11 +4685,9 @@ class TestVifibSlapWebService(testVifibMixin):
...
@@ -4684,11 +4685,9 @@ class TestVifibSlapWebService(testVifibMixin):
computer_guid
=
"COMP-99999999999999999999999"
)
computer_guid
=
"COMP-99999999999999999999999"
)
def
test_ComputerPartition_request_filter_slave_computer_guid
(
self
):
def
test_ComputerPartition_request_filter_slave_computer_guid
(
self
):
"""
"""Check that requesting with filter computer_guid key works as expected.
Check that requesting with filter computer_guid key works as expected
This include tests for slave case.
This include tests for slave instance case."""
"""
self
.
computer_partition_amount
=
2
self
.
computer_partition_amount
=
2
sequence_list
=
SequenceList
()
sequence_list
=
SequenceList
()
# There are two partitions on another computer
# There are two partitions on another computer
...
...
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